ubuntu18换国内源

Wesley13
• 阅读 690

编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份):

##中科大源

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

然后执行命令:

sudo apt-get update
sudo apt-get upgrade

其他几份国内源如下:

阿里源

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

163源

deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

清华源

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
点赞
收藏
评论区
推荐文章
Wesley13 Wesley13
3年前
Ubuntu更换snap国内镜像源
1.1进入apt的源文件列表所在文件夹   cd/etc/apt 1.2 备份sources.list源文件   sudocpsources.listsources.list\_back 1.3 进入阿里云镜像站,找到ubuntu的镜像列表    https://developer.aliyun.com/
Stella981 Stella981
3年前
N1 armbian5.77 安装配置 cups打印机共享
修改源:vi/etc/apt/sources.listdebhttps://mirrors.ustc.edu.cn/debian/stretchmaincontribnonfreedebsrchttps://mirrors.ustc.edu.cn/debian/stretchmaincont
Wesley13 Wesley13
3年前
ubuntu 16.04 跑 docker
Ubuntu的软件源配置文件是 /etc/apt/sources.list换国内的,不然会疯。下面是清华大学滴:默认注释了源码镜像以提高aptupdate速度,如有需要可自行取消注释debhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenialmainrestric
Wesley13 Wesley13
3年前
Ubuntu中安装RPM包
Ubuntu的软件包格式是deb,如果要安装rpm的包,则要先用alien把rpm转换成deb。sudoaptgetinstallalienalien默认没有安装,所以首先要安装它,如果找不到这个包,请检查你的/etc/apt/sources.list,并添加debhttp://ubuntu
Stella981 Stella981
3年前
Proxmox虚拟化配置国内源
PROXMOX6.0国内源设置与升级vi/etc/apt/sources.list.d/pveenterprise.listdebhttp://download.proxmox.wiki/debian/pvebusterpvenosubscriptionvi/etc/apt/source
Stella981 Stella981
3年前
Android蓝牙连接汽车OBD设备
//设备连接public class BluetoothConnect implements Runnable {    private static final UUID CONNECT_UUID  UUID.fromString("0000110100001000800000805F9B34FB");
Wesley13 Wesley13
3年前
Ubuntu apt更换为阿里源
apt源配置在/etc/apt/sources.list,首先备份一下:cd/etc/apt/cpsources.listsources.list.bak然后修改sources.list为:debhttp://mirrors.aliyun.com/ubuntu/xenialmainrest
Wesley13 Wesley13
3年前
ubuntu 18 python3.6更换国内源和pip3源
1.更换国内源查看Ubuntu18版本和codename(一定要注意codename对应)1lsb_releasea1NoLSBmodulesareavailable.2DistributorID:Ubuntu3Description:Ubuntu18.10
Stella981 Stella981
3年前
Maven镜像源
Maven仓库镜像修改Mavensetting.xml文件在<mirrors标签内添加以下镜像。<fontcolor"red"注意:如果构建错误,请根据错误信息,调整镜像位置</font<mirror<idrepo2</id<mirrorOfcentral</m
Wesley13 Wesley13
3年前
Ubuntu16.04安装docker
1.更换镜像(1)备份原来的源sudocp/etc/apt/sources.list/etc/apt/sources.list.bakcup(2)编辑sources.listssudovim/etc/apt.sources.list添加如下内容:debhttp://mirrors.aliyun.com/ubuntu