Ubuntu16.04 使用apt-get安装软件时无法自动安装所需要的依赖
2018-01-18 17:56
936 查看
出现这样的问题,在百度上搜索了解决办法,大都是在Ubuntu里进行设置,本人进行了尝试,但是没有成功,倒不是说f方法不好使,可能是因为我没有设置好,所以一直没有解决,我还太真的以为重装系统就没问题了,不管我安装Ubuntu16还是Ubuntu14这个问题都一直出现,说真的我有点崩溃,但是生活还有继续不是吗?由于出现问题的时候我太着急了,没有截图,所以看着有点不大舒畅,还望理解。
问题的原因出现在Ubuntu的 源 上,以下是解决办法
首先使用 sudo gedit /etc/apt/sources.list
然后将以下内容粘贴到文本的最下方
deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
然后 source /etc/apt/sources.list
最后 sudo apt-get update
现在,我们就可以去安装我们想要安装的软件,而无需担心依赖的问题了。
问题的原因出现在Ubuntu的 源 上,以下是解决办法
首先使用 sudo gedit /etc/apt/sources.list
然后将以下内容粘贴到文本的最下方
deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
然后 source /etc/apt/sources.list
最后 sudo apt-get update
现在,我们就可以去安装我们想要安装的软件,而无需担心依赖的问题了。
相关文章推荐
- 在ubuntu中使用apt-get install 安装软件时出现无法获得锁
- Ubuntu 16.04 apt-get无法自动解决依赖的解决方法
- ubuntu 12.04 apt-get/wget/gem 使用代理安装软件
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- 【转】ubuntu 11.04使用apt-get安装软件时一直提示E:unable to locate package
- ubuntu自动安装软件apt-get命令
- ubuntu apt-get 安装软件包时 出现依赖的包版本过高
- 重装Ubuntu 14.04后使用apt-get安装build-essential(即sudo apt-get install build-essential)时出现包依赖项问题的解决方法
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- Ubuntu使用dpkg安装软件依赖问题解决 ubuntu-tweak ubuntu 16.04 LTS 系统清理
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- Ubuntu中apt-get 安装失败,导致无法安装其他软件的解决办法。
- Mac OS上使用brew安装软件,类似ubuntu下的apt-get
- ubuntu自动安装软件apt-get命令
- ubuntu自动安装软件apt-get命令
- ubuntu 12.04 apt-get/wget/gem 使用代理安装软件
- ubuntu 12.10无法用apt-get安装软件 Err http://us.archive.ubuntu.com quantal-updates/main Sources 404 Not
- Ubuntu下apt-get安装软件时缺少依赖包解决方法
- ubuntu自动安装软件apt-get命令