问题

1、apt remove  net-tools

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

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

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

 

 

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) ...

可以了。

 

相关文章:

  • 2021-11-25
  • 2021-10-03
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-06-10
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案