Quote:
Originally Posted by bengaminrdx
what does this code do ??
does it purge apt's
|
Bonus points to you just for asking. Always good habit to know whhat you're doing.
Ok, now, I have helped many who have broken apt (probably 7 of the 11 pages in my "subscribed threads"), and there becomes a point where you just have to fix it by forc, but before we do...
Now, I noticed you didn't try ondoho's suggestion. Try that first:
Code:
dpkg --configure -a
If any package was not fully installed and configured, this will fix that,
if possible.
If it can't, it should tell you which package failed, and why it failed. You'll want to reinstall the package
causing the problem, which may not be the package that's failing to install properly (note to self: I really should keep a bunch of error snippets handy for these cases). It may be a missing or broken dependency. Read dpkg's output carefully, and if unsure, post the output here.
[edit]I hesitate to mention this now, because you really want to fix this the right way. However, I don't know how impatient you are. Proceed past this point at your own risk.[/edit]
*****
If all of the above does not work, we can start to open up APT by force, make a backup of APT's stuff first:
Code:
cp -arf /var/lib/dpkg /var/lib/dpkg.backup
then remove the lock files (if you get an error any particular file doesn't exist, that's fine, we just want to be sure any possible lock file is removed):
Code:
/var/lib/dpkg/lock
/var/lib/apt/lists/lock
/var/cache/apt/archives/lock
After removing those files, run
Hopefully now you should be up and running.