我目前正在使用 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
下次登入時您將有望成功升級。