Is there, anywhere on the internet, a reliable step-by-step guide on how to upgrade from Ubuntu 16.04 to 20.04? Apparently it has to be done via 18.04. I have updated the current 16.04 system by:
sudo ufw allow 1022/tcp
sudo apt update && sudo apt upgrade
After this i get the message: The following packages have been kept back: cloud-init
I guess that is why the system upgrade fails:
gives the message: Please install all available updates for your release before upgrading.
Thanks for any help! David
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!
Edit: I don’t find any useful information that explains if upgrading via 18.04 means:
//David
Hi,
@DavidKo wrote I don’t find any useful information that explains if upgrading via 18.04 means...
You need to do an upgrade in two steps
Each time you do that with a command
sudo do-release-upgrade
@DavidKo wroteAfter this i get the message:
The following packages have been kept back:
cloud-init
I guess that is why the system upgrade fails
That is probably the cause of the failure. You could try to do some steps to fix it but before doing anything I recommend making a snapshot of the droplet. You could try to (re)install the package that has been kept back.
sudo apt install cloud-init
You may get the questions about replacing packages with the new ones during the installation. Agree to that.
Let me know if it works, pls.
I’m working on this same process right now. I ran into the same issue with cloud-init. After installing it, I was able to get back pm track and update from 16.04 to 18.04 successfully.
My only issue at that point was disabling apache2.
Then I did the same process to connect to 20.04 and while it worked, I was unable to connect to my droplet any more and couldn’t figure out what was happening.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.