不作死不会死!果然。
前两天刚刚因为openssl的heartbleed漏洞升级了一次服务器,ubuntu 14.04刚发布,就想着把这个服务器直接升级到最新版吧。
升级过程没有什么问题,重启后检查服务,发现trac系统不工作了。
其提示UnknownLocaleError错误:
babel.core.UnknownLocaleError: unknown locale ‘zh_CN’
一搜,发现这个问题暂时还无解,因为python babel的locale库里就没有中文。
这个bug里虽然作者回复说在1.3版本里已经解决,
http://trac.edgewall.org/ticket/11258
但,ubuntu 14.04里babel的版本就是1.3:
apt-cache show python-babel
Package: python-babel
Priority: optional
Section: python
Installed-Size: 395
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules TeamArchitecture: all
Version: 1.3+dfsg.1-2ubuntu1
Depends: python-babel-localedata (= 1.3+dfsg.1-2ubuntu1), python-pkg-resources, python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2), python2.7:any, python-tz
Filename: pool/main/p/python-babel/python-babel_1.3+dfsg.1-2ubuntu1_all.deb
Size: 68964
MD5sum: 116fb963a65da253773cb3be6ca287d6
SHA1: 63644122e32533a9a99e9f23e0b9aa852ffb351e
SHA256: 5491c34d3885a4f09cb51990115a34c23c155326e5c3de4ae9555dcddcf13324
Description-en: tools for internationalizing Python applications – Python 2.x
Babel is composed of two major parts. First tools to build and work with
gettext message catalogs. Second a Python interface to the CLDR (Common
Locale Data Repository), providing access to various locale display
names, localized number and date formatting, etc.
.
This package provides the Python 2.x module.
Description-md5: 5e6a3ac9eaed3843484d2718c2f9d35d
Homepage: http://babel.pocoo.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
头脑发热,决定试试把这个包删除看看:
sudo apt-get remove python-babel
删除后,可以正常访问了,但在roadmap里还提示有错误,在admin中禁掉roadmap-plugin就可以正常了。
发表回复