美文网首页
Ubuntu 不能解锁 administration direc

Ubuntu 不能解锁 administration direc

作者: Yao_Fairytale | 来源:发表于2019-02-05 02:04 被阅读0次

    提示错误如下

    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? 
    

    解决方法,搜索带apt 关键字的process

    ps aux | grep apt
    
    

    以我电脑为例子,反馈为

    _apt      3675  0.3  0.2  78852  8248 ?        S    12:54   0:00 /usr/lib/apt/methods/http
    root      4129  0.0  0.0  21536   956 pts/0    S+   12:56   0:00 grep --color=auto apt
    
    

    这时杀掉正在暂用apt 文件夹的process就行

    kill processnumber
    

    例如我的就是

    kill 3675
    

    如果不行使用命令kill -9 processnumber强制中断。

    相关文章

      网友评论

          本文标题:Ubuntu 不能解锁 administration direc

          本文链接:https://www.haomeiwen.com/subject/anbmsqtx.html