PDA

View Full Version : [ubuntu] dpkg fails?



clickypens
September 23rd, 2008, 04:05 AM
I supppose this goes here:

whenever I try to update my hardy (or add or remove programs) I get an error telling me that dpkg was interrupted and that I should manually run "dpkg --configure -a" to corrrect it (it also says "E: _cache->open() failed, please report").
so, I do such. I open a terminal and type that in. it says I don't have permission and asks if I'm su. I installed ubuntu onto my lap from a live disc, it never asked for an su password. I type in the regular user password, and (of course) this is denied.

So how do I correct the problem?

lisati
September 23rd, 2008, 04:07 AM
From the terminal (on the Applications->Accessories->terminal) run
sudo dpkg --configure -a

It will ask for your password - use the same one that you logged in with. Don't panic if it doesn't show, just type in your password as usual. This is a normal security process used by Ubuntu.

clickypens
September 23rd, 2008, 04:23 AM
SUDO! I always forget to add that. thanks

so I did that, and get this:
dpkg: error processing eject (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Errors were encountered while processing:
eject

do I have to reinstall ubuntu?

frankleeee
September 23rd, 2008, 04:27 AM
are you sure you put the command in the terminal correctly, do it again and post the outcome.

clickypens
September 23rd, 2008, 04:30 AM
are you sure you put the command in the terminal correctly, do it again and post the outcome.


I put it in exactly as lisati said to. and

dpkg: error processing eject (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Errors were encountered while processing:
eject
is exactly what I got

frankleeee
September 23rd, 2008, 05:09 AM
I doubt if you have to due a install, somebody who recognizes your problem will probably post some solutions.

clickypens
September 24th, 2008, 03:45 AM
well, thanks for trying.

anyone know what's up?

xeth_delta
September 24th, 2008, 03:57 AM
SUDO! I always forget to add that. thanks

so I did that, and get this:
dpkg: error processing eject (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Errors were encountered while processing:
eject

do I have to reinstall ubuntu?

The "reinstall" refers to the package, not the entire system. What were you trying to do/install?

unutbu
September 24th, 2008, 03:57 AM
What is the output if you type


sudo apt-get -f install
sudo dpkg --configure -a
(I'm getting this from http://www.debian.org/doc/manuals/apt-howto/ch-erros.en.html)

clickypens
September 24th, 2008, 04:03 AM
The "reinstall" refers to the package, not the entire system. What were you trying to do/install?

just regular updating.


What is the output if you type


sudo apt-get -f install
sudo dpkg --configure -a
(I'm getting this from http://www.debian.org/doc/manuals/apt-howto/ch-erros.en.html)

well, first it installed that "-f" program (obviously), though I did notice that when it read me the state information, I had "0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
1 not fully installed or removed"
could this be the problem? if so, what program is it?

then when I ran the dpkg config command it didn't do anything.
am currently trying to run upgrades (the Update Manager has gotten stuck after I hit "Install Updates"

EDIT: that last command got it working. thanks ton, man.

xeth_delta
September 24th, 2008, 04:22 AM
just regular updating.



well, first it installed that "-f" program (obviously), though I did notice that when it read me the state information, I had "0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
1 not fully installed or removed"
could this be the problem? if so, what program is it?

then when I ran the dpkg config command it didn't do anything.
am currently trying to run upgrades (the Update Manager has gotten stuck after I hit "Install Updates"

Ok, there might be a problem with one of the packages.
"-f" is not a program, it is just an option of the command/program dpkg.

Please, do post all the output and how you write the commands, that way it will be much easier for us to help you. Just copy from the terminal and paste in the composing page. Please post the code between CODE tags (the # button on this page)

Run

sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade
Please post the whole error message.