使用清華源和阿里源替代Ubuntu源

2022-09-18 04:03:26 字數 1602 閱讀 4737

sudo nano /etc/apt/sources.list
替換為如下文字

# 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋

deb bionic main restricted universe multiverse

# deb-src bionic main restricted universe multiverse

deb bionic-updates main restricted universe multiverse

# deb-src bionic-updates main restricted universe multiverse

deb bionic-backports main restricted universe multiverse

# deb-src bionic-backports main restricted universe multiverse

deb bionic-security main restricted universe multiverse

# deb-src bionic-security main restricted universe multiverse

# 預發布軟體源,不建議啟用

# deb bionic-proposed main restricted universe multiverse

# deb-src bionic-proposed main restricted universe multiverse

阿里源

deb  bionic main restricted universe multiverse

deb bionic-security main restricted universe multiverse

deb bionic-updates main restricted universe multiverse

deb bionic-proposed main restricted universe multiverse

deb bionic-backports main restricted universe multiverse

deb-src bionic main restricted universe multiverse

deb-src bionic-security main restricted universe multiverse

deb-src bionic-updates main restricted universe multiverse

deb-src bionic-proposed main restricted universe multiverse

deb-src bionic-backports main restricted universe multiverse

使用sed可以快速替換:

Linux替換清華源或者阿里源

倒騰pygame包的問題 ubuntu 19.10 安裝好pip後,又要安裝乙個pygame的包,倒騰了兩天兩夜,硬是因為網路問題 可能被強大的牆阻擋了 安裝不成功,後面在網上找了篇帖子,用清華源,誇張點說,5秒不到就搞定了pygame的安裝。pip3 install i pygame我使用的是py...

Ubuntu更換軟體源為清華源

1.先將預設的軟體源備份 sudo cp etc apt sources.list etc apt sources.list.bak 2.更換軟體源 sudo gedit etc apt sources.list 將以下內容覆蓋原來的 預設注釋了原始碼映象以提高 apt update 速度,如有需要...

ubuntu更換阿里雲或清華映象源

ubuntu 的軟體源配置檔案是 etc apt sources.list。sudo cp etc apt sources.list etc apt sources.list backupsudo gedit etc apt sources.list用vim也行,我習慣用gedit了。用下邊的源對s...