Upgrade Ubuntu AMI version from 16.04 to 22.04

0

Hi! I want to upgrade my server EC2 with Ubuntu 16.04, the problem is that when I did it in the usual way to upgrade ubuntu ( ** sudo do-release-upgrade** )and I restart the server, the checkings fails and stop the instance. I tried it a lot of times and always happends the same.

How can I upgrade the version of Ubuntu AMI on my EC2 instance?

Thanks

gefragt vor 2 Jahren1783 Aufrufe
1 Antwort
1

Hello there,

Firstly, you cannot jump from Ubuntu 16.04 straight to Ubuntu 22.04 as you would need to go through each major release one by one:

16 -> 18 -> 20 -> 22

Secondly, you can create a new Ubuntu latest version instance and migrate your data by detaching the EBS volume from the Ubuntu 16.04 ec2 instance and attaching it to the newly created Ubuntu latest version ec2 instance.

The following documentation helps with the data migration:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen