How to upgrade Ubuntu to 23.10 and kernel to the latest version
Sergey Sypalohttps://www.linkedin.com/in/sergeysypaloSypalo.com2019-05-14
In this article, you will learn how to upgrade Ubuntu to 23.10 and linux kernel to the latest stable 6.5 or mainline 6.6. As seen from the user's feedback in comments upgrade helped them to solve various issues with Wi-Fi, LAN, sound, and video cards. Also, it is always good to be on the latest supported and the most secure OS version to keep your system well protected. If you want to upgrade to one of the previous versions, I will also show you how to do it. The latest Ubuntu 23.10 (Mantic Minotaur) contains the following improvements:
- Updated installer
- Linux kernel 6.5
- GNOME 44
- PipeWire as the audio system
- New tools to optimise developer workflows
- Support for microcontrollers and embedded displays on the Raspberry Pi
- Upgraded enterprise management tooling
- Improved desktop usability and performance
Before we start I want to let you know that DigitalOcean gives you $100 for free to try their services. You can run VMs or containers, deploy websites and do a lot of cool stuff, including checking how smooth the Ubuntu do 23.10 upgrade will go.
Also, it`s always a good idea to back up your files in advance rather than regret not doing so later. And WD 6TB Enterprise Gold series is now only $140 at Aamzon. I personally own a 14TB version bought back in 2020 and really love it. All my Seagate HDDs died after a couple of years, so I bought 6TB HGST 5 years ago, which are still serving. If you didn`t know WD acquired HGST a few years back, so nowadays there is no vendor choice, only a model. But let us get to the topic.
To perform Ubuntu upgrade to 23.10 you will need around 2 hours to follow these steps:
Preparation
- Update packages listsudo apt-get update
- Upgrade packagessudo apt-get upgrade
- Install update-manager-core packagesudo apt-get install update-manager-core
Upgrade Ubuntu to 23.10
- Upgrade distrosudo apt-get dist-upgrade
- Update Ubuntu to the latest LTS release
Run the following command until you get your Ubuntu to version 22.04:
sudo do-release-upgrade - Change default branch from lts to normal
Once you update your Ubuntu to 22.04, the latest LTS version, you need to tell the update manager to get the newest short-term supported Ubuntu 23.10. But remember to back up all your important files in advance, especially if you are going to upgrade your live pc, laptop, or server. But better to test the upgrade on a VM first. The main rule - the fewer versions you are skipping the soother the upgrade process will be, so if you would like to upgrade directly from say 20.04 to 23.10 the process most likely will fail or you will get a bunch of errors and need to fix broken packages and re-run the upgrade again. So I told you - better be safe than sorry, and now let`s move on.
sudo sed -i 's/lts/normal/g' /etc/update-manager/release-upgrades - Change default distro from your current
- 20.04 - focal
- 20.10 - groovy
- 21.04 - hirsute
- 21.10 - impish
- 22.04 - jammy
- 22.10 - kinetic
- 23.04 - lunar
- 23.10 - mantic (development branch)
in the example below, we are upgrading from Ubuntu 22.04 (jammy) to 23.10 (mantic)
sudo sed -i `s/jammy/lunar/g` /etc/apt/sources.list - Update packages listsudo apt-get update
- Upgrade packagessudo apt-get upgrade
- Run full upgradesudo apt-get dist-upgrade
- If any error re-runsudo apt-get update
sudo apt-get dist-upgrade - Run cleanupsudo apt-get autoremove
sudo apt-get clean - Reboot the systemsudo reboot
Upgrade Ubuntu kernel version
- Change current directory to /tmpcd /tmp
- Download latest stable kernel
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.5.5/amd64/linux-headers-6.5.5-060505_6.5.5-060505.202309230703_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.5.5/amd64/linux-headers-6.5.5-060505-generic_6.5.5-060505.202309230703_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.5.5/amd64/linux-image-unsigned-6.5.5-060505-generic_6.5.5-060505.202309230703_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.5.5/amd64/linux-modules-6.5.5-060505-generic_6.5.5-060505.202309230703_amd64.deb - Install latest stable kernelsudo dpkg -i *.deb
- Reboot system after latest stable kernel upgradesudo reboot
- Change current directory to /tmpcd /tmp
- Download latest mainline kernel (optionally)If you experience some issues with the latest stable kernel or want to test the newest release candidate you might give the latest kernel release candidate a try. But be cautious, it is still in development, and while fixing some bugs, new ones might appear. There are two ways to install latest mainline kernel:
- sudo add-apt-repository ppa:cappelikan/ppa -y
- sudo apt-get update
- sudo apt install mainline -y
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.6-rc3/amd64/linux-headers-6.6.0-060600rc3_6.6.0-060600rc3.202309242231_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.6-rc3/amd64/linux-headers-6.6.0-060600rc3-generic_6.6.0-060600rc3.202309242231_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.6-rc3/amd64/linux-image-unsigned-6.6.0-060600rc3-generic_6.6.0-060600rc3.202309242231_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.6-rc3/amd64/linux-modules-6.6.0-060600rc3-generic_6.6.0-060600rc3.202309242231_amd64.deb - Install latest mainline kernelsudo dpkg -i *.deb
- Reboot system after latest mainline kernel upgradesudo reboot
Finishing up
- Update packages listsudo apt-get update
- Upgrade packagessudo apt-get upgrade
- Reboot the system if neededsudo reboot
- Check the OS distrolsb_release -a
- Check kernel versionuname -r
That`s it, now you should be running on the latest best-looking Ubuntu 23 and more secure latest Linux Kernel.
If this article helped you and you want to support me, I would be much appreciated.