linux系統及docker相關源更新彙集
阿新 • • 發佈:2019-01-13
debian
先要更新系統的軟體源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak #備份一下軟體源
sudo vi /etc/apt/sources.list
加入如下內容即可
網易163更新伺服器:
deb http://mirrors.163.com/debian/ squeeze main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian/
deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
sohu 更新伺服器:
deb http://mirrors.sohu.com/debian/ lenny main non-free contrib
deb http://mirrors.sohu.com/debian/ lenny-proposed-updates main non-free contrib
deb-src http://mirrors.sohu.com/debian/
deb-src http://mirrors.sohu.com/debian/ lenny-proposed-updates main non-free contrib
然後可以整好更新下系統的源(以下命令是為了更新系統軟體源,單獨對於安裝vim來說,不執行以下命令沒有任何影響。)
apt-get update
apt-get upgrade