LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 01-08-2009, 05:50 PM   #1
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0
dpkg is messing up for me. Help!


[Log in to get rid of this advertisement]
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.
Joke-star is offline  
Tag This Post , ,
Reply With Quote
Old 01-08-2009, 05:56 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
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".
pljvaldez is offline     Reply With Quote
Old 01-08-2009, 05:59 PM   #3
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0

Original Poster
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'
Joke-star is offline     Reply With Quote
Old 01-08-2009, 06:05 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
Try using "sudo dpkg --get-selections".

And what were you doing when things went bad?
pljvaldez is offline     Reply With Quote
Old 01-08-2009, 06:05 PM   #5
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0

Original Poster
I tried to update some programs.
Joke-star is offline     Reply With Quote
Old 01-08-2009, 06:07 PM   #6
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0

Original Poster
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:~$
Joke-star is offline     Reply With Quote
Old 01-08-2009, 06:14 PM   #7
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
What is the output of df -h.
pljvaldez is offline     Reply With Quote
Old 01-08-2009, 06:15 PM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
And what is the output of ls -al /var/lib/dpkg/updates?
pljvaldez is offline     Reply With Quote
Old 01-08-2009, 06:29 PM   #9
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
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.
pljvaldez is offline     Reply With Quote
Old 01-08-2009, 06:57 PM   #10
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,969
Thanked: 19
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.
rjlee is offline     Reply With Quote
Old 01-09-2009, 05:05 PM   #11
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0

Original Poster
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 05:08 PM..
Joke-star is offline     Reply With Quote
Old 01-09-2009, 05:17 PM   #12
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0

Original Poster
help
Joke-star is offline     Reply With Quote
Old 01-09-2009, 05:27 PM   #13
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
Looks like you ran the first command and removed 0001. Did you then run dpkg --reconfigure -a?
pljvaldez is offline     Reply With Quote
Old 01-09-2009, 05:28 PM   #14
Joke-star
LQ Newbie
 
Registered: Jan 2009
Posts: 10
Thanked: 0

Original Poster
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?
Joke-star is offline     Reply With Quote
Old 01-09-2009, 05:30 PM   #15
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
Yes.
pljvaldez is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 6 07-19-2009 03:41 AM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 14 04-12-2009 07:29 PM
dpkg: dpkg - error: PATH is not set basis1980 Linux - Software 1 12-07-2007 05:53 PM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 3 05-16-2006 05:53 PM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration