The apt-listchanges package has unmet dependencies preventing package operations. This typically occurs due to missing Python dependencies or incomplete previous operations, and can be resolved by fixing broken packages and reconfiguring failed installs.
Fixes E: Broken packages (apt-listchanges)
sudo apt-get checksudo apt-get checkE: Broken packages (apt-listchanges)
On this page
apt-listchanges is a Debian package management utility that shows changelog entries when packages are updated. When apt reports "E: Broken packages (apt-listchanges)", it means the apt-listchanges package cannot be properly installed or configured because one or more of its dependencies are missing or broken. This is commonly caused by interrupted package operations, missing Python libraries like python3-apt or python3-debconf, or conflicting package states. The error prevents apt from proceeding with package upgrades or installations until the dependency issue is resolved.
First, identify all broken packages on your system:
sudo apt-get checkThis command will list which packages have dependency problems and need to be fixed.
Use dpkg to finish any incomplete package configurations:
sudo dpkg --configure -aThis will attempt to complete any partially installed or removed packages that dpkg left in an inconsistent state.
Update the package lists while ignoring temporarily unavailable packages:
sudo apt update --fix-missingThis allows apt to refresh its package cache while skipping any missing or broken sources.
Use apt to fix broken package dependencies:
sudo apt --fix-broken installAlternatively, you can use:
sudo apt install -fThis command will install missing dependencies and attempt to resolve the broken state. You may be prompted to remove conflicting packages.
If the above steps do not resolve the issue, forcefully remove apt-listchanges and let apt reinstall it:
sudo dpkg --remove --force-remove-reinstreq apt-listchangesThen reinstall and update:
sudo apt update && sudo apt install apt-listchangesThis forces removal even if dependencies are broken, then performs a clean reinstall.
Once apt-listchanges is fixed, complete any pending upgrades:
sudo apt update
sudo apt upgradeYour system should now be able to process package operations normally.
The apt-listchanges package is installed by default on most Debian and Ubuntu systems. It functions as an APT plugin configured in /etc/apt/listchanges.conf. The package depends on python3-apt and python3-debconf for parsing changelogs. In rare cases where the package is no longer needed, you can safely remove it entirely with sudo apt remove apt-listchanges and apt operations will continue normally. For systems using unattended-upgrades, apt-listchanges can be configured to send email notifications about updates by setting the frontend to "mail" in the configuration file.