linux执行apt-get更新,或者安装软件包时提示,W: Ignoring Provides line with DepCompareOp for package *****
出现的问题:一个最简单的办法:直接换源:可以换我推荐的源,阿里云的这个源步骤:1.sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份2.把sources.list的内容全部删掉,把以下的内容复制进去sudo vim /etc/apt/sources.list #修改//阿里云源deb http://mirrors.aliyun.c
·
出现的问题:
一个最简单的办法:
直接换源:可以换我推荐的源,阿里云的这个源
步骤:
1.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
2.把sources.list的内容全部删掉,把以下的内容复制进去
sudo vim /etc/apt/sources.list #修改
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
sudo apt-get update #更新列表
应该没什么问题了,如果问题再次出现,换其他的源,如清华,网易等等的源。
更多推荐
已为社区贡献2条内容
所有评论(0)