Siduction Forum

Siduction Forum => Upgrade Warnings => Thema gestartet von: Taliesin in 2016/09/03, 03:00:38

Titel: [solved] apt-listchanges returned an error code (1)
Beitrag von: Taliesin in 2016/09/03, 03:00:38
Hi folks, following up on the "KDE to be removed" due to the recent major upgrade.

I waited until the conditions for a dist-upgrade were optimal, that is no packages to be removed only upgraded.

Running apt-get dist-upgrade now shows,

533 upgraded, 12 newly installed, 0 to remove and 1 not upgraded.
259 not fully installed or removed.


Not sure why the 259 not fully installed or removed. Never seen that before.

And I get the following error message.

apt-listchanges: APT_HOOK_INFO_FD environment variable is incorrectly defined
(Dpkg::Tools::Options::/usr/bin/apt-listchanges::InfoFD should be greater than 2).
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -ne 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -ne 10
Titel: Re: Dist Upgrade problem
Beitrag von: piper in 2016/09/03, 03:07:23
Have you done a

apt clean

then reboot and try again ?

Make sure you have this line

DPkg::Tools::Options::/usr/bin/apt-listchanges::InfoFD "20";

in /etc/apt/apt.conf.d/20listchanges


EDIT:

If that line exists, you might want to try this

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835046
Titel: Re: Dist Upgrade problem
Beitrag von: Taliesin in 2016/09/03, 06:15:19
Vote 1 Piper for President - Legends of Linux party!

The line you mentioned was indeed absent from

/etc/apt/apt.conf.d/20listchanges

Thank you once again mate!
Titel: Re: [solved] apt-listchanges returned an error code (1)
Beitrag von: piper in 2016/09/03, 12:56:57
No problem mate, glad it was an easy fix  ;)