Ubuntu學習系列 新增源

2021-09-19 06:52:38 字數 2441 閱讀 2579

1.開啟終端使用root使用者

sudo su
編輯sources.list
sudo vim /etc/apt/sources.list
新增源

在sources.list檔案末尾新增

deb  trusty main universe restricted multiverse
#中科大源

deb bionic main restricted universe multiverse

deb bionic-updates main restricted universe multiverse

deb bionic-backports main restricted universe multiverse

deb bionic-security main restricted universe multiverse

deb bionic-proposed main restricted universe multiverse

deb-src bionic main restricted universe multiverse

deb-src bionic-updates main restricted universe multiverse

deb-src bionic-backports main restricted universe multiverse

deb-src bionic-security 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

#清華源

deb bionic main restricted universe multiverse

deb bionic-updates main restricted universe multiverse

deb bionic-backports main restricted universe multiverse

deb bionic-security main restricted universe multiverse

deb bionic-proposed main restricted universe multiverse

deb-src bionic main restricted universe multiverse

deb-src bionic-updates main restricted universe multiverse

deb-src bionic-backports main restricted universe multiverse

deb-src bionic-security main restricted universe multiverse

deb-src bionic-proposed main restricted universe multiverse

更改完成之後執行以下命令:

sudo apt-get update

sudo apt upgrade

參考:

ubuntu apt-get install e: 無法定位軟體包

ubuntu18.04更換國內源

ubuntu新增本地源

mkdir packs 拷貝過來發現在packs當中為檔案都是root賬戶的,需要修改 修改所有者 sudo chown r enadmin.enadmin 修改許可權 sudo chmod ug rw,o r 二 複製檔案到packs資料夾下,目錄依各人情況變化。sudo cp var cache...

ubuntu 新增刪除ppa 源

ubuntu裡,ppa代表一種非穩定版本到發布,喜歡嘗試鮮到人一般會加入很多ppa源。關於ppa到詳細說明,可以參考 介紹兩個命令,用於新增和刪除ppa源 新增乙個ppa源 sudo add apt repository ppa user ppa name 如新增cairo dock到weekly ...

ubuntu中新增軟體源

新增過程 1 首先備份源列表 sudo cp etc apt sources.list etc apt sources.list backup 2 而後用gedit或其他編輯器開啟 sudo gedit etc apt sources.list 3 選擇合適的源,替換掉檔案中所有的內容,儲存編輯好的...