0

Suppose I have Ubuntu 12.04. I want to upgrade to 20.04, So how do I do this? Is it possible with apt like sudo apt dist-upgrade or it does something else?

muru
  • 207,228
lensys
  • 11
  • 3

1 Answers1

2

There is no direct upgrade path from 12.04 to 20.04.

It may be possible to do-release-upgrade from 12.04 to 14.04 to 16.04 to 18.04 to 20.04. However, best practice is to test each release --and fix the problems you discover-- before release-upgrading to the next release, so that might be many hours (perhaps days) of testing and troubleshooting and upgrading. Nobody has tested release-upgrading in series like that. If you feel like testing it, let us know what happened.

It seems unlikely that a dist-upgrade from 12.04 to 20.04 would work -- even if that method were supported (it's not). Many important components and default packages have changed. Again, nobody has tested it. If you feel like testing it, let us know what happened.

The only supported method is to back up your data and then clean-install Ubuntu 20.04. It's also likely to be the fastest and simplest method...even with the data backup/restore.

user535733
  • 68,493