zoukankan      html  css  js  c++  java
  • ubuntu aptget install problem

    在guosj路径下安装svn,

    apt-get install subversion

    出现错误: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?

    解决:

    1. sudo -s

    到root路径下

    This makes you the root user and obtain administrator previlages. type “whoami” and check that you will be the root user…now all apt commands work..

    2.

    killall aptitude && killall apt-get
    killall dpkg && killall frontend
    安装了一些更新,就再apt-get install。。。就没有问题了。
    若还有其他的问题,参考http://www.webmaster-forums.net/server-management/could-not-get-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-error-d
    其全文如下:

    The first step to fixing this is to kill Aptitude (or apt-get), enter this at the terminal (hint: copy and paste is easiest):

    killall aptitude && killall apt-get

    Unfortunately, for me, this returned the same error message as before. I finally worked out that dpkg and frontend have to be killed off as well, enter this at the terminal:

    killall dpkg && killall frontend

    Which worked. However, trying to start the upgrade over again didn't, it returned this error:

    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
    E: Couldn't rebuild package cache

    So, to finally fix the problem, enter this at the terminal:

    dpkg --configure -a

    For me this started the upgrade from where it had left-off. If you find the same problem, but this doesn't fix it, share it here and hopefully we can help. Smiling

    Note: this should work just as well under Ubuntu, just add sudo in front of all the commands.

    a Padded Cell our articles site!

  • 相关阅读:
    go调查内存泄漏
    c++ 使用模板按类型统计stl多维容器中元素的数量
    phxpaxos遇到反复拉取checkpoint但是反复失败的问题,给其它节点造成压力
    phxpaxos实现状态机CAS操作
    使用phxpaxos开发过程中遇到的坑
    std::condition_variable::wait_until segment
    c++ protected 访问限定
    c++多态
    IO多路复用的水平触发与边缘触发
    Redis 源码分析系列1-main函数相关调用分析
  • 原文地址:https://www.cnblogs.com/guosj/p/2043947.html
Copyright © 2011-2022 走看看