Created
December 31, 2024 12:00
-
-
Save catchsudheera/68bcb4747e7e4127cd1162112791c99e to your computer and use it in GitHub Desktop.
Upgrade ubuntu server from EOL version "Lunar" to latest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo sed -i 's|http://ports.ubuntu.com/ubuntu-ports|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list | |
| sudo apt update && sudo apt upgrade -y | |
| sudo sed -i 's|lunar|mantic|g' /etc/apt/sources.list | |
| sudo apt update && sudo apt upgrade -y | |
| # Had to fix the installs for libc6 | |
| sudo apt --fix-broken install | |
| sudo apt dist-upgrade | |
| # use `cat /etc/os-release` to ensure you have upgraded to mantic at this point | |
| # reboot the system | |
| sudo do-release-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to change the first line as shown below, but then it worked perfectly. Thank you for figuring this out!