LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo apt-get update not working (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-apt-get-update-not-working-4175647978/)

wlbowshot 02-09-2019 04:43 PM

sudo apt-get update not working
 
when i try to update system ;
sudo apt-get update
i get :

Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
what am i doing wrong

KDE Plasma version 5.8.9
Kde framework version 5.36.0
Qt version 5.6.1
Kernel version 4.10.0-38-generic
OS type 64-bit
Hardware;
Processors 4 x Intel Core I3-4030 CPU @ 1.90 Ghz
Memory 3.8 GiB of RAM

thank you the file was missing this fixed it ;

sudo touch /var/lib/apt/lists/lock

Brains 02-09-2019 04:56 PM

If you have a graphical package manager open, such as Synaptic or KDE discover, it needs to be closed for apt to work, only one package management utility at a time can be used.
It is also possible the lock file in /var/lib/apt/lists is missing, it's just a blank file. You can make a new one with command: sudo touch /var/lib/apt/lists/lock

Corvette 02-09-2019 05:00 PM

Also, if you do not have Synaptic or a similar tool open, try using 'ps aux' to see if any other programing may be using the resource.

rtmistler 02-10-2019 02:40 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 02:25 AM.