Skip to content

Instantly share code, notes, and snippets.

Last active July 11, 2023 15:58
Show Gist options
  • Save nihathrael/7429eeb8d539c4c8e0ade03269b3f95a to your computer and use it in GitHub Desktop.
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 - '' | sudo apt-key add -
$ sudo apt-add-repository
$ 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
Copy link

artmotion commented Apr 12, 2021

Oh. And I had troubles with KDE games, so I remove as much as I could, by doing:
sudo apt remove kmahjongg kmines kpat ksudoku libkf5kdegamesprivate1 libkf5kdegames7 libkf5kmahjongglib-data libkf5kmahjongglib5 kdegames-mahjongg-data-kf5 kdegames-card-data-kf5 libgamemode0 libgamemodeauto0 libkf5kdegames-data

and to make sure all dependencies are finally correct:
sudo apt-get dist-upgrade

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