Ubuntu 发行版升级中断(17.10 至 18.04 LTS“Bionic Beaver”)

Ubuntu 发行版升级中断(17.10 至 18.04 LTS“Bionic Beaver”)

我目前正在使用 Ubuntu 17.10,并尝试升级到 18.04 LTS 新版本。

单击软件更新程序中的“升级”选项后,系统会显示一个发布说明窗口,其中有另一个“升级”选项。选择该选项后,系统会显示一个“执行发布升级”屏幕,该屏幕会在下载/加载某些文件后立即消失。

我尝试过重新启动机器,并通过不同的方式运行软件管理器,但都无济于事。

除了简单地在我的驱动器上安装新的映像文件之外,还有其他方法可以升级到最新的发行版吗?

编辑:尝试使用升级时获取以下输出do-release-upgrade -d

输出:

Checking for a new Ubuntu release
ERROR:root:gedefaultlocale() failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 388, in get_lang
    (locale_s, encoding) = locale.getdefaultlocale()
  File "/usr/lib/python3.6/locale.py", line 562, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.6/locale.py", line 490, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL
ERROR:root:gedefaultlocale() failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 388, in get_lang
    (locale_s, encoding) = locale.getdefaultlocale()
  File "/usr/lib/python3.6/locale.py", line 562, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.6/locale.py", line 490, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL
ERROR:root:gedefaultlocale() failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 388, in get_lang
    (locale_s, encoding) = locale.getdefaultlocale()
  File "/usr/lib/python3.6/locale.py", line 562, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.6/locale.py", line 490, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL
ERROR:root:gedefaultlocale() failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 388, in get_lang
    (locale_s, encoding) = locale.getdefaultlocale()
  File "/usr/lib/python3.6/locale.py", line 562, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.6/locale.py", line 490, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL
Upgrades to the development release are only 
available from the latest supported release.

答案1

运行此命令来解决这个问题

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

答案2

这是一个已知问题使用en_IL语言环境和 Python。您的/etc/default/locale文件可能包含以下行:

LANG=en_IL

编辑该文件并将行更改为:

LANG=en_IL.UTF-8

下次登录时您将有望能够成功升级。

相关内容