/usr/share/man/man8/idmap_rfc2307.8.gz has moved package without an appropriate Breaks/Replaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
Medium
|
Andreas Hasenack | ||
Lunar |
Fix Released
|
Medium
|
Andreas Hasenack | ||
Mantic |
Fix Released
|
Medium
|
Andreas Hasenack |
Bug Description
[ Impact ]
An Ubuntu security update in kinetic went ahead of debian with a new upstream release of samba. The new version unknowingly crossed over a breaks/replaces version in Lunar's samba packaging, but without the change made at that version (see comment $4 for details).
Users who exclusively use "apt dist-upgrade" to upgrade from Kinetic to Lunar will hit a file conflict when winbind is unpacked. If do-release-upgrade is used instead, then the conflict is worked around because do-release-upgrade sets a --force flag.
The fix is to change the version used in B/R to match the first ubuntu package which incorporated that file move between packages.
Given that:
a) kinetic is eol
b) users should do-release-upgrade to upgrade between ubuntu releases, and not dist-upgrade
the impact of this bug is low. But it's possible that jammy and focal, currently at samba 4.15.13, could get similar version bumps in the future. If they cross the 4.16.5+dfsg-2 version barrier, users who dist-upgrade between ubuntu releases would hit this bug again.
Given the above, this SRU should not be released on its own, because the fix will be in lunar and later, and not benefit those users in any way. It only benefits upgrades from older releases of Ubuntu to lunar and later. I will therefore add the block-proposed tag.
[ Test Plan ]
To reproduce the bug:
- deploy kinetic
- install packages:
$ sudo apt install samba samba-libs winbind -y
- upgrade to lunar: sudo do-release-upgrade
- Verify the bug happened by inspecting the apt-terminal.log file:
$ grep "trying to overwrite" /var/log/
dpkg: warning: trying to overwrite '/usr/share/
dpkg: warning: trying to overwrite '/usr/share/
To verify the fix:
- deploy kinetic
- install packages:
$ sudo apt install samba samba-libs winbind -y
- enable proposed
- upgrade to lunar, but preserving proposed (FIXME: does --allow-third-party leave proposed alone? To be checked when proposed has the actual packages)
$ sudo do-release-upgrade --allow-third-party
- verify apt-terminal.log has no "trying to overwrite" lines:
$ grep "trying to overwrite" /var/log/
$
- to be sure, check that winbind was unpacked without errors in the log:
$ grep "Unpacking winbind" /var/log/
Unpacking samba (2:4.17.
Preparing to unpack .../18-
Unpacking samba-libs:amd64 (2:4.17.
Preparing to unpack .../19-
Unpacking winbind (2:4.17.
Preparing to unpack .../20-
Unpacking samba-common-bin (2:4.17.
Preparing to unpack .../21-
Unpacking samba-vfs-
[ Where problems could occur ]
If the new version used in B/R is incorrect, file conflicts will likely happen again, and break upgrades.
If some update in a stable release again goes over the version stated in the B/R, file conflicts will happen again and break upgrades.
[ Other Info ]
This SRU should only be released if in conjunction with another samba update for lunar, otherwise it will be of no benefit to lunar users.
[Original Description]
Tried to upgrade from 22.10 to 23.04 and I'm unable to do so. Something similar has happened for maybe 2 months. Whenever I try to update via "sudo apt update" or upgrade, I get that the repositories are not secure and it never finds any available packages.
Not sure what the problem is
ProblemType: Package
DistroRelease: Ubuntu 22.10
Package: winbind 2:4.16.
ProcVersionSign
Uname: Linux 5.19.0-45-generic x86_64
ApportVersion: 2.23.1-0ubuntu3.2
Architecture: amd64
CasperMD5CheckR
Date: Thu Jun 22 14:49:26 2023
ErrorMessage: intentando sobreescribir `/usr/share/
InstallationDate: Installed on 2023-01-13 (159 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.9ubuntu1
apt 2.5.3
SambaClientRegr
SourcePackage: samba
Title: package winbind 2:4.16.
UpgradeStatus: Upgraded to kinetic on 2023-06-22 (0 days ago)
Related branches
- Bryce Harrington (community): Approve
- git-ubuntu bot: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 3665 lines (+3228/-8)7 files modifieddebian/changelog (+2658/-0)
debian/control (+30/-4)
debian/rules (+11/-3)
debian/samba-vfs-modules-extra.install (+4/-0)
debian/tests/control (+4/-0)
debian/tests/samba-ad-dc-provisioning-internal-dns (+398/-0)
debian/tests/util (+123/-1)
- git-ubuntu bot: Approve
- Bryce Harrington (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 3480 lines (+3080/-8)6 files modifieddebian/changelog (+2558/-0)
debian/control (+8/-6)
debian/rules (+1/-1)
debian/tests/control (+4/-0)
debian/tests/samba-ad-dc-provisioning-internal-dns (+398/-0)
debian/tests/util (+111/-1)
- git-ubuntu bot: Approve
- Bryce Harrington (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 33 lines (+12/-2)2 files modifieddebian/changelog (+9/-0)
debian/control (+3/-2)
- Andreas Hasenack: Disapprove
- Canonical Server Reporter: Pending requested
-
Diff: 33 lines (+12/-2)2 files modifieddebian/changelog (+9/-0)
debian/control (+3/-2)
Changed in samba (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
tags: |
added: regression-security removed: regression-update |
Changed in samba (Ubuntu): | |
status: | Triaged → In Progress |
Changed in samba (Ubuntu Lunar): | |
status: | New → In Progress |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in samba (Ubuntu Mantic): | |
importance: | High → Medium |
Changed in samba (Ubuntu Lunar): | |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
description: | updated |
tags: | added: block-proposed-lunar |
Thank you for the bug report. I was unable to reproduce the issue when installing winbind and samba-libs and doing various upgrades. However both packages do provide /usr/share/ man/man8/ idmap_rfc2307. 8.gz. It's possible that the version of samba-libs you have and the version of winbind you are upgrading to have slightly different versions of the file. It may be worth deleting the file then attempting to apt upgrade again. If that works for you or if you have any other ideas please let us know