LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2009, 12:56 AM   #1
iball8888
Member
 
Registered: May 2009
Posts: 45

Rep: Reputation: 18
E: dpkg was interrupted UBUNTU HELP


i am getting:

E: dpkg was interrupted you must manually run 'dpkg -- configure - a' to correct.
Problem E: _cache->open()failed

Whenever i try to do an apt get or open Synaptic.

Response: Well you idiot just do dpkg -- configure - a in the terminal to fix it.

My Response back: I did that...at least 4 times. Whenever i do it the terminal lists some stuff and then Ubuntu automatically logs out. and screen goes blank for a second. After that i get put back into the log in screen. But when this happens my mouse and keyboard doesnt work. Then i have to hold the power button and restart. After that everything is fine except i still have the same problem. And then if i try to 'dpkg -- configure - a' same thing happens.

Any help?
 
Old 05-23-2009, 02:32 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
You need to start the command with sudo
Code:
sudo dpkg --configure -a
Ubuntu uses sudo to gain root privileges instead of a dedicated root account like most other distros.
 
Old 05-23-2009, 02:35 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Have you tried doing an update? For example
Code:
sudo aptitude update
in a terminal?
cheers,
jdk
 
Old 05-23-2009, 02:55 AM   #4
iball8888
Member
 
Registered: May 2009
Posts: 45

Original Poster
Rep: Reputation: 18
did the config in sudo. Same thing.

Here is output for the update:

anthony@anthony-desktop:~$ sudo aptitude update
[sudo] password for anthony:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Hit http://us.archive.ubuntu.com jaunty Release.gpg
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release
Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com jaunty Release
Hit http://us.archive.ubuntu.com jaunty-updates Release
Hit http://security.ubuntu.com jaunty-security/main Packages
Hit http://us.archive.ubuntu.com jaunty/main Packages
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://security.ubuntu.com jaunty-security/restricted Sources
Hit http://security.ubuntu.com jaunty-security/universe Packages
Hit http://us.archive.ubuntu.com jaunty/restricted Packages
Hit http://us.archive.ubuntu.com jaunty/main Sources
Hit http://us.archive.ubuntu.com jaunty/restricted Sources
Hit http://us.archive.ubuntu.com jaunty/universe Packages
Hit http://us.archive.ubuntu.com jaunty/universe Sources
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty-updates/main Packages
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://us.archive.ubuntu.com jaunty-updates/main Sources
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://us.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://us.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: Couldn't rebuild package cache
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
 
Old 05-23-2009, 11:09 AM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well, to understand this, first you need to understand what the command is doing. dpkg --configure (obviously) configures the package(s) at argv[2:]- the -a switch is to configure all unpacked, yet unconfigured packages. You must have had a failure during a previous install, this is causing all kinds of errors in stuff like deps etc., so dpkg/apt-get wants to solve this first.

Think back, can you remember what you last installed successfully? Or even better, what errored first? Find that, we can try and fix the problem.

Off the top of my head, though- let me guess, 64bit arch and apt-get upgrade downloaded and tried to install initramfs?
 
Old 05-23-2009, 12:27 PM   #6
iball8888
Member
 
Registered: May 2009
Posts: 45

Original Poster
Rep: Reputation: 18
Well ever since i installed Ubuntu whenever i would try to do install files from a tar.gz, it would always say there was no makefile. So I did some research and decided to really pay attention to the next ./config i do to see what the errors were. ./configure told me that "GLib library version 2.14 or later is required" to which I installed glib2-devel-2.14 through Synaptic. It installed successfully and then tried to do another ./configure. Then it said something about DBus so i went and downloaded "dbus_1.2.14-2_i386.deb" because i obviously can't do tar.gz right. When i ran the deb, it started to install and then the whole (screen fades out i auto lougout and then i am sent to the login screen with no mouse or no keyboard) thing started to happen.

*note* When i ran the dbus_1.2.14-2_i386.deb it says the same version is install do i want to reinstall. So dbus was succesfull.

Last edited by iball8888; 05-23-2009 at 12:29 PM.
 
Old 05-23-2009, 12:30 PM   #7
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Linux Mint 18 XFCE, Debian Jessie XFCE, NAS: OpenMediaVault
Posts: 1,304

