Ubuntu replaced with domestic sources

Log in as root

its


# Back up the original source list file
mv /etc/apt/sources.list /etc/apt/sourses.list.backup

# Create a source list file
vim /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


# Update the software list
sudo apt-get update

# Update the software (the software is already installed software list compared with just refresh the version, if you find the software version installed is too low, you will be prompted to update)
sudo APT-GET upgrade

 

Guess you like

Origin www.cnblogs.com/maluscalc/p/11105467.html