zoukankan      html  css  js  c++  java
  • Waiting for cache lock: Could not get lock /var/lib/dpkg/lockfrontend.

    问题

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

    可以了。

  • 相关阅读:
    SVN客户端的安装和使用
    SVN服务器的安装和使用
    ssh port forwarding
    mysql 索引
    ssh forwarding 配置
    pymongo collection.save 问题
    linux 实现VLAN
    linux 硬件中断调节
    M2Crypto
    python 时间四舍五入
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/15674015.html
Copyright © 2011-2022 走看看