Thursday, May 2, 2024
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 28206  / 1 Year ago, tue, march 7, 2023, 3:13:49

I am trying to install sublime using terminal but it pop out error:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sublime


And when I try to install vlc from Ubuntu Software Center then also I can't install since there is no install icon.



Upon execution of sudo apt-get update terminal pops out following output



E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) 
E: Unable to lock directory /var/lib/apt/lists/

More From » software-installation

 Answers
5

The output :



E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) 
E: Unable to lock directory /var/lib/apt/lists/


Points to the file /var/lib/apt/lists/lock which is created when you use sudo apt-get install and sudo apt-get update command. This file prevents multiple apt-get calls and is automatically removed after the command execution has completed. But sometimes it doesn't get removed, and to do that manually,



This set of code needs to be executed.



sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo apt-get update


Then try again.



Source : "Unable to locate package" while trying to install packages with APT |
Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?


[#23122] Wednesday, March 8, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;