I have ubuntu 12.04 installed on my system. I want to upgrade it to ubuntu 13.04. I want to do this upgrade using an iso image of ubuntu 13.04.
I tried this Solution
But it didn't work for me.
After running these command I didn't get any alerts about updating. Also I don't understand the gksu
part of the solution.
Here are the steps I tried:
sudo mount -t iso9660 -o loop PATH/TO/ISO /cdrom
then
sudo /cdrom/cdromupgrade
Read more: http://linuxpoison.blogspot.tw/2011/06/how-to-upgrade-ubuntu-using-alternate.html#ixzz2SFMqlOPx
I also wanted to know, If I can do this using a networked computer. By this I mean the iso
file is on some other computer.
Thank you.
Best Answer
The basic steps you need to do in order to upgrade from an ISO image are
Download the Alternate ISO.
Mount the ISO in the
/media/cdrom
directory. First create the directory if it doesn't exist, then mount the image.The solution you posted assumes that as soon as you mount the ISO, it will automatically cause a dialog to appear asking you whether to upgrade. This may or may not happen on your system depending on the Desktop Environment you are using and its autorun settings. If it doesn't, launch the upgrader manually as described below.
Run the
cdromupgrade
command which is on the ISO, it needs to run withroot
priviledges, so you needsudo
.or
gksu
is a graphical frontend tosu
, it is a just a way of entering your password graphically to getroot
privileges. The two commands are equivalent, they just runcdromupgrade
.You can use a remote ISO but it is probably a better idea to copy it to your local machine, then mount it as described above:
If you need to use a remote image, you will still need to mount it locally. I don't know what kind of access you have to the remote server (
ssh
,ftp
,nfs
,smb
etc), so I can't tell you how to mount it locally. If you haveroot
access to the local machine you could usesshfs
and mount the directory containing the ISO:Alternatively, you can log on to the remote machine and install from there (copied directly from here, the author is @KyleBrandt):
sudo mount ubuntu-8.10-alternate-i386.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0
ssh remote-machine
(Optional, but highly recommended): Start a screen session so if you get disconnected it won’t interrupt the upgrade (read how to use screen here): screensudo /mnt/iso/cdromupgrade –frontend=DistUpgradeViewText