![]() ![]() They can remove the lock file with the following command: sudo rm /var/lib/apt/lists/lock ![]() Solution 4Īt the end of all this if the problem persists, you can choose to apply the definitive solution which is to delete the file that is blocking apt. So it is recommended that you change the server from where you are obtaining the Ubuntu packages. Solution 3įinally, if you still continue to receive this error, do not despair, the recommendation is that you let your team perform its updates, but if this takes too long, possibly the mirror you have configured is saturated or down. They save the file with Ctrl + O and exit they must press Ctrl + X. To disable automatic security update, change them to: APT::Periodic::Update-Package-Lists "1" ĪPT::Periodic::Download-Upgradeable-Packages "0" The original content is as follows: APT::Periodic::Update-Package-Lists "1" ĪPT::Periodic::Download-Upgradeable-Packages "1" In your terminal, open the /etc/apt//20auto-upgrades file: sudo nano /etc/apt//20auto-upgrades ![]() Similarly you can achieve the same results from the command line. Then enter your user password for this change to take effect. In the part of checking updates we change it to "weekly or every two weeks" here is your choice. To solve this problem just go to the "Software and Updates" application which we will search from our applications menu.Īnd in the window that opened, we must go to the Updates tab, among the options that show us by default, security updates are downloaded and installed automatically to change this we must change to "Show immediately". Here it is recommended to let Ubuntu make the corresponding updates. This is usually quite rare to happen, but it has happened to all of us, because when we turn on the computer and want to make some movement with apt, the terminal throws us this error. So if they run the sudo apt upgrade command at the same time, the above error is displayed. If security updates are available, it will install them in the background. ![]() When Ubuntu finishes booting, it automatically runs the apt-get update command. The error message already gives you a clue to the cause of the problem: another process / var / lib / dpkg / is being used.Įsto It is because Ubuntu, by default, enables background updates for security update. No se pudo obtener el bloqueo var lib lib bloqueo dpkgīut what if you don't have any of this running? With this, we will stop receiving the error of: E: No se pudo obtener el bloqueo /var/lib/dpkg/lock - abierto (11: El recurso no está disponible temporalmente)Į: No se puede bloquear el directorio de administración (/var/lib/dpkg), ¿lo está usando otro proceso? The first solution is to close these programs as long as they are not doing any work as an update or application installation, because if so it is highly recommended to wait. As a mentioned above this error is usually displayed when you have apt running in another processTherefore, if you want to do an update or installation from the terminal and you have your Ubuntu software center, Synaptic or a package manager open in the background, these are the main cause of this error. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |