Freeshell 早先的默认系统是 Debian squeeze,很多软件包都太老了。现在升级到了 Debian wheezy,新建的 freeshell 就是 wheezy 系统了。还修复了默认 locale 的问题。
现有 freeshell 可以通过手动升级或重装系统的方法用上 wheezy:
手动升级
- 把 /etc/apt/sources.list 修改为下列内容:
deb http://mirrors.ustc.edu.cn/debian/ wheezy main non-free contrib deb http://mirrors.ustc.edu.cn/debian/ wheezy-proposed-updates main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian/ wheezy main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian/ wheezy-proposed-updates main non-free contrib deb http://mirrors.ustc.edu.cn/debian-security/ wheezy/updates main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian-security/ wheezy/updates main non-free contrib
- apt-get update (更新软件包列表)
- 如果提示 key 错误:
- gpg –recv-keys [错误提示中的 key ID]
- gpg –export [错误提示中的 key ID] | apt-key add –
- apt-get update
- apt-get dist-upgrade (升级系统,请按提示谨慎选择是否覆盖原来的配置文件)
重装系统
- 备份所有数据
- 登录 http://freeshell.ustc.edu.cn,点击 ”Reinstall System“ 按钮,按提示完成邮件验证,抹掉原有的所有数据并安装 Debian wheezy 最小系统。
- 将备份的数据还原到新系统里
注意,系统里都没有内核,内核也不能更换,因为我们用的 OpenVZ 是轻量级虚拟化,所有虚拟机共享一个内核,只是分离文件系统、进程、网络等命名空间。