Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.


問題

1、apt remove  net-tools

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.

 

 

2、結束這個占用的進程

root@ubuntu01:~# kill -9 5937

 

3、測試

root@ubuntu01:~# apt remove net-tools

 

 

4、結束這個占用進程

root@ubuntu01:~# kill -9 7462

 

5、測試

root@ubuntu01:~# apt remove net-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  net-tools
0 upgraded, 0 newly installed, 1 to remove and 176 not upgraded.
After this operation, 864 kB disk space will be freed.
Do you want to continue? [Y/n] y   
(Reading database ... 150487 files and directories currently installed.)
Removing net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...

可以了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM