3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu14.04 からUbuntu16.04へのアップデートエラー

Last updated at Posted at 2017-12-13

ubuntu14.04からubuntu16.04へUpdate

とりあえず,これをやる前に

apt-get update
apt-get upgrade 
apt-get dist-upgrade
apt-get autoremove

をやりましょう.

やらなくてもいいっぽい.

それから,

do-release-upgrade

を行って,updataだーーーー!!!

と思ったら,

.....
.....
.....

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)
=== Command detached from window (Wed Dec 13 13:42:38 2017) ===
=== Command terminated with exit status 1 (Wed Dec 13 13:42:48 2017) ===

なんか,できないし...

それで,調べてみたら,

 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 sudo do-release-upgrade

どうも環境変数が設定されていないっぽい
しょうがないので,環境変数つきのコマンドを実行!!

すると,無事Updateできましたー

根本の原因は環境変数の設定なんですけど,どうやって設定すればいいんですかね??

参考

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?