1、增加Ubuntu的更新源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患.) sudo gedit /etc/apt/sources.list (打开Ubuntu 8.04源列表文件) 在打开的文件的尾部空上一行把下面的源地址粘贴上去保存就OK了. Ubuntu 8.04#cn99.com 源更新服务器(江苏省常州市电信.): deb http://Ubuntu.cn99.com/ubuntu hardy main restricted universe multiverse deb-src http://Ubuntu.cn99.com/ubuntu hardy main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu hardy-backports main restricted universe multiverse deb-src http://Ubuntu.cn99.com/ubuntu hardy-backports main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu hardy-proposed main restricted universe multiverse deb-src http://Ubuntu.cn99.com/ubuntu hardy-proposed main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu hardy-security main restricted universe multiverse deb-src http://Ubuntu.cn99.com/ubuntu hardy-security main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu hardy-updates main restricted universe multiverse deb-src http://Ubuntu.cn99.com/ubuntu hardy-updates main restricted universe multiverse #Ubuntu 8.04 Hardy Heron deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy main restricted universe multiverse deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main restricted universe multiverse deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-security main restricted universe multiverse deb http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy main restricted universe multiverse deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-security main restricted universe multiverse deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse 2、使Ubuntu操作系统环境为中文环境 语句如下 sudo apt-get install scim scim-pinyin scim-tables-zh im-switch scim-qtimm scim-bridge scim-bridge-client-gtk scim-bridge-client-qt scim-bridge-agent -y 然后再执行 sudo im-switch -s scim 3、安装中文输入法 在系统菜单的系统——系统管理——语言支持里面找“汉语”,刚装好系统的时候是没有“汉语”的。选中汉语,这时候系统才会下载中文语言包并自动安装 还有一种命令行方法安装中文输入法: #language support显示汉语选项 sudo apt-get update #装智能拼音 sudo apt-get install scim-pinyin #装五笔 sudo apt-get install scim-table-zh #如果scim 不会自动启动 sudo apt-get install im-switc 把eclipse的workspace编码设置可选GBK,解决默认UTF-8的问题 在工程的属性中有设置项,可以设置当前工程的编码,设置成GBK就可以了,默认的没有GBK可选,可以直接输入GBK编码。 Ubuntu中文推荐资源: Ubuntu中文环境和中文输入法安装 Ubuntu8.04快速设置指南 注意:安装中文环境和中文输入法必须连上互联网!