Compdigitec Labs

« | Home | »

Dynamically upgrade LiveCD packages

By admin | July 10, 2009

If you attempt to follow APCMAG’s dual boot tutorial with an older version of the Ubuntu Live CD, you may unknowingly install an old version of GRUB. This is fine if yournewer Ubuntu installation uses paritions that an older version of GRUB will recognize, but with new partitions like ext4 the old Ubuntu Live CD may cause problems.

Old Ubuntu Live CD

In orderto solve this problem, you need to dynamically upgrade the packages on your Live CD. However, you do not need to butn a new version of the CD or modify the CD. This is because a “LiveCD system” is just really a regular Ubuntu system loaded onto a CD and memory and then booted from. Note that upgraded LiveCD packages only last the current session – they are eased from memory after a restart.

  1. Boot the Live CD (or make sure you are in the Live CD environment).
  2. Open a terminal.
  3. Type in “sed ‘s/cdversion/newversion/’ /etc/apt/sources.list > /tmp/sources.list“. (Replace cdversion with the codename of the Ubuntu CD – e.g. hardy) (Replace newversion with the codename of the version of the packages you want to upgrade to – typically the latest Ubuntu version – e.g. jaunty)
  4. Type in “sudo /bin/cp /tmp/sources.list /etc/apt/sources.list
    ” No password is required.
  5. Type in “sudo apt-get update” to update packages.
  6. Now you can upgrade whatever packages you want to upgrade. For example, to upgrade GRUB, type in “sudo apt-get install grub“. To upgrade GParted, type in “sudo apt-get install gparted“. Simply replace “grub” or “gparted” with the package you want to upgrade.

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 55 Comments »

55 Responses to “Dynamically upgrade LiveCD packages”

  1. More hints Says:
    May 8th, 2026 at 04:18

    Hey! Do you know if they make any plugins to safeguard against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?

  2. Shakergainske SMM Panel Says:
    May 8th, 2026 at 15:40

    Heya! I know this is kind of off-topic however I needed to ask.
    Does operating a well-established blog like yours require a large
    amount of work? I’m brand new to running a blog however I do write in my journal
    every day. I’d like to start a blog so I can easily share my personal experience and feelings
    online. Please let me know if you have any recommendations or tips for new aspiring bloggers.

    Thankyou!

  3. Shakergainske SMM Panel Says:
    May 8th, 2026 at 17:02

    Thanks for the marvelous posting! I really enjoyed reading it, you’re a great author.
    I will be sure to bookmark your blog and will eventually
    come back later in life. I want to encourage one to continue your great job, have a
    nice day!

  4. SMM Panel South Africa Says:
    May 8th, 2026 at 18:46

    Thanks for your marvelous posting! I definitely enjoyed
    reading it, you might be a great author. I will be sure to bookmark your blog and definitely will come back
    later on. I want to encourage you continue your great work, have a nice afternoon!

  5. Best SMM Panel Says:
    May 10th, 2026 at 09:43

    You actually make it seem so easy with your presentation but I find this topic to be really something
    which I think I would never understand. It seems
    too complex and extremely broad for me. I am looking forward for your
    next post, I will try to get the hang of it!

Comments