👤

重置密码

发送中...
返回登录

统信UOS更换阿里云源

Linux 58 浏览 2 分钟阅读

备份UOS原生源

root@uos:~#cp -r /etc/apt/sources.list /etc/apt/sources.list.bak

编辑 sources.list

root@uos:~#vi /etc/apt/sources.list 

替换为

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

添加公钥

root@uos:~#apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 3B4FE6ACC0B21F32

更新系统

root@uos:~#apt update

更新公钥

root@uos:~#apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com