Freeshell 早先的默认系统是 Debian squeeze,很多软件包都太老了。现在升级到了 Debian wheezy,新建的 freeshell 就是 wheezy 系统了。还修复了默认 locale 的问题。

现有 freeshell 可以通过手动升级或重装系统的方法用上 wheezy:

手动升级

  1. 把 /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 ```

  2. apt-get update (更新软件包列表)
  3. 如果提示 key 错误:
    1. gpg –recv-keys [错误提示中的 key ID]
    2. gpg –export [错误提示中的 key ID] apt-key add –
    3. apt-get update
  4. apt-get dist-upgrade (升级系统,请按提示谨慎选择是否覆盖原来的配置文件)

重装系统

  1. 备份所有数据
  2. 登录 http://freeshell.ustc.edu.cn,点击 ”Reinstall System“ 按钮,按提示完成邮件验证,抹掉原有的所有数据并安装 Debian wheezy 最小系统。
  3. 将备份的数据还原到新系统里

注意,系统里都没有内核,内核也不能更换,因为我们用的 OpenVZ 是轻量级虚拟化,所有虚拟机共享一个内核,只是分离文件系统、进程、网络等命名空间。