您的位置:首页 > 其它

Ubuntu 软件安装问题相关解决方案

2017-03-04 13:55 471 查看
1.E:无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
有一些软件包无法被安装。如果您用的是unstable发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
解决方法:
sudoapt-get
clean
cd/var/lib/apt
sudo mv lists lists.old
sudo
mkdir -plists/partial
sudoapt-get
clean
sudovi
/etc/apt/sources.list 或sudogedit
/etc/apt/sources.list
然后把里面的列表替换成下面的列表,保存退出即可,修改完之后最好刷新一下系统的源:
sudo apt-get update


清华大学镜像(16.04LTS):其他版本见 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
[/code]

参考:http://blog.sina.com.cn/s/blog_b4a60cdb0101cdhm.html

2.
E:无法获得锁/var/lib/dpkg/lock-
open (11: 资源暂时不可用)
无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?

解决办法如下:

强制解锁,命令

sudorm /var/cache/apt/archives/lock

sudo rm /var/lib/dpkg/lock
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: