Upgrading from ubuntu 23.10 to 24.04 I found a broken package: libfreerdp2-2. This package is not in var/lib/dpkg/info, but terminal insists it is. I’ve tried purging it, removing it, apt --fix-broken install, but it always goes back to Sub-process /usr/bin/dpkg returned an error code (1)
how do I fix this?
If apt wont remove it, try using dpkg
https://www.baeldung.com/linux/apt-uninstall-dpkg-deb-package
if it doesnt work you may get a better idea whats going on.
Any clearer errors in /var/log/dpkg.log?
In this case I would download the deb from here (Click on Mantic, and scroll down to files and find your architecture you use and download the file : https://packages.ubuntu.com/search?keywords=libfreerdp2 and install it with
dpkg -i
If that installs successfully then continue your upgrade attempt.Maybe it still appears in
/var/lib/dpkg/status
? If it is, try deleting the entry from there.I’ve sometimes encountered error 1 when the extraction failed because the downloaded deb-archive was corrupted. Deleting the corresponding deb-file in
/var/cache/apt
helped in my case.