do-release-upgrade

[!NOTE|label:tips] release upgrade from 24.04.5 LTS -> 26.04.1 LTS

prepare

[!NOTE|label:error log]

$ sudo do-release-upgrade
...
Foreign Packages Installed
The following unofficial packages are currently installed:
bat......................Installed from: unknown origin
git-delta................Installed from: unknown origin
libpython3.14............Installed from: LP-PPA-deadsnakes
libpython3.14-dev........Installed from: LP-PPA-deadsnakes
libpython3.14-stdlib.....Installed from: LP-PPA-deadsnakes
nodejs...................Installed from: . nodistro
python3.14...............Installed from: LP-PPA-deadsnakes
python3.14-dev...........Installed from: LP-PPA-deadsnakes
It is recommended to install supported versions from the Ubuntu
archive, and try the upgrade again.

Do you want to continue the upgrade anyways?
Continue [yN] y
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
=== Command terminated with exit status 1 (Mon Oct 26 19:43:40 2026) ===

log file: /var/log/dist-upgrade/main.log:

$ sudo tail -n 60 /var/log/dist-upgrade/main.log
...
2026-10-26 19:43:14,567 DEBUG Foreign (before rewriting sources): bat cmake cmake-data diff-so-fancy git-delta libpython3.14 libpython3.14-dev libpython3.14-stdlib nodejs python3.14 python3.14-dev
2026-10-26 19:43:14,567 DEBUG Foreign (after rewriting sources): bat git-delta libpython3.14 libpython3.14-dev libpython3.14-stdlib nodejs python3.14 python3.14-dev
2026-10-26 19:43:31,209 DEBUG abort called
...
$ sudo apt purge -y python3.14 python3.14-dev libpython3.14 libpython3.14-dev libpython3.14-stdlib nodejs bat git-delta
$ sudo apt install -y ppa-purge && sudo ppa-purge ppa:deadsnakes/ppa
$ sudo apt autoremove -y
$ sudo apt install -y tmux
$ sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y
$ test -f /var/run/reboot-required && sudo reboot
$ tmux new -s upgrade
$ sudo ufw status | grep -q 'Status: active' && sudo ufw allow 1022/tcp
$ sudo do-release-upgrade
# or
$ sudo LANG=C.UTF-8 LC_ALL=C.UTF-8 do-release-upgrade

post-upgrade

$ curl -fsSL https://deb.nodesource.com/setup_26.x | sudo -E bash - && sudo apt install -y nodejs
$ curl -fsSL https://github.com/marslo/mytools/raw/main/opt/bat/update.sh | bash -
$ sudo apt install -y git-delta

# others
$ npm outdated -g
$ npm update -g
Copyright © marslo 2020-2026 all right reserved,powered by GitbookLast Modified: 2026-10-26 21:29:23

results matching ""

    No results matching ""