Created
October 20, 2015 11:08
-
-
Save jake9050/a3512f3b81237e1511f0 to your computer and use it in GitHub Desktop.
Try to fix broken apt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sometimes a package f*cks up during installation and you get a broken state, potentially messing with the ability to install other software ... | |
Example of bad install | |
dpkg: error processing package PACKAGE (--configure): | |
subprocess installed post-installation script returned error exit status 1 | |
Errors were encountered while processing: | |
PACKAGE | |
E: Sub-process /usr/bin/PACKAGE returned an error code (1) | |
Solution: | |
Manualy uninstall and remove the dpkg state files: | |
mv /var/lib/dpkg/info/PACKAGE.* /tmp/ | |
dpkg --remove --force-remove-reinstreq PACKAGE | |
dpkg --purge PACKAGE | |
Now you can try apt-get installing it again :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment