I’m attempting to upgrade a droplet to Ubuntu 20.04, but the process always hangs at the same step:
Installing new version of config file /etc/cloud/cloud.cfg ...
After sitting on this step around 20 minutes, it disconnects, and I’m left unable to SSH back in. I’ve tested this three times now, including once from the web console, and it’s always this same step that hangs. No error, just…nothing.
I’ve had an ongoing support ticket for this, but their responses are not only slow but so far entirely unhelpful.
Can anyone recommend a solution, or anything I might try?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
After many many failed attempts, I was finally able to troubleshoot this issue so that I can access my droplet normally again. The upgrade to 20.04 seems to be successful, and remaining errors are resolved (as far as I can tell).
The solution centered around recovering the grub build, which fixes the kernel panic. I was unable to do this without first addressing several other errors (see below), but here are the steps recommended by support:
Again, these steps did work in the end, but before I could follow them successfully, I first had to troubleshoot these errors:
This one is simple to resolve by using the command suggested in the error:
sudo dpkg --configure -a
. This error must be resolved before the next one can be.I was able to resolve this with
sudo apt-get install grub-pc
.This was part of a series of errors and warnings I got after correcting the dpkg error and trying to run grub-install. This seemed to be related to nameservers on /etc/resolv.conf, and though I don’t know why, this seemed to solve it both times I tried:
vi /etc/resolv.conf
and close without saving. (Maybe someone else can explain why this worked?)I was having the same issue and resolved it by completely removing cloud-init. See https://askubuntu.com/a/1068584.
I had the same problem, except the SSH disconnection happened immediately after the message about installing a new version of
cloud.cfg
. Not only could I no longerssh
in, butping
to the server failed.I had done
apt dist-upgrade
in 18.04, but forgot to doapt update
first. Don’t know if this caused the problem, but it wasn’t fatal (I had a recent droplet backup just in case).I waited an hour, "Power Cycle"d the droplet from the Digital Ocean control panel (
https://cloud.digitalocean.com/droplets/
<id>/power
), and it rebooted with a fresh install of Ubuntu 20.04. So far, it appears that everything is working, at least I can SSH in,apt dist-upgrade
(afterapt install
) found nothing to do except remove unused packages,emacs
(26.3) works, and the Pleroma instance I’m running there is working.