« 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 | 15 Comments »
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.
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.
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
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)”.
November 9th, 2024 at 04:57
… [Trackback]
[…] Here you will find 77337 more Information to that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 9th, 2024 at 06:52
… [Trackback]
[…] Read More Information here on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 11th, 2024 at 09:26
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 12th, 2024 at 10:37
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 12th, 2024 at 17:06
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 12th, 2024 at 22:32
… [Trackback]
[…] Here you can find 93115 more Info on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 19th, 2024 at 03:11
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
November 28th, 2024 at 04:24
… [Trackback]
[…] There you can find 6550 additional Information on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
December 7th, 2024 at 01:33
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
December 19th, 2024 at 04:03
… [Trackback]
[…] Here you can find 2743 more Info on that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]
December 20th, 2024 at 22:23
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2009/07/10/dynamically-upgrade-livecd-packages/ […]