LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
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).

Notices


Reply
  Search this Thread
Old 08-10-2010, 04:06 AM   #1
basina
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

Regards
basina
 
Old 08-10-2010, 05:57 AM   #2
Meson
Member
 
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:
Code:
sudo rm /var/lib/dpkg/lock
 
Old 08-10-2010, 09:53 AM   #3
hanzerik
Member
 
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
Code:
sudo apt-get install package
 
Old 09-05-2011, 05:18 PM   #4
hewhohasnoone
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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