LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2008, 07:41 AM   #1
born4books
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Cache Open Failed


Morning Everyone! I just wiped everything clean and installed Ubuntu 8.04. So far everything seems to work great. My only problem thus far is this... I tried going to add/remove software to add a couple programs. When they went to install I received an error message telling me

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

So I opened the terminal and tried to run the command and it tells me I have to be an administrator. I'm the only user, aren't I the administrator?? I'm not on a network or anything. Just me. It also did this when I tried to open music files. It loads the Totem player and says I need codecs. When I try to install them, I receive the same message.

Someone please help dumb and confused here!
 
Old 09-24-2008, 02:13 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
It is telling you that you need administrator privileges and, under Ubuntu, you can do this by using 'sudo'. So alter the line that you typed to

Code:
 sudo dpkg --configure -a
and it should ask you for your password (your password, not a root password under Ubuntu) and you should be away.
 
Old 11-28-2008, 08:57 AM   #3
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 16
I hope you don't mind if I join in because i have a very similar problem.
I did as you say
Code:
sudo dpkg -- configure -a
and use my password.
I then get a few line on the screen for a fraction of a second and then
Code:
┤ Configuring virtualbox-2.0 ├───────────────────────┐
 │                                                                           │ 
 │ Compilation of the kernel module FAILED!                                  │ 
 │                                                                           │ 
 │ VirtualBox will not start until this problem is fixed. Please consult     │ 
 │ /var/log/vbox-install.log to find out why the kernel module does not      │ 
 │ compile. Most probably the kernel sources were not found. Install them    │ 
 │ (the package name is probably linux-headers-<version> whereby <version>   │ 
 │ can be determined by 'uname -r') and execute                              │ 
 │                                                                           │ 
 │   /etc/init.d/vboxdrv setup                                               │ 
 │                                                                           │ 
 │ as root.                                                                  │ 
 │                                                                           │ 
 │                                  <Ok>
If I run this nothing happens.

I suspect I have a failed installation lurking in the system, how do I clear this. Thanks for any help │
 
Old 11-28-2008, 09:16 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Did you install the kernel headers?
 
Old 11-28-2008, 09:32 AM   #5
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 16
I assume installed when I installed Ubuntu 8.10
How do I check?
 
Old 11-28-2008, 10:38 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
dpkg -l linux-headers-`uname -r`
 
Old 11-30-2008, 04:51 AM   #7
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 16
Sorry for slow turn around, hope you are still with me.

Did as you suggest
Code:
dpkg -l linux-headers-'uname -r'
This gives me
PHP Code:
No packages found matching linux-headers-'uname -r' 
So tried
Code:
uname -r
this gives me 2.6.24-19-386

So next
Code:
sudo apt-get install linux-headers-2.6.24-19-386
I confirm password

This gives a new error message

PHP Code:
Edpkg was interruptedyou must run 'dpkg --configure -a' to correct the problem 
It then appears to try to set up virtualbox, ending with the Error message with which I started my question. See Error message in message #3 of this thread.
Please give me a way out!!
 
Old 11-30-2008, 08:19 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
ummm.. can you apt-get remove virtualbox ?
 
Old 11-30-2008, 09:06 AM   #9
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 16
This is what I get

cliff@HYACINTH:~$ sudo apt-get remove virtualbox
[sudo] password for cliff:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
 
  


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
mmap cache can't open foo.php - Too many open files guarriman Linux - Software 3 12-16-2013 01:03 PM
ssh -L '>channel 3: open failed: connect failed:' Luke771 Linux - Networking 14 01-24-2012 03:14 AM
openSUSE 10: Samba failed to create the cache directory in /var/cache mianmajidali Linux - Server 0 05-09-2008 02:00 AM
krb5_cc_get_principal failed (No credentials cache found) da_kidd_er Linux - Networking 0 12-19-2004 07:00 PM

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

All times are GMT -5. The time now is 07:05 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