ubuntu下用命令將源設定為中科大源

2021-06-02 03:28:41 字數 1534 閱讀 5733

第一步:備份原來的源(可有可無,一般不需要備份)

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

第二步:編輯源列表

sudo gedit /etc/apt/sources.list

將科大的源列表加入檔案中。

第三步:更新列表:

sudo apt-get update

附:科大源

deb  natty main multiverse restricted universe

deb natty-backports main multiverse restricted universe

deb natty-proposed main multiverse restricted universe

deb natty-security main multiverse restricted universe

deb natty-updates main multiverse restricted universe

deb-src natty main multiverse restricted universe

deb-src natty-backports main multiverse restricted universe

deb-src natty-proposed main multiverse restricted universe

deb-src natty-security main multiverse restricted universe

deb-src natty-updates main multiverse restricted universe

deb  natty main multiverse restricted universe

deb natty-backports main multiverse restricted universe

deb natty-proposed main multiverse restricted universe

deb natty-security main multiverse restricted universe

deb natty-updates main multiverse restricted universe

deb-src natty main multiverse restricted universe

deb-src natty-backports main multiverse restricted universe

deb-src natty-proposed main multiverse restricted universe

deb-src natty-security main multiverse restricted universe

deb-src natty-updates main multiverse restricted universe

其他一些源參考:

redhat 將阿里雲映象設定為映象源

檢視版本的方式 cat etc system release red hat enterprise linux server release 7.3 maipo 上面是我電腦的查詢結果,可以看出我的電腦為7版本 wget o etc yum.repos.d centos base.repo 或 cu...

Linux下將Weblogic設定為開機啟動

cd etc rc.d init.d vi weblogic bin bash chkconfig 34520 80 description weblogic server auto start stop script etc rc.d init.d weblogic please edit the...

Ubuntu下apt 實用命令

apt cache search package 搜尋包 apt cache show package 獲取包的相關資訊,如說明 大小 版本等 sudo apt get install package 安裝包 sudo apt get install package reinstall 重新安裝包 ...