Error upgrading to development version of 20.04

I am on 19.10. After running sudo do-release-upgrade -d, the upgrade has been going well until I got this error:

...

Remove obsolete packages?


107 packages are going to be removed.

Removing the packages can take several hours.

 Continue [yN]  Details [d]y

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-clogvkrp/focal", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeController.py", line 2082, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeController.py", line 2059, in fullUpgrade
    self.doPostUpgrade()
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeController.py", line 1498, in doPostUpgrade
    self._view.confirmChanges(summary, changes, [], 0, actions, False)):
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeViewText.py", line 217, in confirmChanges
    res = readline().strip().lower()
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeViewText.py", line 51, in readline
    s = input()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
    self.write(f)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
    block = f.read(1048576)
  File "/usr/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-clogvkrp/focal", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeController.py", line 2082, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeController.py", line 2059, in fullUpgrade
    self.doPostUpgrade()
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeController.py", line 1498, in doPostUpgrade
    self._view.confirmChanges(summary, changes, [], 0, actions, False)):
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeViewText.py", line 217, in confirmChanges
    res = readline().strip().lower()
  File "/tmp/ubuntu-release-upgrader-clogvkrp/DistUpgrade/DistUpgradeViewText.py", line 51, in readline
    s = input()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte

I’ve now ran sudo apt-get autoremove which removed 77 packages. Where’s the rest 30 packages? :thinking:

This is the Python error that crashed the updater. Do you run your system with a specific locale? Paste the output of locale.

Can you please report a bug to launchpad with the following command:

ubuntu-bug ubuntu-release-upgrader

It’ll be easier to track your issue on launchpad than this forum.
Thank you.

@jibel done, the report can be seen here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1874702

The stacktrace above can be seen in one of the automatically generated & attached log files, e.g. VarLogDistupgradeMainlog.txt.

Feel free to close this topic.

The output of locale is:

eugene@eugene-hp-home-server:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
eugene@eugene-hp-home-server:~$