ubuntu 把軟體源修改為國內源

2021-09-26 09:27:21 字數 1590 閱讀 7182

備份原始檔案

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

修改檔案並新增國內源

vi /etc/apt/sources.list

注釋元檔案內的源並新增如下位址

#阿里雲

deb trusty main restricted universe multiverse

deb trusty-security main restricted universe multiverse

deb trusty-updates main restricted universe multiverse

deb trusty-proposed main restricted universe multiverse

deb trusty-backports main restricted universe multiverse

deb-src trusty main restricted universe multiverse

deb-src trusty-security main restricted universe multiverse

deb-src trusty-updates main restricted universe multiverse

deb-src trusty-proposed main restricted universe multiverse

deb-src trusty-backports main restricted universe multiverse

#網易163

deb trusty main restricted universe multiverse

deb trusty-security main restricted universe multiverse

deb trusty-updates main restricted universe multiverse

deb trusty-proposed main restricted universe multiverse

deb trusty-backports main restricted universe multiverse

deb-src trusty main restricted universe multiverse

deb-src trusty-security main restricted universe multiverse

deb-src trusty-updates main restricted universe multiverse

deb-src trusty-proposed main restricted universe multiverse

deb-src trusty-backports main restricted universe multiverse

更新源  sudo apt-get update

更新軟體 sudo apt-get dist-upgrade

常見的修復安裝命令  sudo apt-get -f install

ubuntu 把軟體源修改為國內源和更新

1.備份原始檔案 sudo cp etc apt sources.list etc apt sources.list.backup2.修改檔案並新增國內源 vi etc apt sources.list3.注釋原檔案內的源並新增如下位址 ubuntu 官方源 deb gutsy main restr...

Ubuntu把軟體源修改為國內源和更新

1.備份原始檔案 2.sudo su獲得超級管理員許可權 3.開啟配置檔案 vi etc apt sources.list 4.在原始檔開始新增如下位址並儲存退出 新增阿里源 deb bionic security main restricted universe multiverse deb bi...

openwrt如何修改為國內軟體源

1.securecrt或putty 連線openwrt路由器並執行opkg update更新列表報錯 2.luci介面執行同樣如此 3.因此我們將預設源修改為第三方源,securecrt或putty登入路由器 執行 cp etc opkg distfeeds.conf etc opkg distfe...