Do-release-обновления сбой на нескольких серверах

6

Когда я пытаюсь обновиться с 12.04 до 12.10, он даже не запустится.

Ниже приведен вывод терминала do release-upgrade и cat /var/log/dist-upgrade/main.log ( apt.log не существует).

[email protected]:/tmp# do-release-upgrade


Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1198 kB]
Fetched 1198 kB in 0s (0 B/s)
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
extracting 'quantal.tar.gz'

Reading cache

Checking package manager

Continue running under SSH?

This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.

If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?

Continue [yN] y


A fatal error occurred

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

Traceback (most recent call last):

File "/tmp/update-manager-l6hrMz/quantal", line 10, in <module>
sys.exit(main())

File "/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeMain.py",
line 240, in main
if app.run():

File
"/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py",
line 1764, in run
return self.fullUpgrade()

File
"/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py",
line 1616, in fullUpgrade
if not self.prepare():

File
"/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py",
line 429, in prepare
self._sshMagic()

File
"/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py",
line 299, in _sshMagic
"Do you want to continue?") % port)

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

TypeError: decode() argument 1 must be string, not None
=== Command detached from window (Sun Feb 17 22:29:59 2013) ===
=== Command terminated with exit status 1 (Sun Feb 17 22:29:59 2013) ===


[email protected]:/tmp# cat /var/log/dist-upgrade/main.log
2013-02-17 22:29:55,763 INFO Using config files '['./DistUpgrade.cfg']'
2013-02-17 22:29:55,763 INFO uname information: 'Linux somehost 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64'
2013-02-17 22:29:55,763 INFO apt version: '0.8.16~exp12ubuntu10.7'
2013-02-17 22:29:55,764 INFO release-upgrader version '0.190.4' started
2013-02-17 22:29:55,883 DEBUG Using 'DistUpgradeViewText' view
2013-02-17 22:29:55,915 DEBUG aufsOptionsAndEnvironmentSetup()
2013-02-17 22:29:55,915 DEBUG using '/tmp/upgrade-rw-3rOa1K' as aufs_rw_dir
2013-02-17 22:29:55,916 DEBUG using '/tmp/upgrade-chroot-CDOxkq' as aufs chroot dir
2013-02-17 22:29:55,916 DEBUG enable dpkg --force-overwrite
2013-02-17 22:29:55,926 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2013-02-17 22:29:58,326 DEBUG lsb-release: 'precise'
2013-02-17 22:29:59,924 ERROR not handled exception:
Traceback (most recent call last):

  File "/tmp/update-manager-l6hrMz/quantal", line 10, in <module>
    sys.exit(main())

  File "/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeMain.py", line 240, in main
    if app.run():

  File "/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py", line 1764, in run
    return self.fullUpgrade()

  File "/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py", line 1616, in fullUpgrade
    if not self.prepare():

  File "/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py", line 429, in prepare
    self._sshMagic()

  File "/tmp/update-manager-l6hrMz/DistUpgrade/DistUpgradeController.py", line 299, in _sshMagic
    "Do you want to continue?") % port)

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

TypeError: decode() argument 1 must be string, not None

2013-02-17 22:29:59,925 DEBUG enabling apt cron job
    
задан Bas van den Dikkenberg 17.02.2013 в 22:35
источник

1 ответ

6

Убедитесь, что вы правильно установили свои локали -

sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales

Затем добавьте следующее в /etc/bash.bashrc:

export LANG='en_US.UTF-8'
export SUPPORTED="$LANG:en_US:en"

Вы должны изменить переменные в соответствии с вашими предпочтительными языками. Вам необходимо будет повторно войти в систему (или, в случае SSH, повторно подключиться), прежде чем изменения вступят в силу. Если вы используете byobu, tmux или экран, обязательно выйдите из каждого окна и закройте сеанс в первую очередь.

    
ответ дан vrr 21.02.2013 в 22:44
источник