Ubuntu apt-get変換元(アリソース)

2409 ワード

まず、既存のソースのバックアップ
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

次に、ソースリストを開きます.
sudo vim /etc/apt/sources.list
sudo gedit /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

最後に、ソースを更新
sudo apt-get update
sudo apt-get upgrade

作者:Chihwei_hsuソース:http://chihweihsu.com Github:https://github.com/HsuChihwei