[SRU] package pure-ftpd-common 1.0.49-4 failed to install/upgrade: unable to open '/usr/share/doc/pure-ftpd-common/README.Authentication-Modules.gz.dpkg-new': No such file or directory

Bug #1876597 reported by Roland
46
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pure-ftpd (Debian)
Fix Released
Unknown
pure-ftpd (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Committed
Undecided
Unassigned

Bug Description

[ Impact ]

pure-ftpd will fail to upgrade from Bionic to Focal. It will give an error as below:

dpkg: error processing archive /var/cache/apt/archives/pure-ftpd-common_1.0.49-4_all.deb (--unpack):
 unable to open '/usr/share/doc/pure-ftpd-common/README.Authentication-Modules.gz.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
         Errors were encountered while processing:
 /var/cache/apt/archives/pure-ftpd-common_1.0.49-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

[ Test Plan ]

Complete test plan:
1. Use a Bionic system
2. Install pure-ftpd
3. Execute "do-release-upgrade" to upgrade the system to Focal.
4. Upgrade the system to Jammy to confirm next upgrade is not broken.

A quick test plan: I have made a PPA with pure-ftpd from Bionic but rebuilt for Focal.
1. Use a Focal system.
2. sudo add-apt-repository ppa:sudipmuk/pure-ftpd
3. sudo apt update
4. sudo apt-get install pure-ftpd=1.0.46-1ubuntu18.04.1~ppa1 pure-ftpd-common=1.0.46-1ubuntu18.04.1~ppa1
5. sudo apt-get upgrade

With the fixed package, pure-ftpd will now upgrade to the version in Focal.

Redo the quick testplan for pure-ftpd-mysql, pure-ftpd-ldap, pure-ftpd-postgresql to confirm they do not have any regression. These binaries do not have this original issue.

[ Where problems could occur ]

It does not change any part of the code, only change is in the d/rules file which removes the symlink from /usr/share/doc/pure-ftpd* to pure-ftpd-common and instead uses dpkg-maintscript-helper scripts to manage the symlink. There should not be any regression in the software for this change.

[ Other Info ]

This has been fixed in Debian by pure-ftpd/1.0.49-4.1 and so Jammy onwards is not affected.

[ Original Bug Description ]

this bug triggered when i was upgrading my ubuntu and broke dpkg

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: pure-ftpd-common 1.0.49-4
ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30
Uname: Linux 5.4.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sun May 3 17:25:35 2020
DuplicateSignature:
 package:pure-ftpd-common:1.0.49-4
 Unpacking pure-ftpd-common (1.0.49-4) over (1.0.47-3build1) ...
 dpkg: error processing archive /tmp/apt-dpkg-install-FSKNo5/539-pure-ftpd-common_1.0.49-4_all.deb (--unpack):
  unable to open '/usr/share/doc/pure-ftpd-common/README.Authentication-Modules.gz.dpkg-new': No such file or directory
ErrorMessage: unable to open '/usr/share/doc/pure-ftpd-common/README.Authentication-Modules.gz.dpkg-new': No such file or directory
InstallationDate: Installed on 2018-08-21 (621 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitecture: all
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2
SourcePackage: pure-ftpd
Title: package pure-ftpd-common 1.0.49-4 failed to install/upgrade: unable to open '/usr/share/doc/pure-ftpd-common/README.Authentication-Modules.gz.dpkg-new': No such file or directory
UpgradeStatus: Upgraded to focal on 2020-05-03 (0 days ago)

Revision history for this message
Roland (diaroland) wrote :
tags: removed: need-duplicate-check
Changed in pure-ftpd (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in pure-ftpd (Ubuntu):
status: New → Confirmed
tags: added: bionic2focal dist-upgrade
Changed in pure-ftpd (Debian):
status: New → Fix Released
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can reproduce the problem on Focal. And have also confirmed that its not seen on Jammy

Changed in pure-ftpd (Ubuntu Focal):
status: New → Confirmed
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in pure-ftpd (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff attached for Focal.

summary: - package pure-ftpd-common 1.0.49-4 failed to install/upgrade: unable to
- open '/usr/share/doc/pure-ftpd-common/README.Authentication-
+ [SRU] package pure-ftpd-common 1.0.49-4 failed to install/upgrade:
+ unable to open '/usr/share/doc/pure-ftpd-common/README.Authentication-
Modules.gz.dpkg-new': No such file or directory
description: updated
Changed in pure-ftpd (Ubuntu Focal):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Dan Bungert (dbungert) wrote :

Hi Sudip, thanks for the debdiff. I have some suggestions:

* in the backport of the rules changes, there is a small out-of-order difference. I'm referring to the new dh_installdocs call being after dh_installchangelogs instead of before. I'm 99.9% certain that it doesn't matter, but it would be nice to make this precisely match what was done in 1.0.49-4.1, to reduce the odds of new problems and for ease of patch reviews.
* I believe the version number references in the four maintscript files needs to be corrected for the actual version being uploaded. They reference 1.0.49-4.1~ but I think that they need to be updated to 1.0.49-4ubuntu0.1~ .
* The test plan references pure-ftpd, but I presume the other packages listed in the maintscript updates are also affected. Would you update the testplan to reflect all the binary packages being changed? I suggest also amending the test plan to reflect that updates to the Jammy version of the pure-ftpd packages still work.

Removing ubuntu-sponsors for the moment, please re-subscribe ubuntu-sponsors when you want someone to look again. Thanks!

Changed in pure-ftpd (Ubuntu Focal):
assignee: nobody → Sudip Mukherjee (sudipmuk)
status: Confirmed → Incomplete
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Removed old debdiff and adding new debdiff.

description: updated
Changed in pure-ftpd (Ubuntu Focal):
status: Incomplete → Confirmed
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Dave Jones (waveform) wrote :

Tested locally in a focal container with the quick test plan and it does indeed fix the issue. The patch looks good too, sponsoring.

Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Roland, or anyone else affected,

Accepted pure-ftpd into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pure-ftpd/1.0.49-4ubuntu0.1 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, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

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

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in pure-ftpd (Ubuntu Focal):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that pure-ftpd and pure-ftpd-common from focal-proposed has fixed the bug for me.

Test done:

followed the quick test plan and installed the old pure-ftpd and pure-ftpd-common from ppa
upgrade pure-ftpd and pure-ftpd-common from focal and confirm the issue is seen (upgrade fails)

Add focal-proposed to apt sources
upgrade pure-ftpd and pure-ftpd-common and confirm upgrade works.

Package tested:

$ apt-cache policy pure-ftpd-common
pure-ftpd-common:
  Installed: 1.0.49-4ubuntu0.1
  Candidate: 1.0.49-4ubuntu0.1
  Version table:
 *** 1.0.49-4ubuntu0.1 500
        500 http://gb.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu focal-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     1.0.49-4 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe i386 Packages
     1.0.46-1ubuntu18.04.1~ppa1 500
        500 http://ppa.launchpad.net/sudipmuk/pure-ftpd/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/sudipmuk/pure-ftpd/ubuntu focal/main i386 Packages

Also followed the normal test plan and install pure-ftpd on a bionic system
Do do-release-upgrade to upgrade to Focal, confirm issue is seen

Add focal-proposed to apt sources
upgrade pure-ftpd and pure-ftpd-common and confirm upgrade works.

Test result: the issue with pure-ftpd and pure-ftpd-common has been fixed.

Package tested:

$ apt-cache policy pure-ftpd-common
pure-ftpd-common:
  Installed: 1.0.49-4ubuntu0.1
  Candidate: 1.0.49-4ubuntu0.1
  Version table:
 *** 1.0.49-4ubuntu0.1 500
        500 http://gb.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu focal-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     1.0.49-4 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe i386 Packages

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
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.