简介:前些天搞了个服务器,今天抽时间配置一下,发现使用apt-get安装东西的时候总是会失败,提示需要apt-get update,但是执行后又会报错“W: Some index files failed to download. They have been ignored, or old ones used instead.”,想了想应该是源的问题,于是查了一下Ubuntu更改下载源的方法,记录一下。
+关注继续查看
前些天搞了个服务器,今天抽时间配置一下,发现使用apt-get安装东西的时候总是会失败,提示需要apt-get update,但是执行后又会报错“W: Some index files failed to download. They have been ignored, or old ones used instead.”,想了想应该是源的问题,于是查了一下Ubuntu更改下载源的方法,记录一下。
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse