赞
踩
sudo cp /etc/apt/sources.list /etc/apt/sources_cope.list
sudo gedit /etc/apt/sources.list
将文档中的所有内容删除并替换成阿里镜像源(注意不同的版本替换的内容不一样),如下:
- deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
- deb 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 main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
替换完成后保存退出。
用于访问上面替换的源列表中的每个网址,读取软件列表保存在本地电脑
sudo apt-get update
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。