0

I try to upgrade Ubuntu 14.04 to 16.04, but I have an issue.

I tried to follow this article :

https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-16-04-lts

after running this command :

sudo do-release-upgrade

When the 1022 ssh dialog appeared, I wrongly typed n, then I got disconnected.

Later on, I had to go to the Dashboard terminal, and restore the ssh connection.

But when I retried the command :

sudo do-release-upgrade

it gave me this message, and I had to close the terminal :

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/ubuntu-release-upgrader-vgm0wvbx/xenial", line 8, in
<module>
sys.exit(main())

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeMain.py",
line 242, in main
if app.run():

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py",
line 1907, in run
return self.fullUpgrade()

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py",
line 1725, in fullUpgrade
if not self.prepare():

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py",
line 438, in prepare
self._sshMagic()

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py",
line 328, in _sshMagic
self._view.information(summary, descr)

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeViewText.py",
line 176, in information
readline()

File
"/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeViewText.py",
line 50, in readline
s = input()

KeyboardInterrupt
=== Command terminated with exit status 1 (Tue Feb  4 01:29:35 2020) ===

already retry several times, but it keeps failing, any clue?

1 Answers1

0

I finally restarted the upgrade process, by restoring VPS droplet from a snapshot, and when the 1022 ssh dialog appearing, I typed y and it continued to the next process until finished.

I guess when I typed n before, the I got kicked out from the ssh session and it broke the upgrade process.

a lesson that can be learned here, always take a backup / snapshot of your servers, you'll never when you need them :)

Hopefully this helps anyone who deal with the same issue.