package pptpd 1.4.0-7ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1610500 reported by Christian Horstmann
232
This bug affects 49 people
Affects Status Importance Assigned to Milestone
pptpd (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Released
Undecided
Simon Déziel

Bug Description

[Impact]

Users with pptpd will encounter errors when upgrading from 14.04->16.04. After the upgrade process, pptpd won't automatically start on boot.

[Test case]

1. Setup a Trusty container
  lxc launch ubuntu-daily:trusty foo
2. Install pptpd
  lxc exec foo /bin/bash
  apt-get install -y pptpd
3. Upgrade to Xenial
  lxc exec foo /bin/bash
  # make do-release-upgrade happy
  script -c "/bin/bash -l" /dev/null
  chmod 777 /var/run/screen
  do-release-upgrade
4. Notice that pptpd fails to install properly and
   apport is invoked

To confirm the fix, enable trusty-proposed before running the "do-release-upgrade". This will pull pptpd 1.4.0-7ubuntu0.2 from xenial-proposed and should let the upgrade complete successfully.

[Regression potential]

Risks of regressions should be minimal since the fix have been included in Yakkety and Debian already. Worst case, users will still need to manually start the pptpd service on boot.

[Original issue description]

This is one of the crashed that happened during upgrade to 16.04 LTS. The install routine was exited with a script error. Try to figure stuff of since pptpd seems to be outdated

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: pptpd 1.4.0-7ubuntu0.1
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic i686
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: i386
Date: Fri Aug 5 21:40:28 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2011-02-25 (1988 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: pptpd
Title: package pptpd 1.4.0-7ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-08-05 (0 days ago)

Revision history for this message
Christian Horstmann (christian-horstmann) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pptpd (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

From log:

Setting up pptpd (1.4.0-7ubuntu0.1) ...
Failed to restart systemd-modules-load.service: No such method 'RestartUnit'
See system logs and 'systemctl status systemd-modules-load.service' for details.
dpkg: error processing package pptpd (--configure):
 subprocess installed post-installation script returned error exit status 1

Changed in pptpd (Ubuntu):
importance: Undecided → High
Revision history for this message
codywohlers (codywohlers) wrote :

This is fixed in pptpd 1.4.0-9
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829418

I just downloaded 1.4.0-10 from the yakkety repo at http://packages.ubuntu.com/yakkety/amd64/pptpd/download and installed it using dpkg.

Changed in pptpd (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Erik B. Andersen (erik-b-andersen+azendale) wrote :

@codywohlers Cody, is fixed released the right status for this bug if it is breaking an LTS upgrade? Should this bug maybe not be fixed released so it can be fixed in Xenial for a smooth LTS upgrade?

Revision history for this message
codywohlers (codywohlers) wrote :

@erik-b-andersen+azendale Good question. But I think that would be a bug/issue with updating the xenial repo with the newer package, and not an issue with pptpd itself.

Changed in pptpd (Ubuntu):
assignee: nobody → codywohlers (codywohlers)
assignee: codywohlers (codywohlers) → nobody
Revision history for this message
codywohlers (codywohlers) wrote :

I see there's a "Fix Committed" status (Fixed, but not available until next release.) but I can't seem to change it now...

Revision history for this message
Joshua Powers (powersj) wrote :

I am nominating this for Xenial. As previously suggested this should be fixed there and has been reported in other bugs in Xenial to help ease upgrade.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pptpd (Ubuntu Xenial):
status: New → Confirmed
Revision history for this message
Simon Déziel (sdeziel) wrote :

Please find a debdiff that backports the Debian fix for this issue.

Simon Déziel (sdeziel)
description: updated
Revision history for this message
Stéphane Graber (stgraber) wrote :

Uploaded to the queue

Changed in pptpd (Ubuntu Xenial):
status: Confirmed → Triaged
status: Triaged → In Progress
assignee: nobody → Simon Déziel (sdeziel)
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Christian, or anyone else affected,

Accepted pptpd into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pptpd/1.4.0-7ubuntu0.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in pptpd (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-xenial
Revision history for this message
Christian Horstmann (christian-horstmann) wrote :

Hello Łukasz,

thanks for your help! As you suggested I enabled -proposed and I am able to install pptpd 1.4.0-7ubuntu0.2. However when I set up a Trusty container and I tried to install pptpd I got following Warning and Error

"Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  bcrelay
The following NEW packages will be installed:
  bcrelay pptpd
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 87.9 kB of archives.
After this operation, 364 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  bcrelay pptpd
E: There are problems and -y was used without --force-yes"

Is this helpful? What should I do next?

Simon Déziel (sdeziel)
description: updated
Revision history for this message
Simon Déziel (sdeziel) wrote :

Christian, my reproduction steps were wrong, "do-release-upgrade --proposed" in a Trusty container won't work because this will only pull the upgrader from xenial-proposed and not pptpd. As such, there is no easy way to do a test release upgrade but you can fix a broken upgrade by installing 1.4.0-7ubuntu0.2 from xenial-proposed. Lastly, the unauthenticated warning from your Trusty container seems to be unrelated, try refreshing your indexes (apt-get update) and see if that helps.

Revision history for this message
Simon Déziel (sdeziel) wrote :

Christian, I finally found how to properly test the upgrade with the -proposed package (see the updated test case).

description: updated
Revision history for this message
Simon Déziel (sdeziel) wrote :

Marking as verified:

# grep pptpd /var/log/dist-upgrade/screenlog.0
Get:434 http://archive.ubuntu.com/ubuntu/ xenial-proposed/main pptpd amd64 1.4.0-7ubuntu0.2 [74.5 kB]
Get:435 http://archive.ubuntu.com/ubuntu/ xenial/main python-chardet all 2.3.0-2 [96.3 kB]
Preparing to unpack .../pptpd_1.4.0-7ubuntu0.2_amd64.deb ...
Unpacking pptpd (1.4.0-7ubuntu0.2) over (1.3.4+27+gddb30f8-1ubuntu1.1) ...
Setting up pptpd (1.4.0-7ubuntu0.2) ...

tags: added: verification-done verification-done-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Christian Horstmann (christian-horstmann) wrote :

Simon, thank you! I can confirm the fix is working for me too. Just to let you know:
chmod 777 /var/run/screen should be 775

Changed in pptpd (Ubuntu):
status: Fix Released → Confirmed
Changed in pptpd (Ubuntu Xenial):
status: Fix Committed → Confirmed
Revision history for this message
Simon Déziel (sdeziel) wrote :

Christian, thanks for testing as well. As for the screen socket mode, do-release-upgrade asks for 777 and 775 it didn't work when I tried it (see https://paste.ubuntu.com/25165428/). Thanks again.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pptpd - 1.4.0-7ubuntu0.2

---------------
pptpd (1.4.0-7ubuntu0.2) xenial; urgency=medium

  * Backport "Fix systemd check in postinst." from 1.4.0-9
    fixed via Debian bug 829418 (LP: #1610500)

 -- Simon Deziel <email address hidden> Wed, 28 Jun 2017 17:44:00 +0000

Changed in pptpd (Ubuntu Xenial):
status: Confirmed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for pptpd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lp1610500.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I don't see anything left to sponsor here - removing ubuntu-sponsors.

Changed in pptpd (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.