您的位置:首页 > 其它

ubuntu手动安装语言的方法

2011-12-26 17:31 281 查看
有一次在开发的时候,需要安装一服务器,安装好之后报了一个错误:

Couldn't find the en language message file!

小可不才,这名英文还是懂得的。当时就郁闷了,因为用的系统是直接拷的虚拟机,竟然里面没能安装英文!

面对吧,只能想办法装了。

首先,想通过Ubuntu的系统安装管理工具自动安装,真的被我找到了。无奈的发现,由于系统太长时间不更新,己经找不到相应的更新源,

需要两个关键的资源:language-pack-en,language-pack-en-base。

没办法,手动更新吧。

首先我在http://packages.ubuntu.com/ 找,真的被我找到这两个安装包了。

窃喜!

赶忙下载,通过程序安装工具来安装。

安装:language-pack-en,发现该安装包依赖,language-pack-en-base

安装:language-pack-en-base,发现该安装包依赖language-pack-en。

好了,到这里,快被打败了。

灵光一闪,真达九宵。

dpkg!

dpkg - i language-pack-en-base<TAB>

回车之后,心里笑了!


dpkg - i language-pack-en<TAB>

回车之后,脸上露出来久违的笑容!!!


电脑重启,在登录的界面选择语言之后,突然觉得那二十六个字符很亲切啊!!!!

如果事情到此结束?

没有。

后来我又通过多方求证,原来有 utuntu 更新源这一说。

具体做法就是:

sudo gedit /etc/apt/sources.list

添加提供源的网站:
网易开源镜像站,提供FreeBSD,OpenBSD,archlinux,centos,cygwin,debian,fedora,gentoo,kernel,openSUSE,slackware,ubuntu

代码:

deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse

deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted

台湾源

代码:

deb http://tw.archive.ubuntu.com/ubuntu/ oneiric main universe restricted multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu/ oneiric main universe restricted multiverse

deb http://tw.archive.ubuntu.com/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://tw.archive.ubuntu.com/ubuntu/ oneiric-security universe main multiverse restricted

deb http://tw.archive.ubuntu.com/ubuntu/ oneiric-updates universe main multiverse restricted

deb-src http://tw.archive.ubuntu.com/ubuntu/ oneiric-updates universe main multiverse restricted

SRT Sources

代码:

deb http://ubuntu.srt.cn/ubuntu/ oneiric main restricted universe multiverse

deb http://ubuntu.srt.cn/ubuntu/ oneiric-security main restricted universe multiverse

deb http://ubuntu.srt.cn/ubuntu/ oneiric-updates main restricted universe multiverse

deb http://ubuntu.srt.cn/ubuntu/ oneiric-proposed main restricted universe multiverse

deb http://ubuntu.srt.cn/ubuntu/ oneiric-backports main restricted universe multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric main restricted universe multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-security main restricted universe multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-updates main restricted universe multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-proposed main restricted universe multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-backports main restricted universe multiverse

网易 Ubuntu 11.10 源(速度很快)

代码:

deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse

deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted

ubuntu 11.10 上海源,提供 Kernel,Hiweed,ubuntu

代码:

deb http://mirror.rootguide.org/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirror.rootguide.org/ubuntu/ oneiric main universe restricted multiverse

deb http://mirror.rootguide.org/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirror.rootguide.org/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirror.rootguide.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirror.rootguide.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-updates universe main multiverse restricted

搜狐 Ubuntu 11.10 源

代码:

deb http://mirrors.shlug.org/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirrors.shlug.org/ubuntu/ oneiric main universe restricted multiverse

deb http://mirrors.shlug.org/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirrors.shlug.org/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirrors.shlug.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirrors.shlug.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-updates universe main multiverse restricted

骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin

代码:

deb http://ubuntu.srt.cn/ubuntu/ oneiric main universe restricted multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric main universe restricted multiverse

deb http://ubuntu.srt.cn/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-security universe main multiverse restricted

deb http://ubuntu.srt.cn/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://ubuntu.srt.cn/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://ubuntu.srt.cn/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ oneiric-updates universe main multiverse restricted

lupaworld Ubuntu 11.10源,提供 ArchLinux,Everest,FreeBSD,Fedora,LFS,Magiclinux,Mandriva,OpenOffice,openSUSE,Puppy,Red Hat,Slitaz,Turbolinux,Ubuntu,中标普华

代码:

deb http://mirror.lupaworld.com/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirror.lupaworld.com/ubuntu/ oneiric main universe restricted multiverse

deb http://mirror.lupaworld.com/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirror.lupaworld.com/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirror.lupaworld.com/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirror.lupaworld.com/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirror.lupaworld.com/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirror.lupaworld.com/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirror.lupaworld.com/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirror.lupaworld.com/ubuntu/ oneiric-updates universe main multiverse restricted

rootguide源,ubuntu官方上海源,提供 Kernel,Hiweed,ubuntu

代码:

deb http://mirror.rootguide.org/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirror.rootguide.org/ubuntu/ oneiric main universe restricted multiverse

deb http://mirror.rootguide.org/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirror.rootguide.org/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirror.rootguide.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirror.rootguide.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirror.rootguide.org/ubuntu/ oneiric-updates universe main multiverse restricted

搜狐开源镜像站,提供 CPAN,FreeBSD,NetBSD,OpenBSD,apache,archlinux,centos,cygwin,dag,debian,fedora,gentoo,kernel,lfs,mysql,nginx,openSUSE,php,rpmfusion,slackware,ubuntu

代码:

deb http://mirrors.shlug.org/ubuntu/ oneiric main universe restricted multiverse

deb-src http://mirrors.shlug.org/ubuntu/ oneiric main universe restricted multiverse

deb http://mirrors.shlug.org/ubuntu/ oneiric-security universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-security universe main multiverse restricted

deb http://mirrors.shlug.org/ubuntu/ oneiric-updates universe main multiverse restricted

deb http://mirrors.shlug.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-proposed universe main multiverse restricted

deb http://mirrors.shlug.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-backports universe main multiverse restricted

deb-src http://mirrors.shlug.org/ubuntu/ oneiric-updates universe main multiverse restricted

*仅把需要的代码拷进去就行了。

sudo apt-get update

解决了这个问题之后,发现我的服务器的问题还没有解决,

但这己经超出了本文所能理解的范围了,不作缀述。感兴趣的,请关注我的 Darwing Streaming Server的安装 一文。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: