LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-24-2018, 02:13 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397
Blog Entries: 15

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


Hi:

I'm trying to upgrade a long list of pkg's on my friends Debian 9 desktop and tho I'm running the cmd's with elevated privileges I'm getting permission denied.

I don't have anything else open or running:-

Code:
:~$ sudo apt-get update && apt-get upgrade
[sudo] password for sifu:
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://mirrors.kernel.org/debian stretch InRelease
Hit:3 http://mirrors.kernel.org/debian stretch-updates InRelease
Hit:4 http://mirrors.kernel.org/debian stretch Release
Reading package lists... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
How can I upgrade all of the pkg's?

Thanks Ztcoracat
 
Old 03-24-2018, 02:17 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / Linux Mint / Debian / Void Linux
Posts: 8,298

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
You did this
Code:
sudo apt-get update && apt-get upgrade
when it should be this
Code:
sudo apt-get update && sudo apt-get upgrade
Ztcoracat
LQ Guru
common user error? detention after school, yes, no?
or common Slack user error, maybe.

Last edited by BW-userx; 03-24-2018 at 02:21 PM.
 
1 members found this post helpful.
Old 03-24-2018, 02:30 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Quote:
Originally Posted by BW-userx View Post
You did this
Code:
sudo apt-get update && apt-get upgrade
when it should be this
Code:
sudo apt-get update && sudo apt-get upgrade
Ztcoracat
LQ Guru
common user error? detention after school, yes, no?
or common Slack user error, maybe.
Amazing how one word missing can make a mess of things.
Running:
Code:
sudo apt-get update && sudo apt-get upgrade
Has been successful! All 134 pkg's at the moment are being upgraded.

Thanks BW-userx-
 
Old 03-24-2018, 02:34 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Haven't had the chance to read the Debian Administrative Handbook--

I'll have to make time.
BTW I'm running Peppermint 8 too. Love it! So much easier to maintain and keep up to date.

Have a good weekend!

Last edited by Ztcoracat; 03-24-2018 at 02:36 PM.
 
Old 03-24-2018, 02:48 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / Linux Mint / Debian / Void Linux
Posts: 8,298

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
cheers! don't forget to bump my yes helpful rep points up a bit. thanks! enjoy

Peppermint 8 is actually not as bad as I thought I'd be being a Ubunututu derivative.
 
1 members found this post helpful.
Old 02-23-2019, 10:02 AM   #6
masud123
LQ Newbie
 
Registered: Feb 2019
Posts: 1

Rep: Reputation: Disabled
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission d

dxrana240@kali:~$ sudo apt-get update && apt-get upgrade

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
 
  


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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) Grimm666 Linux - Newbie 3 07-16-2015 02:16 AM
open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied gabsik Linux - Server 6 08-30-2012 09:39 PM
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) Mind Hunter Linux - Newbie 1 02-17-2012 04:19 PM
Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) basina Linux - Laptop and Netbook 3 09-05-2011 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration