« Switch Windows XP licensing type and/or Service Pack with CD | Home | Using (X)HTML entities in plain XML files »
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.
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.
- Boot the Live CD (or make sure you are in the Live CD environment).
- Open a terminal.
- 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)
- Type in “sudo /bin/cp /tmp/sources.list /etc/apt/sources.list
” No password is required. - Type in “sudo apt-get update” to update packages.
- 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 | 70 Comments »


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?
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!
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!
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!
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!
May 12th, 2026 at 12:58
Hello just wanted to give you a quick heads up.
The words in your article seem to be running off the
screen in Internet explorer. I’m not sure if this is a format
issue or something to do with internet browser compatibility but I figured I’d post to let you
know. The style and design look great though! Hope you get the
problem solved soon. Many thanks
May 12th, 2026 at 13:07
constantly i used to read smaller content which as well clear their motive, and that is also happening
with this article which I am reading now.
May 15th, 2026 at 00:35
Wow! In the end I got a webpage from where I be able to genuinely obtain valuable data
regarding my study and knowledge.
May 19th, 2026 at 02:54
Hey I am so excited I found your web site, I really found
you by accident, while I was browsing on Bing for something else,
Anyhow I am here now and would just like to say
thanks for a tremendous post and a all round exciting
blog (I also love the theme/design), I don’t have time to
look over it all at the minute but I have book-marked it and also added your
RSS feeds, so when I have time I will be back to read much more, Please do keep up the great b.
May 19th, 2026 at 07:15
I’ve been browsing on-line more than three hours nowadays, but
I by no means found any interesting article like yours.
It’s lovely value enough for me. In my view, if all website owners and bloggers made
just right content as you probably did, the web will be a lot more helpful than ever
before.
May 20th, 2026 at 09:36
Hmm is anyone else experiencing problems with the images on this blog loading?
I’m trying to find out if its a problem on my end or if
it’s the blog. Any responses would be greatly appreciated.
May 23rd, 2026 at 19:04
Nice post. I learn something new and challenging on blogs I stumbleupon every day.
It’s always useful to read through content from other writers and use a little something from other sites.
May 26th, 2026 at 14:24
I must thank you for the efforts you’ve put in writing this site.
I’m hoping to see the same high-grade content from you later on as well.
In fact, your creative writing abilities has encouraged me to get
my own blog now 😉
May 27th, 2026 at 01:06
Right here is the perfect blog for everyone
who really wants to understand this topic.
You understand a whole lot its almost hard to argue with you (not that I personally
will need to…HaHa). You definitely put a fresh spin on a topic that’s been discussed for decades.
Wonderful stuff, just wonderful!
May 27th, 2026 at 22:05
I am curious to find out what blog platform you are working with?
I’m experiencing some small security problems with my latest site and I would like to find
something more risk-free. Do you have any solutions?
May 29th, 2026 at 01:46
I constantly spent my half an hour to read this weblog’s content every day along
with a cup of coffee.
May 29th, 2026 at 14:16
Hello! I know this is kinda off topic however I’d figured I’d ask.
Would you be interested in exchanging links or maybe guest authoring a blog article or vice-versa?
My site covers a lot of the same subjects as yours and I feel we could greatly benefit from each
other. If you happen to be interested feel free
to send me an e-mail. I look forward to hearing from you!
Excellent blog by the way!
May 31st, 2026 at 08:27
Spot on with this write-up, I honestly believe this site needs a great
deal more attention. I’ll probably be back again to see more,
thanks for the info!
May 31st, 2026 at 15:55
Great goods from you, man. I have understand your
stuff previous to and you’re just extremely excellent.
I really like what you have acquired here, really like what you
are saying and the way in which you say it. You make it entertaining and you still care for to
keep it smart. I can not wait to read far more from you. This is
actually a tremendous site.
June 1st, 2026 at 11:43
เนื้อหานี้ มีประโยชน์มาก ค่ะ
ดิฉัน ไปอ่านเพิ่มเติมเกี่ยวกับ เรื่องที่เกี่ยวข้อง
ซึ่งอยู่ที่ Wilfred
ลองแวะไปดู
เพราะอธิบายไว้ละเอียด
ขอบคุณที่แชร์ บทความคุณภาพ นี้
และหวังว่าจะได้เห็นโพสต์แนวนี้อีก