Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-24-2018, 02:13 PM
|
#1
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
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
|
|
|
03-24-2018, 02:17 PM
|
#2
|
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
|
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.
|
03-24-2018, 02:30 PM
|
#3
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by BW-userx
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-
|
|
|
03-24-2018, 02:34 PM
|
#4
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
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.
|
|
|
03-24-2018, 02:48 PM
|
#5
|
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
|
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.
|
02-23-2019, 10:02 AM
|
#6
|
LQ Newbie
Registered: Feb 2019
Posts: 1
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|