Results 1 to 2 of 2

Thread: Partial update of Ubuntu 20.04

  1. #1
    Join Date
    Feb 2019
    Beans
    1

    Lightbulb Partial update of Ubuntu 20.04

    Hi!
    I was attempted to upgrade my Ubuntu Linux 18.04 to 20.04. I did
    Code:
    sudo do-release-upgrade
    at first. Then after the system checking for the updates, there was an instruction to press "Enter" button in order for the update to proceed. I am not really confident with the command line upgrade so didn't proceed with "Enter". I aborted it and go with the GUI update in "Software & Update". Before proceeding the update, I did
    Code:
    sudo apt update
    and
    Code:
    sudo apt upgrade
    (I guess some of the updates for Ubuntu 20.04 were running during this phase). After the commands are done, I carried on with the GUI update. There was an error popping out when the "installation of packages" almost completed. Saying "The upgrade has aborted. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a)." According to the schedule shown on screen, the next phase should be cleaning up and then restarting. But nothing seemed to be running after that. Then I restarted Ubuntu manually. I saw some different icons appeared in my screen and a number of new icons on the menu list. I guess those are from version 20.04. However, there was still chunks of the icons from 18.04 left over in the menu list. For example, I have duplicates of "Files" and "Software & Updates" in the menu list, both the old version and latest version. I am worrying that the update was not completed and not sure what I should be doing next.


    The summarized steps I was conducting for the updates:
    sudo do-release-upgrade (without starting the update run)
    sudo apt update
    sudo apt upgrade
    (GUI) Software & Updates -- proceed with Ubuntu 20.04 update and it stopped at "Installing the upgrades"
    Restart Ubuntu manually

    I am not sure what I should be proceeding next. Should I do apt update & apt upgrade? or dpkg --configure -a? or apt dist-upgrade?
    Last edited by 1009ebwong; December 7th, 2020 at 01:08 AM.

  2. #2
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,824
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Partial update of Ubuntu 20.04

    Have a look at your software sources in /etc/apt/sources.list. Skip the lines starting with #. All lines should refer to focal.

    Then run
    Code:
    sudo apt update
    sudo apt full-upgrade
    That will make sure you've upgraded all software to the latest versions for 20.04.

    There may still be leftovers from 18.04. The ones that were automatically installed can be removed with
    Code:
    sudo apt autoremove --purge
    That still leaves packages marked as manually installed (which included packages installed during the initial install of the system) that were not upgraded for Ubuntu 20.04, but replaced with a package with a different name. They are no longer available for download and install, but may still be installed. You can remove them, if their replacements have been properly installed. I think the simplest way is using the synaptic package manager. Look for status → installed (obsolete or manually installed). Read descriptions and check the dependencies synaptic wants to remove. Some packages may not be obsolete.

    Also look for transitional dummy packages. Those are used when a package changes name. A package with the old name is still around, but only to make the upgrade run smoothly and pull in the package with the new name. Search for the description "dummy" (but note that not all packages with that word in their description are dummy packages, so read the full description).

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •