Skip to content

Instantly share code, notes, and snippets.

@nihathrael
Last active July 11, 2023 15:58
  • Star 26 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nihathrael/7429eeb8d539c4c8e0ade03269b3f95a to your computer and use it in GitHub Desktop.
How to upgrade kubuntu 16.04 -> KDE neon

This worked for me and might not work for your.

Try it at your own risk!

Add the neon repositories and install the neon desktop

$ wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
$ sudo apt-add-repository http://archive.neon.kde.org/user
$ sudo apt-get update
$ sudo apt-get install neon-desktop

Upgrade everything. Repeat if necessary, until everything is really up to date and you have no held-back packages.

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
@xdpirate
Copy link

xdpirate commented May 8, 2022

Thanks for this. I had some minor problems upgrading from Kubuntu 20.04 LTS, but figured it out; Here's what I did in case anyone else encounters the same issue.

Note that once apt has been updated, sudo apt upgrade will no longer work, and you will have to use sudo pkcon update, as is the KDE neon way.

Every so often while doing sudo apt dist-upgrade, dpkg would error out, saying a package (from neon) tried to overwrite a file provided by another package (same, already install package from ubuntu), and it won't let you remove the package with sudo apt remove package. To get around this, for each broken package (I had ~20 in total):

  1. sudo dpkg -i --force-overwrite /var/cache/apt/archives/package.deb (replace path with the one provided by the dpkg error message)
  2. sudo apt --fix-broken install -y
  3. sudo apt update && sudo apt dist-upgrade -y

Repeat these steps for every package that breaks in this way, and eventually, the dist-upgrade will go through with no errors. Do another sudo apt install neon-desktop and sudo apt autoremove to make sure everything is up to date. After a reboot, everything booted up without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment