Can anyone answer question to log number 272011
Question relates to the following error message that i get when trying to install updates
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: _cache->open() failed, please report.
Any ideas on how to fix this problem to a novice user?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu synaptic Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- marcobra (Marco Braida)
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please open a Terminal from the menu Applications-
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
give your user password when requested, you don't see nothing when you type it, then press enter.
If this solves you problem, please mark as Solved. If not, please clarify your question.
Hope this helps
Revision history for this message
|
#2 |
The below command is what I get after following only 3 of the recommended step. I think that this is the main problem. Don't know how to fix it. Once this is fixed, I think that that should be the end of it.
Any further suggestions?
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
andrew@
Revision history for this message
|
#3 |
Can you tell me the exact command you have typed... ?
Thank you
Revision history for this message
|
#4 |
I copied what you suggested into terminal then it asked for password then after i entered it the first line of below came up so i pasted all of what you said again and the rest is all below.
Thanks for you time hope you can help me sort it.
dpkg: unable to open/create status database lockfile: No such file or directory
andrew@
dpkg: unable to open/create status database lockfile: No such file or directory
andrew@
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
andrew@
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
andrew@
andrew@
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Get:1 http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Get:2 http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Hit http://
Hit http://
Get:3 http://
Err http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Fetched 379B in 6s (59B/s)
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download, they have been ignored, or old ones used instead.
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
andrew@
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
andrew@
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
andrew@
andrew@
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Revision history for this message
|
#5 |
marcobra wrote:
> Your question #45720 on synaptic in ubuntu changed:
> https:/
>
> Status: Open => Needs information
>
> marcobra requested for more information:
> Can you tell me the exact command you have typed... ?
>
> Thank you
>
I typed the first three commands that were from you. When I hit return
I got the following,
> E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
>
That is also what comes up when I attempt to install updates.
Hope this helps
> E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Revision history for this message
|
#6 |
try this,
pgrep dpkg
you will get a number for example 3222
then type
sudo kill -9 3222
Revision history for this message
|
#7 |
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to
correct the problem.
E: _cache->open() failed, please report.
andrew@
[sudo] password for andrew:
Setting up sudo (1.6.9p10-
Setting up libfreetype6 (2.3.5-
Setting up libxml2 (2.6.31.
Setting up language-pack-en (1:8.04+20080805) ...
Setting up apturl (0.2.6ubuntu1~
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.24-19.36 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.24-19.36 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
Setting up app-install-
Caching application data...
Generating mime/codec maps...
Setting up eject (2.1.5-6ubuntu1) ...
Setting up language-
Setting up libfreetype6-dev (2.3.5-
Setting up libglib2.0-0 (2.16.4-0ubuntu3) ...
dpkg: error processing brasero (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Setting up libglib2.0-dev (2.16.4-0ubuntu3) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
brasero
andrew@
THe top message is what I got after the latest attempt to install updates.
Ran that in terminal and got the above.
Any suggestions?
Revision history for this message
|
#8 |
Try...
From a terminal type:
sudo apt-get --purge remove brasero
sudo dpkg --configure -a
and if you get no errors...
sudo apt-get -f install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install brasero
Hope this helps
Revision history for this message
|
#9 |
Thanks marcobra, that solved my question.
Revision history for this message
|
#10 |
Now for the next problem. Thanks to those who helped with first prob. This message appears when trying to update package info.
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://
W: Failed to fetch http://
W: Some index files failed to download, they have been ignored, or old ones used instead.
Any suggestions? Thanks.