no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | apt-get_cannot_remove_or_install_crappy_package_solution [17.05.2010 14:32] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== apt-get cannot remove or install crappy package (solution) ====== | ||
+ | after the installation of a package that was probably not made for your exact system especially when you forced the installation to ignore dependencies it might happen that you jam up your apt package manager. it gets even worse if you decide to manually delete the installed files. | ||
+ | i ran into this problem after installing the pt9500 cups wrapper and then deleting the installed files manually. | ||
+ | |||
+ | whenver i did something with apt-get be it install or remove a program i got this error: | ||
+ | |||
+ | < | ||
+ | Removing pt9500pccupswrapper ... | ||
+ | / | ||
+ | dpkg: error processing pt9500pccupswrapper (--remove): | ||
+ | | ||
+ | / | ||
+ | dpkg: error while cleaning up: | ||
+ | | ||
+ | Errors were encountered while processing: | ||
+ | | ||
+ | E: Sub-process / | ||
+ | </ | ||
+ | |||
+ | in order to get rid of this package i could not even use | ||
+ | apt-get remove cupswrapperpt9500pc | ||
+ | it showed the same errors. | ||
+ | |||
+ | your first try after this should be | ||
+ | sudo dpkg --remove --force-remove-reinstreq pt9500pccupswrapper | ||
+ | |||
+ | if you are lucky this will help | ||
+ | if not, your apt is seriously broken.. | ||
+ | |||
+ | now i think your only chance is to delete the dpkg stuff yourself.. i did it like so: | ||
+ | |||
+ | first i searched for anything that sounded like " | ||
+ | / | ||
+ | |||
+ | this showed a list of files in the info/ folder | ||
+ | < | ||
+ | info/ | ||
+ | info/ | ||
+ | info/ | ||
+ | info/ | ||
+ | info/ | ||
+ | info/ | ||
+ | </ | ||
+ | |||
+ | which i then removed: | ||
+ | mkdir /tmp/info | ||
+ | sudo mv info/ | ||
+ | |||
+ | just in case my system or apt crashes even worse afterwards i copied it to a directory that i created in /tmp where it will stay until i reboot my system. | ||
+ | |||
+ | now update your apt-get database and install missing dependencies: | ||
+ | apt-get -f install | ||
+ | |||
+ | this resolved my problems |