lizongbo at 618119.com 工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC

2014年08月18日

Linode VPS从 Ubuntu 12.04 升级到 Ubuntu 14.04

Filed under: Linux — 标签:, , — admin @ 10:40

VPS从 12.04 升级到 14.04

linode官网现在还是只有升级到Ubuntu 12.04的步骤
参考:
https://www.linode.com/docs/security/upgrading/how-to-upgrade-to-ubuntu-12-04-precise
升级到Ubuntu 14.04的步骤是一样的,但是升级过程中出现个错误信息,出错信息如下:

Error in sys.excepthook:
Traceback (most recent call last):
File “/tmp/update-manager-Ik4Dhk/DistUpgrade/DistUpgradeViewText.py”, line 108, in _handleException
“\n”.join(lines))
File “/tmp/update-manager-Ik4Dhk/DistUpgrade/DistUpgradeViewText.py”, line 142, in error
print(twrap(summary))
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-5: ordinal not in range(128)

Original exception was:
Traceback (most recent call last):
File “/tmp/update-manager-Ik4Dhk/trusty”, line 10, in <module>
sys.exit(main())
File “/tmp/update-manager-Ik4Dhk/DistUpgrade/DistUpgradeMain.py”, line 230, in main
app = DistUpgradeController(view, options, datadir=options.datadir)
File “/tmp/update-manager-Ik4Dhk/DistUpgrade/DistUpgradeController.py”, line 126, in __init__
self._view.updateStatus(_(“Reading cache”))
File “/tmp/update-manager-Ik4Dhk/DistUpgrade/DistUpgradeViewText.py”, line 122, in updateStatus
print(msg)
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-5: ordinal not in range(128)
=== Command detached from window (Fri Aug 15 11:42:55 2014) ===
=== Command terminated with exit status 1 (Fri Aug 15 11:42:55 2014) ===

在网上找资料看了说是没设置LC_ALL导致的。
参考:
http://blueecho.info/wp/?p=78

修改/root/.bashrc文件

命令 vi /root/.bashrc

按A,然后在文件末尾添加

export LC_ALL=C

按Esc,再按冒号和W和Q,

再运行  source /root/.bashrc 使修改后的文件生效。

然后再运行screen命令,再运行 sudo do-release-upgrade。

 

 

没有评论 »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress