$> sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock Upon executing that command, my screen goes blank, the keyboard becomes unresponsive, and my only option is to press the power button and reboot... (I would have thought this was a malicious suggestion, but many others seemed to … Apply following commands in a terminal to solve this problem, Fix: Could not open lock file /var/lib/dpkg/lock If the issue is with your Computer or a Laptop you should try using Reimage Plus which can scan the repositories and replace corrupt and missing files.
As you can see in the above output, the PID of the process that holds the lock file is 1548.. Just kill it to release the lock using command: $ sudo kill -9 1548 get update" but i have an problem : Could not lock / var / lib / apt / lists / pc:/home/hb-17# apt-get update Lecture des listes de paquets... Fait E: Impossible d'obtenir le verrou /var/lib/apt/ Si un gestionnaire de paquets vous dit quelque chose comme ça : E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 프로그래밍/Linux 리눅스 에러 Could not get lock /var/lib/dpkg/lock-frontend by 창작의 즐거움 2019. トップ > VirtualBox > Ubuntu 16.04 LTSにて 『ロック /var/lib/apt/lists/lock が取得できませんでした~』 ... $ sudo rm /var/lib/dpkg/lock $ sudo apt-get update. Versuchen Sie, sudo rm / var / lib / dpkg / lock & sudo rm / var / lib / apt / lists / lock auszuführen, das die speziellen Dateien freigibt, die apt bei der Ausführung berücksichtigt. Seien Sie vorsichtig mit den Namen dieser Dateien, da rm als root destruktiv ausgeführt wird. sudo rm /var/lib/apt/lists/* -vf . Enfin en tous cas quelque chose qui dit dpkg --configure -a dans le texte. Fix E: Could not get lock /var/lib/dpkg/lock – Unable to lock the directory. Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.. Visit Stack Exchange
Latest Posts Install Foliate eBook Reader 2.2 in Ubuntu 20.04 How To Install Linux 5.7 Kernel On Ubuntu Linux The Best WordPress Caching Plugins For Bloggers We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More VirtualBox上のUbuntuで以下のようになって、apt-get などの操作ができなくなってしまった。 実際に使用している別のプロセスは存在していないため、なにかしら不正な状態になっていることが考えられる … This website uses cookies to improve your experience. sudo rm /var/lib/dpkg/lock Conclusion We have provided two methods to deal with a rather common problem faced by many users on Ubuntu and similar distros when they run apt or apt-get . just tried this command: sudo rm /var/lib/dpkg/lock And now have something new going on - as pictured it just hung there. sudo rm /var/lib/dpkg/lock Conclusion We have provided two methods to deal with a rather common problem faced by many users on Ubuntu and similar distros when they run apt or apt-get . GitHub Gist: instantly share code, notes, and snippets. Dpkg was interrupted. Quite a few times, while installing/updating a package from the command line (using apt-get or apt) in Ubuntu, we get this error: E: Unable to lock the administration directory (/var/lib/dpkg/). E: _cache->open(!) E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? 4. First execute the command below to remove the lock file in the /var/lib/dpkg/ directory: $ sudo rm /var/lib/dpkg/lock Afterwards force package(s) to reconfigure like so: $ sudo dpkg --configure -a Alternatively, delete the lock files in the /var/lib/apt/lists/ and cache directory as below: In terminal ic an see the problem as: By Sourabh / February 11, 2019 Category: How To, Ubuntu. failed, please report. sudo lsof /var/lib/dpkg/lock ' Modifier. Faites : sudo dpkg --configure -a . 対策 $ sudo rm /var/lib/apt/lists/lock $ sudo rm /var/lib/dpkg/lock $ sudo rm /var/lib/dpkg/lock-frontend これでダメなら $ sudo apt autoremove 3. / Fix E: Could not get lock /var/lib/dpkg/lock – Unable to lock the directory. In this article we are going to learn How to fix "dpkg: error: dpkg frontend lock is locked by another process".