ubuntu采用apt-get安装软件出现依赖问题的解决方案

前端之家收集整理的这篇文章主要介绍了ubuntu采用apt-get安装软件出现依赖问题的解决方案前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
ubuntu采用apt-get安装软件出现依赖问题的解决方
1:ubuntu采用apt-get安装软件原则上是不会出现包依赖的问题的,出现这种问题大多是“源”的问题,需要你更新一下源
2:备份源
[html]
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
3:更新源,这里采用网易的源就行,速度很快
[html]
sudo gedit /etc/apt/sources.list
把网易的源都复制到sources.list中
[html]
deb http://mirrors.163.com/ubuntu/ precise main restricted
deb-src http://mirrors.163.com/ubuntu/ precise main restricted
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
deb http://mirrors.163.com/ubuntu/ precise-security universe
deb-src http://mirrors.163.com/ubuntu/ precise-security universe
deb http://mirrors.163.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
4:更新
[html]
sudo apt-get update
5:再次用apt-get安装软件就可以了,亲测成功
原文链接:https://www.f2er.com/ubuntu/354017.html

猜你在找的Ubuntu相关文章