美文网首页
ubuntu16.04 apt-get 异常

ubuntu16.04 apt-get 异常

作者: basetree | 来源:发表于2019-08-02 10:56 被阅读0次
    1. apt-get update:
    E: Problem executing scripts APT::Update::Post-Invoke-Success 
    'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; 
    then appstreamcli refresh > /dev/null; fi'
    E: Sub-process returned an error code
    

    解决办法:

    $ sudo pkill -KILL appstreamcli
    
    $ wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
    
    $ sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
    
    
    1. apt-get install:
    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?
    

    解决办法:

    $ sudo rm /var/cache/apt/archives/lock
    $ sudo rm /var/lib/dpkg/lock
    

    相关文章

      网友评论

          本文标题:ubuntu16.04 apt-get 异常

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