Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 389070  / 3 Years ago, thu, august 19, 2021, 12:59:08

Whenever trying to install any software and update manger,



I get an error stating



Package operation failed
The installation or removal of a software package failed


When I run sudo apt-get update I got this result:



conan51xd@conan51xd-Lenovo-B470:~$ sudo apt-get -f install
[sudo] password for conan51xd:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
conan51xd@conan51xd-Lenovo-B470:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
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?

More From » dpkg

 Answers
2

Run this command:

sudo mv /var/lib/apt/lists{,july12}



sudo apt-get update

Then sudo apt-get upgrade


[#36896] Thursday, August 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inglehare

Total Points: 330
Total Questions: 111
Total Answers: 95

Location: Sint Maarten
Member since Tue, Mar 29, 2022
2 Years ago
;