Thursday, August 11, 2022

Upgrade Linux distro to new release adding new repositries

sudo nano /etc/update-manager/release-upgrades
set Prompt=normal // or lts
sudo do-release-upgrade // safest option to upgrade system without losing files or installed apps

https://kubuntu.org/news/plasma-5-25-beta-available-for-testing/

sudo add-apt-repository ppa:kubuntu-ppa/beta && sudo apt full-upgrade -y

sudo nano /etc/apt/sources.list // main repositories list. Change distro name - noble.

# deb cdrom:[Kubuntu 22.10 _Kinetic Kudu_ - Alpha amd64 (20220920)]/ kinetic main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse

## Major bug fix updates produced after the final release of the distribution.
deb http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu noble-security main restricted universe multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

sudo apt update 

sudo apt upgrade // do not auto-handle dependencies

sudo apt autoremove

sudo apt dist-upgrade // installs new kernel

sudo apt full-upgrade // upgrades but may remove  installed packages to resolve conflicts

sudo apt install update-manager-core // manages release upgrades

sudo apt-get install --reinstall linux-image-$(uname -r) // reinstall linux kernel

sudo apt-get install --reinstall linux-image-extra-VERSION* // reinstall all drivers

No comments:

Post a Comment