Friday, February 8, 2008

Recover from Adept-Manager Failures

Periodically, Adept-Manager will fail during an update. Though this should not occur, it will mean that you may have to resort to the command line to fix.

To open a terminal, hit the following key sequence:

ALT+F2



This will bring up the run command dialog. Type 'konsole' without the quotes and then hit the Run button.




This will launch konsole, the KDE Terminal, and a new bash shell (the Bourne again shell, similar to MS-DOS, but more powerful).



In the konsole, you now need to type a few commands to ensure the integrity of the Adept package database.

Step 1:

Update the repository database by entering the following:

sudo apt-get update

This will update the db, so please make sure you are connected to the internet when you do this. You may get a message at the end indicating additional commands to run. If you do, please follow this and enter those commands. Remember to prefix them with 'sudo' as they will require Admin rights to work.

For example, you may get a prompt that there was an error, and to run 'dpkg --configure -a'. If you do, this is what you would enter:


sudo dpkg --configure -a

If you have to run the reconfigure command, it is likely due to a package wanting to overwrite a file. In most cases it should be safe to hit 'y' to take the maintainers version. This should resoilve the conflict. If not, proceed with additional commands below

Step2:

You may need to run a check on the database, to ensure no broken dependencies. Run the following.

sudo apt-get check

This should be enough to get you back up and running.