Rep: Reputation: 56
Quote:
Originally Posted by iball8888 View Post
Well ever since i installed Ubuntu whenever i would try to do install files from a tar.gz, it would always say there was no makefile. So I did some research and decided to really pay attention to the next ./config i do to see what the errors were. ./configure told me that "GLib library version 2.14 or later is required" to which I installed glib2-devel-2.14 through Synaptic. It installed successfully and then tried to do another ./configure. Then it said something about DBus so i went and downloaded "dbus_1.2.14-2_i386.deb" because i obviously can't do tar.gz right. When i ran the deb, it started to install and then the whole (screen fades out i auto lougout and then i am sent to the login screen with no mouse or no keyboard) thing started to happen.
I'd recommend sticking w/ whats in the repositories... You can learn to compile in due time..

IGF
 
Old 05-23-2009, 12:41 PM   #8
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Okay, to get back on track- was I right with my 64bit guess? This has happened before on this arch.

@IGF: If there are no dependency issues, there is no benefit to using a manager, besides ease, so long as you remember to clean afterwards and remember such things as update-db. If anything, I'd recommend compiling from source, as per gentoo and LFS

Did you install the dbus deb from apt or from dpkg? If you can't remember what you installed after this, use 'history' to tell you.
 
Old 05-23-2009, 01:11 PM   #9
iball8888
Member
 
Registered: May 2009
Posts: 45

Original Poster
Rep: Reputation: 18
well okay here is an update on what is happening. I downloaded the latest glib but in tar.bz2 form. It installed...Yay...and now when i do ./configure to tar.gz i can install.

So then i said well if i am lucky once maybe i can be lucky again. So i did "sudo dpkg -- configure - a". It spat out some stuff about dbus (so dbus deb must be the problem) and then the screen started to fade and i was like NOOOooo. The on a black screen it spat some more lists. Ad then i was at the login screen. I puhed my mouse it worked and so did my keyboard. So i signed in to see if the dpgk worked...it didnt Ran synpatic ame problem. So i went back into the terminal for another "sudo dpkg -- configure - a" and now its the same prob, kicked out with no mouse or keyboard.


Oh and by the way. No i am not doing 64bit i am 32bit.
 
Old 05-23-2009, 01:21 PM   #10
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Okay, well if there was a specific message, lets find it. Reproduce the error, then after it fails, take a gander at /var/log/dpkg.log - see what happens there. I was curious about the 64bit from the hardware spec at the bottom
 
Old 05-23-2009, 01:36 PM   #11
iball8888
Member
 
Registered: May 2009
Posts: 45

Original Poster
Rep: Reputation: 18
So i did it again, here is the output after the tomfailery.

"2009-05-23 13:28:47 startup packages configure
2009-05-23 13:28:47 configure dbus 1.2.14-2 1.2.12-0ubuntu2
2009-05-23 13:28:47 status half-configured dbus 1.2.14-2"

And about the 32bit. I did some research and decided that at the moment 64 wasn't worth it. So i stayed 32.
 
Old 05-23-2009, 01:38 PM   #12
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Okay, now we're getting somewhere- what does
Code:
dpkg -l dbus
give you?
 
Old 05-23-2009, 01:47 PM   #13
iball8888
Member
 
Registered: May 2009
Posts: 45

Original Poster
Rep: Reputation: 18
Yay for progress!!

Output:

"Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
iF dbus 1.2.14-2 simple interprocess messaging system"
 
Old 05-23-2009, 02:23 PM   #14
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well, that capital F (as it says above) means 'Failed-cfg', so lets try and fix it. First, try an
Code:
# apt-get purge dbus && apt-get install dbus
to see what happens.

if not, what happens if you grab the actual deb file (or even source) and install that? Failing that, we may be able to manually delete the files already there and see what happens. Try from a deb first, go:
http://packages.ubuntu.com/search?ke...ll&section=all
and grab the relevant one. Then use
Code:
# dpkg -i dbus*
to install it. See if it helps(I'm not really holding my breath, I just want the possibility out of the way).
 
Old 05-23-2009, 03:26 PM   #15
iball8888
Member
 
Registered: May 2009
Posts: 45

Original Poster
Rep: Reputation: 18
the apt-get told me to dpkg. The deb says i have a later verion than that link (but debs dont work either they tell me to close aptitude or synaptic (which is not open). and when tried to dpkg -i dbus, i crashed again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error Mountain Man 77 Linux - Newbie 8 02-21-2015 11:59 PM
dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the prob krishna.nitk Linux - Newbie 3 03-21-2009 03:41 PM
Ubuntu newbie, E: dpkg was interrupted, you must manually run 'dpkg --configure -a' ? chinkychan Linux - Newbie 1 01-28-2009 11:21 PM
E:dpkg was interrupted,you must manually run"dpkg --configure -a" to correct problem loplop4 Debian 5 09-29-2008 12:11 PM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration