ubuntu换源出现问题

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

在ubuntu换源时候会出现丢失一些包的问题。把解决方法记录下,方便下次查阅

1,删除缓存文件:

sudo rm -fR /var/lib/apt/lists/*

2,用阿里的源

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

3,更新

sudo apt-get update

转载于:https://my.oschina.net/u/934148/blog/408871

你可能感兴趣的:(ubuntu换源出现问题)