Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Update Manager problems

  Date: Dec 13    Category: Unix / Linux / Ubuntu    Views: 347
  

When I try to run Update Manager in Ubuntu 8.10 it tells me I have 117
updates waiting but when I click on Install Updates I get an error message:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to
correct the problem.
E: _cache->open() failed, please report.

Could someone help me through this please. I typed 'dpkg --configure -a'
in Terminal and was told I had to be superuser so I typed 'sudo dpkg
--configure -a' and nothing happens.......

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 13    

The error message means that a previous installation or update was aborted or
was left incomplete and the previous one needs to be either removed or
completed. You cannot leave it as it is or you won't be able yo update or
install. This should sort itself out, unless you have been installing things
outside of the repos which can leave you in a situation where you have to
manually remove the packages. Not a pretty thing.

Open the terminal and type: sudo dpkg --configure -a

You will be prompted for your password to sudo. Then it will tell you what needs
to be done, but basically just agree and type Y for Yes and press Enter.

It should take you back to a $ prompt when it is done. If this does not work
then let us know precise error messages that you see. Also make sure that when
you do this that you have no package manager open. No Synaptic or Update Manager
windows should be open. It is okay to have it in the system tray, but you cannot
use the dpkg command while a package manager is running.

 
Answer #2    Answered On: Dec 13    

There is something really weird going on - I can't write in my password
in the terminal when prompted, this is what happened, I wrote
xxxxxxx@xxxxxxxx-laptop:~$ sudo dpkg --configure -a (hit return and was
prompted for my password as below)
[sudo] password for xxxxxxxxx: (not looking at the screen I typed in my
password and hit return and got)
Sorry, try again.
[sudo] password for xxxxxxxxx: (this time I watched the screen and
whilst typing my password nothing happened, hit return again)
Sorry, try again.
[sudo] password for xxxxxxxxx: (all I get is the blinking black cursor,
no input from the keyboard).

So I am stuck again without being closer to solving the original
problem................

 
Answer #3    Answered On: Dec 13    

It is hard for me to guess what is going on. Even when the password is wrong, it
will prompt you again. It sounds like more is going on than broken dpkg. Try
some other commands that require sudo and can do no harm such as: sudo lshw. It
will show your hardware. This just lets you know if sudo is working. Another one
to try is: sudo su. It should change the prompt from a $ to a # sign, meaning
that you are now root and any further commands will be executed as root. This is
useful if you don't want to type sudo before each root command. None of this
resolves your problem. It just let's you know two things: one is that your
password works and two is that sudo works.

Fixing broken dependencies is complex. It is helpful if you can remember the
last thing that you installed before it broke. The reason is that it could be
from apt or dpkg and if you know the programme you can try to remove it. If you
can't remember try in order the following:

Open Synaptic (in the Menu under System | Administration. In Synaptic go to
Custom Filters in the bottom left. Choose Broken. If there is a broken apt
package it will show here. You can right click on it and choose Mark for
Complete Removal. Then Apply the changes.

If this does not work open a terminal and type: sudo apt-get -f install
Next comes where it is helpful if you knwo the name of the package: sudo apt-get
remove --purge <packagename> with the name of the pagage replacing the brackets
and the words in between such as sudo apt-get remove --purge gedit will remove
gedit.

Afterwards type: apt-get clean

Failing this you can try: sudo dpkg --purge <packagename>

If you don't know the package name then try: sudo dpkg-reconfigure -a

Hope this helps. I have used these to fix my apt/dpkg , but am am firing blanks
because I can't see your system and the output of the commands.

 
Didn't find what you were looking for? Find more on Update Manager problems Or get search suggestion and latest updates.




Tagged: