Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 08-10-2010, 04:06 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Smile Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)

Hi one and all, this is basina and i'm new to linux.
I've installed ubuntu9.04 in my laptop.While i'm installing java, below error is occuring.
Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
please tell me how to rectify this problem clearly.

Thank you n keep smiling

Old 08-10-2010, 05:57 AM   #2
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Do you have another package handler like apt-get, aptitude, or synaptics running? If not, just manually delete it:
sudo rm /var/lib/dpkg/lock
Old 08-10-2010, 09:53 AM   #3
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
The only times I have seen an error like that is when I have forgotten to issue the "sudo" command before the command I want to run; mainly the "apt-get install <package>" one.

Should be
sudo apt-get install package
Old 09-05-2011, 05:18 PM   #4
LQ Newbie
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Thank you so much! You're right!

It's not that I forgot to add the "sudo" before, it's that I wasn't instructed to. Regardless, that did the trick. Now I no longer receive that could not open lock file blah blah message.


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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied gabsik Linux - Server 6 08-30-2012 09:39 PM
SVN + LDAP + Apache in Debian Can't open file /db/txn-current-lock Permission denied Ricio Linux - General 3 06-14-2009 03:46 PM
could not get lock /var/lib/dpkg/ netstat Debian 1 09-08-2008 08:52 PM
Could not get lock /var/lib/dpkg/lock thelonius Debian 5 07-31-2006 07:48 PM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:48 PM.

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