いくつかの一般的なubuntuソース
6469 ワード
一.まず、デフォルトのソースを変更する前に、次のファイルをバックアップします.
コマンド:sudo cp/etc/apt/sources.list/etc/apt/sources.list.old
二.そしてsourcesの編集を開始します.リストファイル
コマンド:sudo vim sources.list
三.中のすべての内容をクリアし、下のソースを貼り付けてコピーすればいいです.
#アリ雲源
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial universe deb http://mirrors.aliyun.com/ubuntu/xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/xenial multiverse deb http://mirrors.aliyun.com/ubuntu/xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse #Added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/xenial-security main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/xenial-security multiverse
#中科大源
deb http://mirrors.ustc.edu.cn/ubuntu/precise-updates main restricteddeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-updates main restricteddeb http://mirrors.ustc.edu.cn/ubuntu/precise universedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise universedeb http://mirrors.ustc.edu.cn/ubuntu/precise-updates universedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-updates universedeb http://mirrors.ustc.edu.cn/ubuntu/precise multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise multiversedeb http://mirrors.ustc.edu.cn/ubuntu/precise-updates multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-updates multiversedeb http://mirrors.ustc.edu.cn/ubuntu/precise-backports main restricted universe multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-backports main restricted universe multiverse
#網易源
deb http://mirrors.163.com/ubuntu/precise-updates main restricteddeb-src http://mirrors.163.com/ubuntu/precise-updates main restricteddeb http://mirrors.163.com/ubuntu/precise universedeb-src http://mirrors.163.com/ubuntu/precise universedeb http://mirrors.163.com/ubuntu/precise-updates universedeb-src http://mirrors.163.com/ubuntu/precise-updates universedeb http://mirrors.163.com/ubuntu/precise multiversedeb-src http://mirrors.163.com/ubuntu/precise multiversedeb http://mirrors.163.com/ubuntu/precise-updates multiversedeb-src http://mirrors.163.com/ubuntu/precise-updates multiversedeb http://mirrors.163.com/ubuntu/precise-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/precise-backports main restricted universe multiverse
#捜狐源
deb http://mirrors.sohu.com/ubuntu/precise-updates main restricteddeb-src http://mirrors.sohu.com/ubuntu/precise-updates main restricteddeb http://mirrors.sohu.com/ubuntu/precise universedeb-src http://mirrors.sohu.com/ubuntu/precise universedeb http://mirrors.sohu.com/ubuntu/precise-updates universedeb-src http://mirrors.sohu.com/ubuntu/precise-updates universedeb http://mirrors.sohu.com/ubuntu/precise multiversedeb-src http://mirrors.sohu.com/ubuntu/precise multiversedeb http://mirrors.sohu.com/ubuntu/precise-updates multiversedeb-src http://mirrors.sohu.com/ubuntu/precise-updates multiversedeb http://mirrors.sohu.com/ubuntu/precise-backports main restricted universe multiversedeb-src http://mirrors.sohu.com/ubuntu/precise-backports main restricted universe multiverse
#清華大学
四.保存終了後に更新するには、このステップを実行する必要があります.
コマンド:sudo apt-get update
sudo apt-get upgrade
コマンド:sudo cp/etc/apt/sources.list/etc/apt/sources.list.old
二.そしてsourcesの編集を開始します.リストファイル
コマンド:sudo vim sources.list
三.中のすべての内容をクリアし、下のソースを貼り付けてコピーすればいいです.
#アリ雲源
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial universe deb http://mirrors.aliyun.com/ubuntu/xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/xenial multiverse deb http://mirrors.aliyun.com/ubuntu/xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse #Added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/xenial-security main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/xenial-security multiverse
#中科大源
deb http://mirrors.ustc.edu.cn/ubuntu/precise-updates main restricteddeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-updates main restricteddeb http://mirrors.ustc.edu.cn/ubuntu/precise universedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise universedeb http://mirrors.ustc.edu.cn/ubuntu/precise-updates universedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-updates universedeb http://mirrors.ustc.edu.cn/ubuntu/precise multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise multiversedeb http://mirrors.ustc.edu.cn/ubuntu/precise-updates multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-updates multiversedeb http://mirrors.ustc.edu.cn/ubuntu/precise-backports main restricted universe multiversedeb-src http://mirrors.ustc.edu.cn/ubuntu/precise-backports main restricted universe multiverse
#網易源
deb http://mirrors.163.com/ubuntu/precise-updates main restricteddeb-src http://mirrors.163.com/ubuntu/precise-updates main restricteddeb http://mirrors.163.com/ubuntu/precise universedeb-src http://mirrors.163.com/ubuntu/precise universedeb http://mirrors.163.com/ubuntu/precise-updates universedeb-src http://mirrors.163.com/ubuntu/precise-updates universedeb http://mirrors.163.com/ubuntu/precise multiversedeb-src http://mirrors.163.com/ubuntu/precise multiversedeb http://mirrors.163.com/ubuntu/precise-updates multiversedeb-src http://mirrors.163.com/ubuntu/precise-updates multiversedeb http://mirrors.163.com/ubuntu/precise-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/precise-backports main restricted universe multiverse
#捜狐源
deb http://mirrors.sohu.com/ubuntu/precise-updates main restricteddeb-src http://mirrors.sohu.com/ubuntu/precise-updates main restricteddeb http://mirrors.sohu.com/ubuntu/precise universedeb-src http://mirrors.sohu.com/ubuntu/precise universedeb http://mirrors.sohu.com/ubuntu/precise-updates universedeb-src http://mirrors.sohu.com/ubuntu/precise-updates universedeb http://mirrors.sohu.com/ubuntu/precise multiversedeb-src http://mirrors.sohu.com/ubuntu/precise multiversedeb http://mirrors.sohu.com/ubuntu/precise-updates multiversedeb-src http://mirrors.sohu.com/ubuntu/precise-updates multiversedeb http://mirrors.sohu.com/ubuntu/precise-backports main restricted universe multiversedeb-src http://mirrors.sohu.com/ubuntu/precise-backports main restricted universe multiverse
#清華大学
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
四.保存終了後に更新するには、このステップを実行する必要があります.
コマンド:sudo apt-get update
sudo apt-get upgrade