![]() ![]() We hope that you are not getting any “Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)” error now. Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. You can remove the file creating problem like /var/lib/dpkg/updates/008 and reconfigure dpkg sudo rm /var/lib/dpkg/updates/0008 In some cases you might receive the following error after trying to run sudo dpkg -configure -a: sudo dpkg -configure -aĭpkg: error: parsing file '/var/lib/dpkg/updates/0008' near line 0: You need to reconfigure the package as well as fix any potentially broken packages: sudo dpkg -configure -a ![]() If you’re still getting errors related to apt cache lock ( /var/cache/apt/archives/lock) or the dpkg lock ( /var/lib/dpkg/lock), then remove them by running the following commands: sudo rm /var/cache/apt/archives/lock ![]() Let’s start our process by removing the apt lock file and see if that fixes this issue or not. How To Fix “Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)” Errors It does says that another process might be using the /var/lib/dpkg and you have to make sure that every thing is closed or not any process is being executed or if this doesn’t work then you have to restart your system which might solve your problem.Įven restarting your system didn’t work then let’s go through the following process to fix this error. It helps to keep your cache from growing too large.E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)Į: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? The file should have the following configuration. The apt-get autoclean option, like apt-get clean, clears the local repository of retrieved package files, but it only removes files that can no longer be downloaded and are virtually useless. On the Ubuntu distro, create a file at this location /etc/wsl.conf. That’s the process number for the package manager. ps aux egrep 'apt' Or, for Apt-get users: ps aux egrep 'apt-get' Look at the terminal, and read the numbers that appear in the output. The apt-get clean command is generally used to clear disk space as needed, generally as part of regularly scheduled maintenance. So, to start, launch a terminal and run the ps aux command with Apt at the end of it (or Apt-get if you use that). Since apt can’t own the lock now, it will give an error saying ‘ unable to acquire the dpkg frontend lock ‘ or something similar. You should only have these afterwards: $ sudo ls -lR /var/cache/apt/archivesĭrwx- 2 _apt root 4096 Nov 12 07:24 partial It might happen that another program was updating/installing a package and then you try to sudo apt install something while the other program still owns the lock. sudo dpkg -r google-chrome-stable OR sudo apt purge google-chrome-stable. var/cache/apt/archives/sasl2-bin_2.1.27+dfsg-1build3_b To completely uninstall Google Chrome from Ubuntu, use the following command. var/cache/apt/archives/postfix_3.4.5-1ubuntu1_b You might have a number of files in the directory prior to running the clean operation: /var/cache/apt/archives/db5.3-util_5.3.28+dfsg1-0.6ubuntu1_b ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |