Precise to Trusty dist-upgrade failure - Dependencies of Trusty's libpango1.0-0 package needs to be updated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pango1.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
[SRU Justification]
Causes upgrade failures in common desktop configurations, depending on package upgrade order.
[Test case]
1. In a precise chroot, enable trusty in sources.list.
2. sudo apt-get install libpango1.0-0
3. sudo update-initramfs -u
4. verify that this fails
5. enable trusty-proposed
6. sudo apt-get install libpango1.0-0
7. sudo update-initramfs -u
8. verify that this succeeds
[Regression potential]
Some risk that moving the versioned Conflicts from one package to another will cause knock-on effects for calculation of upgrade paths. Otherwise minimal risk.
Issue:
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.
cp: cannot stat '/usr/lib/
cp: cannot stat '/usr/lib/
E: /usr/share/
update-initramfs: failed for /boot/initrd.
On Precise:
$ dpkg -S /usr/share/
plymouth: /usr/share/
$ dpkg -S /usr/lib/
libpango1.0-0: /usr/lib/
$ dpkg -S /usr/lib/
libpango1.0-0: /usr/lib/
On Trusty:
$ dpkg -S /usr/share/
plymouth: /usr/share/
$ dpkg -S /usr/lib/
dpkg-query: no path found matching pattern /usr/lib/
$ dpkg -S /usr/lib/
dpkg-query: no path found matching pattern /usr/lib/
Error state during dist-upgrade:
$ apt-cache policy plymouth
plymouth:
Installed: 0.8.2-2ubuntu31.1
Candidate: 0.8.8-0ubuntu17
$ apt-cache policy libpango1.0-0
libpango1.0-0:
Installed: 1.36.3-1ubuntu1
Candidate: 1.36.3-1ubuntu1
$ apt-cache policy initramfs-tools
initramfs-tools:
Installed: 0.103ubuntu4.2
Candidate: 0.103ubuntu4.2
$ dpkg -s initramfs-tools
Package: initramfs-tools
Status: install ok half-configured
Solution:
Add a breaks 'plymouth (<< 0.8.8-0ubuntu17) to the libpango1.0-0 package.
Related branches
summary: |
Precise to Trusty dist-upgrade failure - Dependencies of Trusty's - libpango-1.0-0 package need to be updated + libpango-1.0-0 package needs to be updated |
summary: |
Precise to Trusty dist-upgrade failure - Dependencies of Trusty's - libpango-1.0-0 package needs to be updated + libpango1.0-0 package needs to be updated |
description: | updated |
I'm not sure why you encountered this bug. The libpango-1.0-0 package in trusty already has a Conflicts against plymouth:
Package: libpango-1.0-0
Version: 1.36.3-1ubuntu1
Conflicts: plymouth (<< 0.8.8-0ubuntu7)
(and a conflicts is even stronger than a breaks - and is required here to ensure the incompatible initramfs hook is never unpacked on the system at the same time).
So I don't see how your system could have been in a state where this error would happen.