Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: About LTS, upgrade, dist-upgrade, do-release-upgrade

  1. #1
    Join Date
    Sep 2007
    Beans
    3

    Question About LTS, upgrade, dist-upgrade, do-release-upgrade

    Hi fellas!

    I've been looking for an answer to my questions but can't seem to find any, besides random thoughts and beliefs... So, I'll explain what I think I know and see if anyone can clarify me the rest.

    LTS is a special version released every 2 years offering 5 years of support, meaning the won't be any major or structural changes to the packages in the repositories for that release.

    apt-get upgrade installs new versions of already installed packages if they do not change dependencies, meaning it won't install new packages needed or remove unneeded packages.

    apt-get dist-upgrade will install new packages needed and remove packages that are not needed anymore.

    do-release-upgrade will upgrade to the immediate following version of the currently installed one.

    Questions:

    1. do-release-upgrade on LTS: How will do-release-upgrade behave in LTS versions? Will it upgrade to the next LTS version - i.e. 10.04 to 12.04?
    2. dist-upgrade compatibility with LTS: Will dist-upgrade'ing on an LTS version make it lose any of its LTS-fulness??
    3. Additional thoughts?


    Thanks in advance!

  2. #2
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    Want to see what's going to happen without making any changes? Just add a "-s" to the command.

    http://manpages.ubuntu.com/manpages/...upgrade.8.html

    http://manpages.ubuntu.com/manpages/...apt-get.8.html

  3. #3
    Join Date
    Jan 2008
    Beans
    7,744

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    1. From https://help.ubuntu.com/community/Upgrades

    Upgrade policy

    Check the file /etc/update-manager/release-upgrades. Prompt=normal is needed when upgrading from any version to a newer version, Prompt=never will never upgrade your OS. Prompt=lts will make sure you upgrade from LTS to LTS. You need to be root to edit this file.

    Via the GUI:

    On the Update manager, click on Settings...

    Select the Updates Tab

    Where it says Release Upgrade, Show new distribution releases choose Normal Releases or LTS Releases
    2. I personally only use and recommend 'dist-upgrade' which is also the same action as using the GUI Update Manager.

    For more info: https://help.ubuntu.com/community/UpgradeNotes

  4. #4
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    When I entered sudo do-release-upgrade -s

    I got this:
    Code:
    cavsfan@cavsfan-desktop:~$ sudo do-release-upgrade -s
    Checking for a new ubuntu release
    Done Upgrade tool signature
    Done Upgrade tool
    Done downloading            
    authenticate 'precise.tar.gz' against 'precise.tar.gz.gpg' 
    extracting 'precise.tar.gz'
    [screen is terminating]
    and then this:
    Code:
    Reading cache
    
    Checking package manager
    mount: wrong fs type, bad option, bad superblock on none,
           missing codepage or helper program, or other error
           (for several filesystems (e.g. nfs, cifs) you might
           need a /sbin/mount.<type> helper program)
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    
    
    Sandbox setup failed 
    
    It was not possible to create the sandbox environment. 
    
    
    Preparing the upgrade failed 
    
    Preparing the system for the upgrade failed so a bug reporting 
    process is being started. 
    === Command terminated with exit status 1 (Thu Feb  7 10:58:16 2013) ===
    Is this going to prevent me from upgrading from 10.04 to 12.04?

  5. #5
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    You can still go ahead and do-release-upgrade without upgrading.

    Go ahead and enter the command and it will stop at:

    Continue [yN] Details [d]

    You can either continue from there or see the details (d).

  6. #6
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    Quote Originally Posted by ibjsb4 View Post
    You can still go ahead and do-release-upgrade without upgrading.

    Go ahead and enter the command and it will stop at:

    Continue [yN] Details [d]

    You can either continue from there or see the details (d).
    ^^ That was bad advice. It did not give me any option to continue Y/n. It just changed all my software sources from lucid to precise and disabled others
    then paused and said press Enter to continue. I had to kill the terminal to prevent it from going ahead and doing the upgrade.
    And I most certainly do NOT want to upgrade at this time.
    Now I have to change the precise back to lucid, enable the sources it disabled and hope that is all it did.

    I hope no one else tries this.

    I'll post back my results.

  7. #7
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    I do not know why that happen, but I am sorry.

    I tried it myself before posting, that is why I knew exactly what it said.

    But again sorry

  8. #8
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    Checking package manager
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Building data structures... Done

    Calculating the changes

    Calculating the changes

    Do you want to start the upgrade?


    12 packages are going to be removed. 317 new packages are going to be
    installed. 1093 packages are going to be upgraded.

    You have to download a total of 599 M. This download will take about
    8 minutes with your connection.

    Installing the upgrade can take several hours. Once the download has
    finished, the process cannot be canceled.

    Continue [yN] Details [d]

  9. #9
    Join Date
    Oct 2006
    Beans
    58,282

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    Quote Originally Posted by ast3citos View Post
    LTS is a special version released every 2 years offering 5 years of support, meaning the won't be any major or structural changes to the packages in the repositories for that release.
    Not strictly true, at least not any more.

    12.04.2 will see a backported Hardware Enablement stack. Mainly a new kernel and graphics subsystem.

  10. #10
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: About LTS, upgrade, dist-upgrade, do-release-upgrade

    Quote Originally Posted by ibjsb4 View Post
    I do not know why that happen, but I am sorry.

    I tried it myself before posting, that is why I knew exactly what it said.

    But again sorry
    We're good! I got it back like it was! Whew! I don't understand why it did that myself if you tried it before posting.

    It was a good thing I knew what to do though.
    In terminal I entered sudo sed -i s'/precise/lucid/g' /etc/apt/sources.list.
    That changed it back to lucid and then I had to uncomment out a few things at the bottom.
    Then in /etc/apt/sources.list.d here is what I had:
    Code:
    cavsfan@cavsfan-desktop:/etc/apt/sources.list.d$ ls -l
    total 92
    -rw-r--r-- 1 root root 104 2013-02-07 15:24 cairo-dock-team-ppa-lucid.list
    -rw-r--r-- 1 root root  67 2013-02-07 15:24 cairo-dock-team-ppa-lucid.list.distUpgrade
    -rw-r--r-- 1 root root  67 2012-10-30 10:20 cairo-dock-team-ppa-lucid.list.save
    -rw-r--r-- 1 root root   0 2012-05-12 18:21 conky-companions-ppa-lucid.list
    -rw-r--r-- 1 root root  68 2012-05-12 18:21 conky-companions-ppa-lucid.list.save
    -rw-r--r-- 1 root root  97 2013-02-07 15:24 getdeb.list
    -rw-r--r-- 1 root root  62 2013-02-07 15:24 getdeb.list.distUpgrade
    -rw-r--r-- 1 root root  55 2012-10-30 10:20 getdeb.list.save
    -rw-r--r-- 1 root root 210 2013-02-07 15:24 google-earth.list
    -rw-r--r-- 1 root root 175 2013-02-07 15:24 google-earth.list.distUpgrade
    -rw-r--r-- 1 root root 175 2012-10-30 10:20 google-earth.list.save
    -rw-r--r-- 1 root root   0 2012-05-07 11:56 matthaeus123-mrw-gimp-svn-lucid.list
    -rw-r--r-- 1 root root  73 2012-05-07 11:56 matthaeus123-mrw-gimp-svn-lucid.list.save
    -rw-r--r-- 1 root root 304 2013-02-07 15:24 medibuntu.list
    -rw-r--r-- 1 root root 269 2013-02-07 15:24 medibuntu.list.distUpgrade
    -rw-r--r-- 1 root root 269 2012-10-30 10:20 medibuntu.list.save
    -rw-r--r-- 1 root root   0 2012-05-07 10:05 otto-kesselgulasch-gimp-lucid.list
    -rw-r--r-- 1 root root  71 2012-05-07 10:05 otto-kesselgulasch-gimp-lucid.list.save
    -rw-r--r-- 1 root root  98 2013-02-07 15:24 tualatrix-ppa-lucid.list
    -rw-r--r-- 1 root root  61 2013-02-07 15:24 tualatrix-ppa-lucid.list.distUpgrade
    -rw-r--r-- 1 root root  61 2012-10-30 10:20 tualatrix-ppa-lucid.list.save
    -rw-r--r-- 1 root root 100 2013-02-07 15:24 vincent-c-conky-lucid.list
    -rw-r--r-- 1 root root  63 2013-02-07 15:24 vincent-c-conky-lucid.list.distUpgrade
    -rw-r--r-- 1 root root  80 2013-02-07 15:24 winff.list
    -rw-r--r-- 1 root root  43 2013-02-07 15:24 winff.list.distUpgrade
    -rw-r--r-- 1 root root  43 2012-10-30 10:20 winff.list.save
    I had to edit the red files and change the versions and delete the blue files.

    Then I still got this error:
    Code:
    sudo apt-get update 
    E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the list directory
    But, after rebooting I am back to normal.

    So, ibjsb4 we are good! I am going to hang on to Lucid until April.

    Maybe that error when I tried sudo do-release-upgrade -s was a sign. I don't know but, all is well.

Page 1 of 2 12 LastLast

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
  •