配制阿里巴巴的源步骤
- 使用阿里巴巴的开源镜像:https://opsx.alibaba.com/mirror
- 然后选择
ubuntu
的帮助
选项,复制ubuntu18.04镜像源 - 设置root账户密码:
sudo passwd root
# 输入账户密码,然后输入新的root密码
# 进入su界面
su -
# 输入root补码
- 进入root界面之后,将alibaba镜像添加到源里面:
nano /etc/apt/sources.list
# 把原来的全都注释掉,再复制alibaba的源粘贴到源里面
# ubuntu 18.04(bionic)配置如下
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
- 重启电脑