更新ubuntu软件源

更新软件源:1 首先备份源列表,而后用gedit或其他编辑器打开源列表文件:sudo cp etc apt sources list etc apt so

更新软件源:

1.首先备份源列表,而后用gedit或其他编辑器打开源列表文件:

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


2.把找到的合适的源,替换掉sources.list中所有的内容,保存。
比如163的源为:(163的源列表地址:http://mirrors.163.com/.help/ubuntu.html

deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse

把上面的内容复制粘贴,替换掉sources.list的全部内容。

3.执行源的更新:

sudo apt-get update


4.然后,执行真正的软件更新:

 sudo apt-get upgrade
您可能有感兴趣的文章
更新debian软件源

更新软件源

软件更新服务之客户端更新

Android

Android软件版本更新