有一个 Ubuntu 14.04.05 LTS Server-VM 需要升级到 Ubuntu 16.04.02 LTS。不幸的是,我在 dist-upgrade 期间收到以下错误:
**File "/tmp/ubuntu-release-upgrader-4b8li6el/DistUpgrade
/DistUpgradeCache.py", line 806, in installedTasks
for line in pkg._pcache._records.record.split("\n"):
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position
337: invalid start byte**
错误跟踪器中有一个解决方法,但对我来说不起作用:
https://bugs.launchpad.net/ubuntu/+source/update-manager-core/+bug/1453740
其他无效的建议:
LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8 LANGUAGE=de_DE.UTF-8
LC_ALL=de_DE.iso-8859-1 LANG=de_DE.iso-8859-1 LANGUAGE=de_DE.iso-8859-1
以下是我用于升级的命令:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install update-manager-core
sudo do-release-upgrade
来自screenlog的日志:
https://pastebin.com/SeWB5E9y