1. 程式人生 > 其它 >ubuntu20.04換源

ubuntu20.04換源

ubuntu20.04換源

時間2021.12月

一、修改配置檔案

gedit /etc/apt/sources.list
編輯這個檔案,也可以在編輯前進行備份

我這邊用的是阿里源

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

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

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

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

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

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

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

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

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

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

將上面程式碼複製進去,儲存就完事了。

二、檢查是否跟新成功

sudo apt-get update

sudo apt-get upgrade

若無報錯則成功