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
然后把里面的列表替换成下面的列表,保存退出即可,修改完之后最好刷新一下系统的源:
清华大学镜像(16.04LTS):其他版本见 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
参考: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
有一些软件包无法被安装。如果您用的是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
相关文章推荐
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- windows7下安装ubuntu及相关问题的解决方案
- 在Ubuntu17.10的系统升级中遇到内核升级问题,导致各种软件不能安装和卸载的解决方案(尝试结果,不喜勿骂)
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- ubuntu下安装软件问题解决
- ubuntu解决安装deb提示软件包质量欠佳问题
- Ubuntu Java相关软件安装 mysql jdk tomcat
- ubuntu解决安装deb提示软件包质量欠佳问题
- VMware虚拟机安装Ubuntu不能上网的问题解决方案
- 经典重现 Ubuntu 10.04安装IEs4linux及相关问题的解决
- Ubuntu 8.10安装后中文化及相关常用软件安装手记
- Ubuntu 11.04 安装 ns2-allinone-2.34【完整版】(附各种问题解决方案)
- Ubuntu上安装vim不能安装的问题,“下列的软件包有不能满足的依赖关系”
- Ubuntu软件安装与删除相关命令
- Ubuntu上使用apt-get安装软件的速度问题
- Ubuntu 8.10解决安装部分软件过程中的出现方格的问题
- maemo环境安装问题和解决方案(ubuntu 10.04)