Wednesday, May 1, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 14896  / 1 Year ago, thu, april 20, 2023, 4:14:32

I'm running lubuntu 10.10, and would like to upgrade to 11.04. I have a very temperamental internet connection, so I would like to download all the packages before running the install.



According to this, there is no easy way to do this. The bug report mentioned in that thread is still open.



My question:
Is there a way to hack do-release-upgrade to only download the packages, kind of like adding a "-d" to apt-get dist-upgrade?



Or is doing it manually the only way to get the result I desire?



If I have to do it manually, are these the steps needed to do it, or am I missing something?




  1. Disable 3rd party repositories in /etc/apt/sources.list and /etc/apt/sources.list.d

  2. Change repositories in /etc/apt/sources.list from maverick to natty

  3. run sudo apt-get update

  4. run sudo apt-get -d dist-upgrade to only download the packages. Do this as many times as necessary until all the packages are downloaded.

  5. run sudo apt-get dist-upgrade to complete the upgrade process


More From » do-release-upgrade

 Answers
7

There is a way to get the update manager to do steps 1-3 for you.




  1. Run sudo update-manager from a terminal window in the GUI (this is important)




    • Start the update manager, tell it you want to upgrade to the next version of Ubuntu, and let it start running. It will disable 3rd party repositories, change the main repositories to the latest version, and then run sudo apt-get update for you.

    • It will then pop up a screen telling you that in order run the update, it will have to remove, install, and upgrade packages.

    • At this stage, go to the terminal window and force-quit the program using CTRL-C. [If you don't do this, and cancel the update via the cancel button of the update manager, it will revert the changes ].


  2. run sudo apt-get -d dist-upgrade from the command line as many times as necessary, until all the packages are downloaded and ready to install


  3. run sudo do-release-upgrade and let it complete the upgrade with the already downloaded packages.


  4. Re-enable 3rd party repositories, and run sudo apt-get update && sudo apt-get upgrade again to update 3rd party repositories to the latest version (make sure the repositories are updated to the latest release of ubuntu)



[#44093] Saturday, April 22, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ippalogu

Total Points: 215
Total Questions: 127
Total Answers: 146

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
;