ubuntu手动安装语言的方法

有一次在开发的时候,需要安装一服务器,安装好之后报了一个错误:

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的安装 一文。

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值