因为目前ubuntu 10.04这个版本已经停止更新了,当使用apt-get update命令时,会提示忽略和无法下载404等错误。
下面是Ubuntu 10.04的/etc/apt/source.list文件的原始内容:
deb http://archive.ubuntu.com/ubuntu lucid main restricted universe
deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu lucid-security main restricted universe
将Ubuntu 10.04的/etc/apt/source.list文件中archive.ubuntu.com修改为old-releases.ubuntu.com 如下所示:
deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe
deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe
deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe
这样,运行apt-get update或apt-get install就可以更新或者安装软件了。
Debian官方源:
deb http://security.debian.org stable/updates main contrib non-free
deb http://ftp.debian.org/debian stable main non-free contrib
deb-src http://ftp.debian.org/debian stable main non-free contrib
deb http://ftp.debian.org/debian proposed-updates main contrib non-free
deb-src http://ftp.debian.org/debian proposed-updates main contrib non-free
Pingback引用通告: 64M小内存的VPS上搭建lighttpd+PHP+MySQL环境并运行WordPress « 老王笔记