虚拟机Ubuntu Server(宿主Win7)更新软件源

文件/etc/apt/sources.list是一个普通可编辑的文本文件,保存了ubuntu软件更新的源服务器的地址

编辑source.list,在文件最前面添加以下条目(操作前请做好相应备份)

http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse

刷新列表:

sudo apt-get update
刷新时若出现错误,首先查看网络是否联通
然后如下处理
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

 

或者

su
cd /etc/apt
wget http://mirrors.163.com/.help/sources.list.wily
mv sources.list sources.list.backup
mv sources.list.lucid sources.list
apt-get update

 

wget 网络下载工具

你可能感兴趣的:(虚拟机Ubuntu Server(宿主Win7)更新软件源)