Ubuntu20.04更新軟體源

那就整一個唄發表於2020-11-29

更新軟體源

輸入命令:sudo vi /etc/apt/source.list

覆蓋內容

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal main restricted

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted

deb http://mirrors.aliyun.com/ubuntu/ focal universe

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal universe

deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates universe

deb http://mirrors.aliyun.com/ubuntu/ focal multiverse

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

# deb-src http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted

# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted

deb http://mirrors.aliyun.com/ubuntu/ focal-security universe

# deb-src http://security.ubuntu.com/ubuntu focal-security universe

deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse

# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse

執行命令:

sudo apt-get update --fix-missing

sudo apt-get dist-upgrade --fix-missing

相關文章