XPost: linux.debian.bugs.dist
On Thu, 15 Jun 2017 20:31:00 +0000, Niels Thykier wrote:
Basically, jessie's verison of desktop-file-utils and shared-mime-info
have "-await" triggers (implicit) which will push other packages into a "TRIGGER_PENDING" state.
Once they are in that state, the "damage" is done and those other
packages will no longer satisfy dependencies until the trigger has been processed. Notably, dpkg is unable to /undo/ this state even if the
trigger changes from -await to -noawait during the upgrade.
* If this holds, then changing the desktop-file-utils and
shared-mime-info triggers *in stable* to -noawait should make the
problem go away.
* I realise it is unfeasible to implement in Debian by Saturday, but
it would help us understand the root cause of the problem.
- Tests to confirm/disprove this would be very welcome.
I think I can't confirm this theory. What I did:
A) Round 1: reproduce the problem:
1) enter a jessie cowbuilder chroot
2) rm /etc/apt/apt.conf.d/15pbuilder # which turns off installing recommends
3) apt-get install task-gnome-desktop
4) sed -i -e 's/jessie/stretch/g' /etc/apt/sources.list
5) apt-get update
6) apt-get upgrade
7) apt-get dist-upgrade
Result:
(Reading database ... 132342 files and directories currently installed.) Removing openjdk-7-jre:amd64 (7u111-2.6.7-1~deb8u1) ...
Removing openjdk-7-jre-headless:amd64 (7u111-2.6.7-1~deb8u1) ...
Removing tzdata-java (2017b-0+deb8u1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
gnome-menus -> desktop-file-utils
packages' pending triggers which are or may be unresolvable:
gnome-menus: /usr/share/applications
shared-mime-info: /usr/share/mime/packages
desktop-file-utils: /usr/share/applications
mime-support: /usr/share/applications
dpkg: error processing package gnome-menus (--remove):
triggers looping, abandoned
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
gnome-menus
E: Sub-process /usr/bin/dpkg returned an error code (1)
B) Round 2: play with triggers:
Same as above, except that after 3) I did
3a) sed -i -e 's/interest /interest-noawait /' /var/lib/dpkg/info/{desktop-file-utils,shared-mime-info}.triggers
and after 6) I again ran
6a) sed -i -e 's/interest /interest-noawait /' /var/lib/dpkg/info/{desktop-file-utils,shared-mime-info}.triggers
Result:
(Reading database ... 132342 files and directories currently installed.) Removing openjdk-7-jre:amd64 (7u111-2.6.7-1~deb8u1) ...
Removing openjdk-7-jre-headless:amd64 (7u111-2.6.7-1~deb8u1) ...
Removing tzdata-java (2017b-0+deb8u1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
dpkg: cycle found while processing triggers:
chain of packages whose triggers are or may be responsible:
gnome-menus -> desktop-file-utils
packages' pending triggers which are or may be unresolvable:
gnome-menus: /usr/share/applications
shared-mime-info: /usr/share/mime/packages
desktop-file-utils: /usr/share/applications
mime-support: /usr/share/applications
dpkg: error processing package gnome-menus (--remove):
triggers looping, abandoned
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
gnome-menus
E: Sub-process /usr/bin/dpkg returned an error code (1)
# for p in desktop-file-utils shared-mime-info gnome-menus mime-support ; do echo $p:; cat /var/lib/dpkg/info/$p.triggers; done
desktop-file-utils:
interest-noawait /usr/share/applications
shared-mime-info:
interest-noawait /usr/share/mime/packages
gnome-menus:
interest-noawait /usr/share/applications
interest-noawait gmenucache
mime-support:
interest-noawait /usr/lib/mime/packages
interest-noawait /usr/share/applications
Cheers,
gregor
--
.''`.
https://info.comodo.priv.at/ - Debian Developer
https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Donovan: Ballad of a crystal man
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAllDDClfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgY3MQ/+KJhlto2ukNPvJku9YMoI15cKwLNqzxbDUndVig4VbITKLbDfk+LbTYsB RKhFZNY8sSxtfu10ANW+waH+xux9w0q3tJIr/RFZWezP9VB/aEe3tXlpdVHc8N6s BnDAYIs3U8sslnP0E6kfgpS6tuywPMqaYrgAgq5r7x0EQoRnkLvkdXwT9fdpr1eA fKt8oE8G47WpwZKDnpzouAUA9KAKkVNs5LNdnjHzrANb54i6J6wmYGwTK5xaAKhe iJhVaa1Pd9gFIjx+V7iRjMhQyiDg+tguxvpXJw0yEWrj+GOxrTsQyVMi3DfP1cPa JHNOvDxKG1P16ZHdcSEGnkr1rvipeme/Sd6SIrwlEe9qh8ylBAMyG67cC/OTEiOT YzegdMLDlQxPWYYcd8ZWP+k0i4oZX9llI1xedCpW2D8733aVNt/Dj+7TeVdd6r2S igtmueKv8hGbbhLBg/tScbzIrJ/8zER47TPvie9eRPuLK7jQgbI4uvFK15RZ9ZP+ 9XJ+qcxfTH77sNhQ40nVHzZg5Xc9T5lSgNhmpHFJIvYyBW2kmpl4qGs5Y11RS8jH srHKmao3/T32fpuD5a+JbMGDd16I+ePAxJNCR2aMWJ+QXFcktnvt1oa9qG5tLlFw LL/6Ll/V42HbdApdXDrVjBPuSSeRGGsjHIlUso1iVtNerE4FBtg=
=RhnA
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)