ubuntu更改映象源

2021-08-31 01:15:47 字數 2393 閱讀 1439

修改apt源:

vim /etc/apt/sources.list
然後修改為下面的內容,

金山雲:

deb  xenial main restricted

deb xenial-updates main restricted

deb xenial universe

deb xenial-updates universe

deb xenial multiverse

deb xenial-updates multiverse

deb xenial-backports main restricted universe multiverse

deb xenial-security main restricted

deb xenial-security universe

deb xenial-security multiverse

阿里雲:

deb  xenial main restricted universe multiverse

deb xenial-security main restricted universe multiverse

deb xenial-updates main restricted universe multiverse

deb xenial-proposed main restricted universe multiverse

deb xenial-backports main restricted universe multiverse

deb-src xenial main restricted universe multiverse

deb-src xenial-security main restricted universe multiverse

deb-src xenial-updates main restricted universe multiverse

deb-src xenial-proposed main restricted universe multiverse

deb-src xenial-backports main restricted universe multiverse

清華源:

deb  xenial main multiverse restricted universe

deb xenial-backports main multiverse restricted universe

deb xenial-proposed main multiverse restricted universe

deb xenial-security main multiverse restricted universe

deb xenial-updates main multiverse restricted universe

deb-src xenial main multiverse restricted universe

deb-src xenial-backports main multiverse restricted universe

deb-src xenial-proposed main multiverse restricted universe

deb-src xenial-security main multiverse restricted universe

deb-src xenial-updates main multiverse restricted universe

跟新源:

sudo apt-get update
修改pip源:

阿里雲

中國科技大學

豆瓣(douban)

清華大學

中國科學技術大學

單次修改:

pip install *** -i
永久修改:

vim ~/.pip/pip.conf
輸入:

[global]

index-url =

[install]

trusted-host = mirrors.aliyun.com

windows使用者則在c:\users\xx\pip目錄下生成pip.ini,

輸入:

[global]

index-url =

[install]

trusted-host = mirrors.aliyun.com

更改Ubuntu軟體映象源

ubuntu 的軟體源配置檔案是 etc apt sources.list將系統自帶的該檔案做個備份以防萬一,然後將該檔案內容替換為下面內容,即可使用tuna 清華大學開源軟體映象站 的軟體源映象。我的ubuntu版本是 16.04 lts 預設注釋了原始碼映象以提高 apt update 速度,如...

ubuntu 更改映象源19

檢視映象 相關資訊 lsb release c 獲取disco 網上搜尋可用映象源 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋 deb bionic main restricted universe multiverse deb src bionic main r...

Ubuntu 更改國內映象源

sudo cp etc apt sources.list etc apt sources.list.bat先去映象站找到自己ubuntu版本的映象 映象站位址 阿里清華 我的版本為ubuntu 20.04 focal focal就是當前版本的名稱,其他版本的話去上面位址選擇版本後copy,或者手動替...