0

Trying to upgrade Ubuntu from Terminal:

ada@dada-XPS-13-9310:~$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.
Learn more at https://ubuntu.com/pro
The following packages have been kept back:
  dell-linux-assistant
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
dada@dada-XPS-13-9310:~$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
dada@dada-XPS-13-9310:~$
3

1 Answer 1

1

First, run this command:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y

Then type:

sudo apt-get install update-manager-core

Edit the Update manager file to confirm that your system will get the LTS version in the update:

sudo nano /etc/update-manager/release-upgrades

Now run this command to upgrade:

sudo do-release-upgrade -d

Then follow the onscreen instructions to finish

2
  • The use of -y seems unwise when troubleshooting. You want to read the output before agreeing to the action.
    – user535733
    Sep 9, 2022 at 13:59
  • The use of -d will have different results based upon the calendar. Using that flag today will cause a release-upgrade to fail.
    – user535733
    Sep 9, 2022 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.