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 | 31 Comments »

31 Responses to “Dynamically upgrade LiveCD packages”

  1. Bruce Erlichman Says:
    August 5th, 2009 at 15:37

    Have booted from version 0.4.5 gparted on LiveCD and want to replace the older version of gparted on my Dell Mini 9 of with 0.4.5 version. Usual upgrade procedure only takes my up to 0.3.4. Does this article address my problem? Seems that it only holds for replacing whole OS, such as Hardy to Jaunty.
    Does cdversion refer to the OS or the package, gparted in my case?
    Much thanks.

  2. admin Says:
    August 5th, 2009 at 23:10

    @Bruce:

    The article is was designed to work only with Ubuntu (and possibly other Debian-based LiveCDs). You will not be able to dynamically upgrade your gparted Live CD but you can upgrade your grub using an older Ubuntu CD. In this regards, cdversion would be the version of Ubuntu that the old CD contains.

  3. Bruce Erlichman Says:
    August 7th, 2009 at 11:19

    Sorry, forgot to mention that I do, indeed, have Ubuntu on my Dell Mini 9. Does this make a difference? To clarify, can I use LiveCD to change version 3.4 of gparted currently on my Mini 9 to version 4.5? Then I wouldn’t need to boot from the LiveCD. Hope this is clear(er)

    Bruce

  4. admin Says:
    August 7th, 2009 at 12:01

    @Bruce:

    Yes, that is the intended behaviour. You would, as stated in the above article, boot from the Ubuntu LiveCD and then follow the above instructions. Then you would upgrade your grub package (sudo apt-get install grub) and then go and install grub again with “sudo grub” followed by “root (hdx,y)” (where x,y is the partition that you installed Ubuntu to) and “setup (hd0)”.

  5. WismaBet Alternatif Says:
    June 29th, 2026 at 01:55

    Appreciating thе tіme and effort ʏⲟu ρut into your website and detailed information у᧐u provide.
    Іt’s nice to come acrօss a blog еverʏ oncе in a whiⅼe that isn’t tһе same
    old rehashed material. Great read! I’vе bookmarked ʏoսr site
    and I’m including үoսr RSS feeds to mү Google
    account.

    Feel free tto surf tⲟ my web blog: WismaBet Alternatif

  6. 매직미러초이스 Says:
    July 3rd, 2026 at 11:12

    I am sure this article has touched all the internet visitors, its really really good article
    on building up new weblog.

  7. 광안리풀싸롱 Says:
    July 8th, 2026 at 00:52

    Outstanding story there. What occurred after? Thanks!

  8. private runescape servers Says:
    July 8th, 2026 at 13:33

    Excellent beat ! I wish to apprentice at the
    same time as you amend your website, how could i subscribe for a blog web site?
    The account aided me a applicable deal. I had been tiny bit familiar of
    this your broadcast offered bright transparent concept

  9. horse gelatin recipe Says:
    July 10th, 2026 at 02:43

    Wow, wonderful blog layout! How lengthy have you been blogging for?
    you made blogging glance easy. The full glance of your site is wonderful, as neatly
    as the content!

  10. horse gelatin trick Says:
    July 10th, 2026 at 04:28

    Greetings from Los angeles! I’m bored to tears at work so I decided
    to check out your blog on my iphone during lunch break. I enjoy the info you provide here and
    can’t wait to take a look when I get home. I’m surprised at how fast your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyhow, good site!

  11. watch now Says:
    July 11th, 2026 at 09:22

    Howdy, i read your blog from time to time and i own a similar one and i was just curious if you get
    a lot of spam comments? If so how do you prevent it, any plugin or anything you can recommend?
    I get so much lately it’s driving me mad so any assistance is very much appreciated.

  12. horse gelatin Says:
    July 11th, 2026 at 13:29

    Wonderful blog you have here but I was curious if you knew
    of any discussion boards that cover the same topics talked about here?
    I’d really love to be a part of community where I can get
    feedback from other knowledgeable people
    that share the same interest. If you have any suggestions, please let me know.

    Kudos!

  13. horse gelatin trick ingredientes Says:
    July 13th, 2026 at 05:58

    Excellent way of explaining, and pleasant paragraph
    to get facts concerning my presentation focus, which i am going to
    deliver in university.

  14. horse gelatin Says:
    July 13th, 2026 at 15:14

    Heya i’m for the primary time here. I came across this board and I find It truly helpful
    & it helped me out a lot. I’m hoping to give one
    thing back and help others like you helped me.

  15. horse gelatin recipe Says:
    July 16th, 2026 at 08:46

    We are a group of volunteers and starting a new scheme in our community.
    Your website provided us with valuable information to work on. You’ve done a formidable job and our entire community will be grateful to you.

  16. get the recipe Says:
    July 18th, 2026 at 05:20

    What’s up to every one, the contents present at this web site are genuinely awesome for people knowledge, well, keep up the nice work fellows.

  17. horse gelatin for men Says:
    July 18th, 2026 at 07:13

    Ahaa, its pleasant dialogue about this paragraph here at this web site, I have read
    all that, so at this time me also commenting at this place.

  18. zplatform.Ai Says:
    July 18th, 2026 at 20:53

    Hi, i feel that i noticed you visited my website so i came to
    return the favor?.I am attempting to to find issues to enhance my site!I assume its adequate to use a few of your
    ideas!!

  19. horse gelatin trick Says:
    July 21st, 2026 at 20:09

    I blog frequently and I genuinely thank you for your content.
    This article has really peaked my interest.
    I am going to take a note of your site and keep checking for new details about
    once per week. I opted in for your RSS feed as well.

  20. Maryellen Says:
    July 24th, 2026 at 11:17

    ข้อมูลชุดนี้ มีประโยชน์มาก ค่ะ
    ดิฉัน ได้อ่านบทความที่เกี่ยวข้องกับ เนื้อหาในแนวเดียวกัน
    สามารถอ่านได้ที่ Maryellen
    สำหรับใครกำลังหาเนื้อหาแบบนี้
    มีตัวอย่างประกอบชัดเจน
    ขอบคุณที่แชร์ คอนเทนต์ดีๆ
    นี้
    และอยากเห็นบทความดีๆ แบบนี้อีก

  21. конвеєрна стрічка купити Says:
    July 24th, 2026 at 17:49

    Hey just wanted to give you a quick heads up.
    The text in your article seem to be running off the screen in Opera.
    I’m not sure if this is a formatting issue or something to do with browser compatibility
    but I thought I’d post to let you know. The design look great though!

    Hope you get the problem fixed soon. Cheers
    Promo: 3PhdaMIuyGTCpRm2

    my web-site конвеєрна стрічка купити

  22. Nate Says:
    July 26th, 2026 at 23:43

    ข้อมูลชุดนี้ ให้ข้อมูลดี ค่ะ
    ผม ไปอ่านเพิ่มเติมเกี่ยวกับ เรื่องที่เกี่ยวข้อง
    ซึ่งอยู่ที่ Nate
    เผื่อใครสนใจ
    มีตัวอย่างประกอบชัดเจน
    ขอบคุณที่แชร์ คอนเทนต์ดีๆ นี้
    จะรอติดตามเนื้อหาใหม่ๆ ต่อไป

  23. конвеєрна стрічка Says:
    July 27th, 2026 at 15:42

    Wonderful, what a blog it is! This blog gives helpful information to us, keep it up.

    Promo: C4bjWthY7dcX8qi

    Also visit my website конвеєрна стрічка

  24. freelancing tamil Says:
    July 29th, 2026 at 16:11

    Hello, Neat post. There’s a problem along with
    your website in web explorer, would test this? IE still is the
    marketplace leader and a large section of other folks will miss
    your fantastic writing because of this problem.

  25. no refusal payday loans canada Says:
    July 30th, 2026 at 12:59

    Very nice article. I certainly love this website. Keep writing!

  26. конвеєрна стрічка Says:
    July 30th, 2026 at 23:04

    Pretty nice post. I just stumbled upon your blog and wanted to
    say that I have truly enjoyed browsing your blog posts.
    In any case I will be subscribing to your feed and I hope you write again soon!
    Promo: 3PhdaMIuyGTCpRm2

    Have a look at my homepage – конвеєрна стрічка

  27. ragnarok online private server Says:
    July 31st, 2026 at 04:53

    I always spent my half an hour to read this blog’s content every day along with
    a cup of coffee.

  28. แบรนด์ 75rh25 Says:
    August 1st, 2026 at 03:59

    โพสต์นี้ อ่านแล้วได้ความรู้เพิ่ม ค่ะ
    ดิฉัน เพิ่งเจอข้อมูลเกี่ยวกับ เรื่องที่เกี่ยวข้อง
    ที่คุณสามารถดูได้ที่ แบรนด์ 75rh25
    เผื่อใครสนใจ
    มีตัวอย่างประกอบชัดเจน
    ขอบคุณที่แชร์ คอนเทนต์ดีๆ นี้
    และอยากเห็นบทความดีๆ แบบนี้อีก

  29. bad credit loans canada Says:
    August 1st, 2026 at 14:07

    I seriously love your blog.. Pleasant colors & theme.
    Did you create this amazing site yourself? Please reply back
    as I’m attempting to create my very own blog and want to know where you got this from
    or exactly what the theme is called. Cheers!

  30. topvotebot Says:
    August 2nd, 2026 at 00:48

    Hello to every body, it’s my first pay a quick visit of this web site;
    this webpage includes remarkable and truly excellent data designed for readers.

  31. ranking site promotion Says:
    August 2nd, 2026 at 10:29

    Pretty section of content. I just stumbled upon your weblog and in accession capital to assert
    that I get actually enjoyed account your blog posts.
    Any way I will be subscribing to your augment
    and even I achievement you access consistently rapidly.

Comments