LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2009, 04:50 PM   #1
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
dpkg is messing up for me. Help!


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

Thats the error i get. I tried all that dpkg --configure -a and i put sudo in front of it but it still won't work. Help.
 
Old 01-08-2009, 04:56 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What distro are you running?

And what were you doing that caused the issue?

You can try parsing the output of dpkg --get-selections and see if something is listed as "broken" or "partially installed".
 
Old 01-08-2009, 04:59 PM   #3
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I have ubuntu 8.1

I got this for dpkg selections.

izese@izese-desktop:~$ dpkg --get-selections
dpkg: parse error, in file `/var/lib/dpkg/updates/0001' near line 1:
newline in field name `padding'
 
Old 01-08-2009, 05:05 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try using "sudo dpkg --get-selections".

And what were you doing when things went bad?
 
Old 01-08-2009, 05:05 PM   #5
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I tried to update some programs.
 
Old 01-08-2009, 05:07 PM   #6
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
got this.

izese@izese-desktop:~$ sudo dpkg --get-selections
dpkg: parse error, in file `/var/lib/dpkg/updates/0001' near line 1:
newline in field name `padding'
izese@izese-desktop:~$
 
Old 01-08-2009, 05:14 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What is the output of df -h.
 
Old 01-08-2009, 05:15 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
And what is the output of ls -al /var/lib/dpkg/updates?
 
Old 01-08-2009, 05:29 PM   #9
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I googled around and found a possible solution for you. You can try deleting the update that has been downloaded, then run dpkg. So in order you can try (at your own risk, of course)
Code:
sudo rm /var/lib/dpkg/updates/0001
sudo dpkg --reconfigure -a
Then when it was working again, I would run sudo aptitude update.
 
Old 01-08-2009, 05:57 PM   #10
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I had a similar problem recently on a live CD when I tried to do an apt-get dist-upgrade, but ran out of space.

It looked like the numbered file in /var/lib/dpkg/updates/ was truncated due to a lack of disk space, and this prevented apt-get or dpkg from working.

I was able to clear the problem by removing this file, then running
Code:
apt-get clean; dpkg --reconfigure -a
I got another error when I ran out of disk space again, but was finally able to run apt-get to remove some large packages that I'd downloaded, and it seemed to work from there.
 
Old 01-09-2009, 04:05 PM   #11
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez View Post
I googled around and found a possible solution for you. You can try deleting the update that has been downloaded, then run dpkg. So in order you can try (at your own risk, of course)
Code:
sudo rm /var/lib/dpkg/updates/0001
sudo dpkg --reconfigure -a
Then when it was working again, I would run sudo aptitude update.
After the first part, it shows a bunch of selections. Which one should i pick?

How do i delete/var/lib/dpkg/updates/?

izese@izese-desktop:~$ ls -al /var/lib/dpkg/updates
total 76
drwxr-xr-x 2 root root 4096 2009-01-09 17:02 .
drwxr-xr-x 8 root root 4096 2008-12-17 18:57 ..
-rw-r--r-- 1 root root 1144 2008-12-17 18:57 0000
-rw-r--r-- 1 root root 1143 2008-12-17 18:57 0002
-rw-r--r-- 1 root root 1143 2008-12-17 18:57 0003
-rw-r--r-- 1 root root 1137 2008-12-17 18:57 0004
-rw-r--r-- 1 root root 1130 2008-12-17 18:57 0005
-rw-r--r-- 1 root root 1085 2008-12-17 18:57 0006
-rw-r--r-- 1 root root 1078 2008-12-17 18:57 0007
-rw-r--r-- 1 root root 1084 2008-12-17 18:57 0008
-rw-r--r-- 1 root root 1084 2008-12-17 18:57 0009
-rw-r--r-- 1 root root 1078 2008-12-17 18:57 0010
-rw-r--r-- 1 root root 1071 2008-12-17 18:57 0011
-rw-r--r-- 1 root root 1036 2008-12-17 18:57 0012
-rw-r--r-- 1 root root 1029 2008-12-17 18:57 0013
-rw-r--r-- 1 root root 1035 2008-12-17 18:57 0014
-rw-r--r-- 1 root root 1035 2008-12-17 18:57 0015
-rw-r--r-- 1 root root 1029 2008-12-17 18:57 0016
-rw-r--r-- 1 root root 1022 2008-12-17 18:57 tmp.i


izese@izese-desktop:~$ df -h.
df: invalid option -- '.'
Try `df --help' for more information.
izese@izese-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 118G 23G 90G 21% /
tmpfs 441M 0 441M 0% /lib/init/rw
varrun 441M 216K 441M 1% /var/run
varlock 441M 0 441M 0% /var/lock
udev 441M 2.7M 439M 1% /dev
tmpfs 441M 692K 441M 1% /dev/shm
lrm 441M 2.0M 439M 1% /lib/modules/2.6.27-7-generic/volatile

Last edited by Joke-star; 01-09-2009 at 04:08 PM.
 
Old 01-09-2009, 04:17 PM   #12
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
help
 
Old 01-09-2009, 04:27 PM   #13
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Looks like you ran the first command and removed 0001. Did you then run dpkg --reconfigure -a?
 
Old 01-09-2009, 04:28 PM   #14
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez View Post
Looks like you ran the first command and removed 0001. Did you then run dpkg --reconfigure -a?
No should i?
 
Old 01-09-2009, 04:30 PM   #15
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Yes.
 
  


Reply

Tags
dpkg, software


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 10:59 PM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
dpkg: dpkg - error: PATH is not set basis1980 Linux - Software 1 12-07-2007 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:29 AM.

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
Open Source Consulting | Domain Registration