Created
August 18, 2019 14:22
-
-
Save robsonandradev/40dc050abf66cf28d86bfecf430ed1de to your computer and use it in GitHub Desktop.
Script to upgrade ubuntu distro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update -y && sudo apt upgrade -y | |
sudo apt dist-upgrade | |
sudo apt autoremove | |
# Configure the release upgrader. Open and edit the /etc/update-manager/release-upgrades file | |
# and ensure that the Prompt variable is set to normal | |
# Default behavior for the release upgrader. | |
#[DEFAULT] | |
# Default prompting behavior, valid options: | |
# | |
# never - Never check for a new release. | |
# normal - Check to see if a new release is available. If more than one new | |
# release is found, the release upgrader will attempt to upgrade to | |
# the release that immediately succeeds the currently-running | |
# release. | |
# lts - Check to see if a new LTS release is available. The upgrader | |
# will attempt to upgrade to the first LTS release available after | |
# the currently-running one. Note that this option should not be | |
# used if the currently-running release is not itself an LTS | |
# release, since in that case the upgrader won't be able to | |
# determine if a newer release is available. | |
#Prompt=normal | |
sudo do-release-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo do-release-upgrade
works to 18.04 version.using ubuntu 19.04 we should use
sudo do-release-upgrade -d
.