LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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 10:50 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