Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Linux newbie here. I recently ordered my first (unmanaged) VPS running Ubuntu 10.04. I successfully managed to upgrade to 12.04 via SSH connection (PuTTY) but have some trouble going to 12.10 release now. This is exactly what I did:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo reboot

sudo do-release-upgrade -c

Checking for a new Ubuntu release.
New release '12.10' available.
Run 'do-release-upgrade' to upgrade to it.

sudo do-release-upgrade

After a few seconds the setup process stops because of '/var/run/utmp' not being found:

root@vm3593:~# sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1200 kB]
Fetched 1200 kB in 0s (0 B/s)
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
extracting 'quantal.tar.gz'
/var/run/utmp: No such file or directory

So I tried:

cd /
sudo cat /dev/null > /var/run/utmp
sudo reboot

and it fixed the missing file issue (yay!).

Unfortunately, the setup still gets stuck with the following error(s):

line 1616, in fullUpgrade
if not self.prepare():
line 429, in prepare
line 299, in _sshMagic
"Do you want to continue?") % port)

File "/tmp/update-manager-ZdDbE2/DistUpgrade/",
line 216, in askYesNoQuestion
res = sys.stdin.readline().decode(ENCODING, "backslashreplace")

TypeError: decode() argument 1 must be string, not None
=== Command detached from window (Sat Aug  3 20:26:10 2013) ===
=== Command terminated with exit status 1 (Sat Aug  3 20:26:10 2013) ===

What can I do?

Please keep in mind that I'm absolutely new to this.

share|improve this question
Did not know that python was used so much in the core parts of Ubuntu/Linux! Very interesting. Also, +1 for the info. Well written post and good job on the self-done research! Anyways, if you answered your problem, post an answer and mark it as such! That would be great! – RPi Awesomeness Dec 29 '13 at 2:50

Quote from post:

Upgrading now... (yay!) Try:

sudo LC_ALL=C.UTF-8 sudo do-release-upgrade


export LC_ALL=C.UTF-8 sudo do-release-upgrade

The former did it for me.

I'm posting this as the answer, just until the user creates their own answer and marks it as such.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.