Debian 6 年代实在有些久远,有些环境都支持不了。所以需要升级,这里做个记录。
一、修改源设置
编辑 /etc/apt/source.list 文件,将文件中的 squeeze 全部换成 wheezy 即可。
改完之后看起来是这样的:(阿里云主机的源是自己的镜像,和标准不太一样)
deb http://mirrors.aliyun.com/debian wheezy main contrib non-free deb http://mirrors.aliyun.com/debian wheezy-proposed-updates main contrib non-free deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb http://mirrors.aliyun.com/debian wheezy-backports main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy-proposed-updates main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy-backports main contrib non-free
二、更新软件包
sudo apt-get install update sudo aptitude install update