Views:
3,288β
Votes: 2β
β
Solution
Tags:
apt
package-management
upgrade
dpkg
latex
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1029546
Title:
Cannot remove apt package (unmet dependencies)
ID:
/2018/04/29/Cannot-remove-apt-package-_unmet-dependencies_
Created:
April 29, 2018
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Just had a headache myself today with having to fix a broken kernel 4.14.36
and 4.14.37
which could not be removed due to symbolic link errors.
Referring to this Q&A: Remove broken PPA package with unknown option, but following my βcheatβ method, edit the file /var/lib/dpkg/info/context.postrm
and after the line:
#!/bin/sh
insert the line
exit 0
Save the file and use:
sudo apt install -f
It should run without any errors now.