Difference between revisions of "Upgrade Ubuntu Release"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | https://askubuntu.com/questions/1214292/upgrade-path-from-16-04-to-20-04-lts-without-gui-change | ||
+ | ``` | ||
+ | sudo apt update && sudo apt upgrade | ||
+ | sudo reboot | ||
+ | sudo do-release-upgrade -c | ||
+ | sudo apt-get dist-upgrade | ||
+ | sudo do-release-upgrade -f DistUpgradeViewNonInteractive | ||
+ | # use yes bash command for Configuration file '/etc/sysctl.conf' | ||
+ | ``` | ||
+ | |||
+ | |||
+ | # Notes | ||
+ | ``` | ||
+ | do-release-upgrade --frontend=DistUpgradeViewNonInteractive --proposed --allow-third-party | ||
+ | do-release-upgrade --frontend=DistUpgradeViewNonInteractive --allow-third-party --mode=desktop --proposed | ||
+ | ``` | ||
+ | |||
+ | Upgrade to next release | ||
+ | ``` | ||
+ | sudo do-release-upgrade | ||
+ | # sudo do-release-upgrade -d # development version by adding -d | ||
+ | ``` | ||
+ | |||
+ | |||
``` | ``` | ||
#!/bin/bash | #!/bin/bash | ||
Line 26: | Line 50: | ||
``` | ``` | ||
# Debian | # Debian | ||
+ | sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list | ||
sudo apt update && sudo apt -y dist-upgrade | sudo apt update && sudo apt -y dist-upgrade | ||
− | |||
``` | ``` | ||
Line 46: | Line 70: | ||
``` | ``` | ||
sudo do-release-upgrade -d will force upgrade from Ubuntu 20.04 LTS to Ubuntu 20.04 LTS. In case you receive an "Upgrades to the development release are only available from the latest supported release." message, make sure that release upgrader default behavior is set to ltswithin /etc/update-manager/release-upgrades | sudo do-release-upgrade -d will force upgrade from Ubuntu 20.04 LTS to Ubuntu 20.04 LTS. In case you receive an "Upgrades to the development release are only available from the latest supported release." message, make sure that release upgrader default behavior is set to ltswithin /etc/update-manager/release-upgrades | ||
+ | ``` | ||
+ | |||
+ | https://askubuntu.com/questions/113301/how-to-remove-all-i386-packages-from-ubuntu-64bit | ||
+ | ``` | ||
+ | sudo aptitude purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'` | ||
+ | sudo apt-get purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'` | ||
+ | dpkg --print-foreign-architectures | ||
+ | ``` | ||
+ | |||
+ | # Unattended | ||
+ | |||
+ | The following command upgrades to the new stable release without prompts: | ||
+ | ``` | ||
+ | do-release-upgrade -f DistUpgradeViewNonInteractive | ||
+ | ``` | ||
+ | The following command upgrades to the current development release without prompts: | ||
+ | ``` | ||
+ | do-release-upgrade -d -f DistUpgradeViewNonInteractive | ||
``` | ``` | ||
Line 51: | Line 93: | ||
- https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa | - https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa | ||
- https://help.ubuntu.com/lts/serverguide/installing-upgrading.html | - https://help.ubuntu.com/lts/serverguide/installing-upgrading.html | ||
+ | - https://askubuntu.com/questions/250733/can-i-do-a-silent-or-unattended-release-upgrade |
Latest revision as of 19:38, 25 April 2023
https://askubuntu.com/questions/1214292/upgrade-path-from-16-04-to-20-04-lts-without-gui-change
sudo apt update && sudo apt upgrade sudo reboot sudo do-release-upgrade -c sudo apt-get dist-upgrade sudo do-release-upgrade -f DistUpgradeViewNonInteractive # use yes bash command for Configuration file '/etc/sysctl.conf'
Notes
do-release-upgrade --frontend=DistUpgradeViewNonInteractive --proposed --allow-third-party do-release-upgrade --frontend=DistUpgradeViewNonInteractive --allow-third-party --mode=desktop --proposed
Upgrade to next release
sudo do-release-upgrade # sudo do-release-upgrade -d # development version by adding -d
#!/bin/bash set -e # https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver sudo apt update -y sudo apt upgrade -y sudo apt dist-upgrade -y sudo apt autoremove -y sudo apt install update-manager-core -y sudo reboot sudo do-release-upgrade # lxc exec NAME -- script /dev/null -c do-release-upgrade # container:~# script /dev/null # do-release-upgrade # sudo do-release-upgrade -d # BEWARE If dev version is wanted but BEWARE
# Debian sudo sed -i 's/bionic/focal/g' /etc/apt/sources.list sudo apt update && sudo apt -y dist-upgrade
a2enmod php7.2
You may need to update postgres and other apps
sudo pg_dropcluster 10 main --stop sudo pg_upgradecluster 9.5 main sudo pg_dropcluster 9.5 main apt purge postgresql-9.5
sudo do-release-upgrade -d will force upgrade from Ubuntu 20.04 LTS to Ubuntu 20.04 LTS. In case you receive an "Upgrades to the development release are only available from the latest supported release." message, make sure that release upgrader default behavior is set to ltswithin /etc/update-manager/release-upgrades
https://askubuntu.com/questions/113301/how-to-remove-all-i386-packages-from-ubuntu-64bit
sudo aptitude purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'` sudo apt-get purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'` dpkg --print-foreign-architectures
Unattended
The following command upgrades to the new stable release without prompts:
do-release-upgrade -f DistUpgradeViewNonInteractive
The following command upgrades to the current development release without prompts:
do-release-upgrade -d -f DistUpgradeViewNonInteractive