Apt-listchanges error

The issue I am facing:

  • After a failed apt-get-upgrade nothing happened for a week, then i got a "Internal Server Error 500" yesterday out of the blue.
  • I applied pihole-r selecting "repair" option, pi-hole somehow started to work. But the admin page is broken.

  • I tried to update&&upgrade packages, but i got this error:
    apt_error1

  • After searching that error code, i guessed apt-listchanges is causing problems. So i tried almost all advices written out there, but they didn't work. Here are some of my failed attempts :slightly_smiling_face:

How can i fix this mess?

Thanks in advance.

Details about my system:
Linux raspberrypi 5.4.72+ #1356 Thu Oct 22 13:56:00 BST 2020 armv6l GNU/Linux
Only running Pi-hole.

What I have changed since installing Pi-hole:
Regular updates, nothing more.

Debug token: https://tricorder.pi-hole.net/aoa4l5mfd5

This is way beyond the scope of pihole (but rather an OS issue), but a quick online search yield:

https://bugs.launchpad.net/ubuntu/+source/apt-listchanges/+bug/1614191

1 Like

Thanks, but i already tried all those (check my 3rd screenshot) and none of them worked.

I want to avoid a reinstall of OS as much as possible.

I could not see you making any modification on

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

It already had the line

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

according to your 3rd link, so i didn't post that.

Should i add or remove anything on etc/apt/apt.conf.d/20listchanges other than these lines?

One of the links recommended to delete the file /etc/apt/apt.conf.d/20listchanges entierly and the other to remove the line

/usr/bin/apt-listchanges --apt || test $? -lt 10 from it.

1 Like

You already tried to purged the package, so simply remove the file and purge it. If you never manually reviewed the changelog of APT packages on your system, you don't need apt-listchanges. Else see if a clean reinstall recovers it functional, or we'd need to run the script in verbose more to see why it fails.

But that shouldn't affect the Pi-hole web interface. Did you try to access it with a different browser or forced cache clearing (ctrl+f5)? It looks a bit like with broken cache, hence the test.

1 Like

Did you try to access it with a different browser or forced cache clearing (ctrl+f5)? It looks a bid like with broken cache

Thanks for your suggestions
Yeah, i tried most of tricks about that and they didn't solve the issue. It seems installing a clean OS and Pi-hole is the reasonable way for now.

This worked perfectly. Thanks a lot for this!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.