Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: Taliesin on 2016/09/03, 03:00:38

Title: [solved] apt-listchanges returned an error code (1)
Post by: Taliesin on 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,

Code: [Select]
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.

Code: [Select]
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
Title: Re: Dist Upgrade problem
Post by: piper on 2016/09/03, 03:07:23
Have you done a

Code: [Select]
apt clean
then reboot and try again ?

Make sure you have this line

Code: [Select]
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
Title: Re: Dist Upgrade problem
Post by: Taliesin on 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!
Title: Re: [solved] apt-listchanges returned an error code (1)
Post by: piper on 2016/09/03, 12:56:57
No problem mate, glad it was an easy fix  ;)