Purpose of this script
This is a little helper script for Kubuntu™ users who have gotten rid of and blocked Snap entirely (like Linux Mint and TUXEDO OS do) and now want to release-upgrade to the next main Kubuntu™ version (e.g. from 23.10 to 24.04 LTS).
It has been tested many times with Kubuntu™ 20.04 LTS up to 24.04 LTS.
I hope you find the script useful! Yours respectfully, Schwarzer Kater
Installation and usage of this script
Important You will be asked twice for confirmation before the removal of relevant APT pinning and the reinstallation of snapd and default Snaps is started - and if you answer "n" or "N" no changes at all are made to your system.
For some more information about what is done in detail see the comments within the script itself.
Known issues / bugs
Other Ubuntu™-based distributions
No other Ubuntu™-based distributions/flavours but Kubuntu™ 20.04 LTS & later are officially supported.
In its current state my script does not work with Ubuntu™ (GNOME) or other GTK/GNOME-based flavours like Xubuntu™, Ubuntu MATE™, etc. as they use the Snap Store or the GNOME Software Center instead of Discover - to name just one example.
Due to the amount of time it would take to change and thoroughly test this script accordingly I will probably also not support them in the future.
But by all means feel free to use my script as a template to do so.
That said the script does work with Lubuntu™ and Ubuntu Studio™ (KDE Plasma) so far.
This is a little helper script for Kubuntu™ users who have gotten rid of and blocked Snap entirely (like Linux Mint and TUXEDO OS do) and now want to release-upgrade to the next main Kubuntu™ version (e.g. from 23.10 to 24.04 LTS).
It has been tested many times with Kubuntu™ 20.04 LTS up to 24.04 LTS.
I hope you find the script useful! Yours respectfully, Schwarzer Kater
Installation and usage of this script
- You can download the script from here: https://gitlab.com/scripts94/kubuntu...elease-upgrade
Click on its name in the file list and on the next page use the download button on the far right side of the script name.
OR
Copy and paste the code of the script into a blank Kate text editor document and save it as "Kubuntu_reinstall_Snap_for_release-upgrade.sh" to e.g. your home directory. - Make the file Kubuntu_reinstall_Snap_for_release-upgrade.sh executable in the Dolphin file manager:
go to the directory you downloaded/saved the script to, right-click on the file and choose Properties --> Permissions --> enable Is executable --> choose OK.
OR
Make the file Kubuntu_reinstall_Snap_for_release-upgrade.sh executable in the Konsole terminal emulator:
go to the directory you downloaded/saved the script to (cd [path to]/[name of directory], e.g. cd ~/Downloads) and enter:
chmod +x Kubuntu_reinstall_Snap_for_release-upgrade.sh. - To run the script in the Konsole terminal emulator go to the directory you downloaded/saved the script to and enter:
./Kubuntu_reinstall_Snap_for_release-upgrade.sh.
Important
- This script SHOULD be run directly before release-upgrading Kubuntu™ to the next main version, if you have removed and blocked Snap entirely before, OR ELSE A RELEASE-UPGRADE TO THE NEXT KUBUNTU™ VERSION WILL PROBABLY FAIL!
It has been designed to be run in combination with the get_rid_of_Snap script.
- A full upgrade of the system (either with Discover or in Konsole with sudo apt update && sudo apt full-upgrade) AND a reboot is strongly recommended prior to running this script!
For some more information about what is done in detail see the comments within the script itself.
Known issues / bugs
- For Kubuntu™ 24.04 LTS this script also installs snapd and the Firefox, Thunderbird and Firmware Updater Snaps (therefore matching the "Normal Installation" option), even if you used the "Minimal Installation" option during installation.
This is a "saftely measure" and may change when it is known how the release-upgrade to Kubuntu™ 24.10 will work and what this exactly will require to be installed before.
Other Ubuntu™-based distributions
No other Ubuntu™-based distributions/flavours but Kubuntu™ 20.04 LTS & later are officially supported.
In its current state my script does not work with Ubuntu™ (GNOME) or other GTK/GNOME-based flavours like Xubuntu™, Ubuntu MATE™, etc. as they use the Snap Store or the GNOME Software Center instead of Discover - to name just one example.
Due to the amount of time it would take to change and thoroughly test this script accordingly I will probably also not support them in the future.
But by all means feel free to use my script as a template to do so.
That said the script does work with Lubuntu™ and Ubuntu Studio™ (KDE Plasma) so far.
Comment