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.
sudo mkdir -p /media/cdrom
sudo mount -t iso9660 -o loop PATH/TO/ISO /media/cdrom
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.
cdromupgrade command which is on the ISO, it needs to run with
root priviledges, so you need
gksu "sh /media/cdrom/cdromupgrade"
gksu is a graphical frontend to
su, it is a just a way of entering your password graphically to get
root privileges. The two commands are equivalent, they just run
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:
scp email@example.com:/path/to/source /path/to/target
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 (
smb etc), so I can't tell you how to mount it locally. If you have
root access to the local machine you could use
sshfs and mount the directory containing the ISO:
sudo apt-get install fuse-utils sshfs
sudo adduser USER fuse
sshfs firstname.lastname@example.org:/path/to/ISO_DIR /local/mount/point
sudo mount -t iso9660 -o loop /local/mount/point/Ubuntu.iso /media/cdrom
Alternatively, you can log on to the remote machine and install from there (copied directly from here, the author is @KyleBrandt):
- Get the alternate install cd.
- Mount the .iso image or burn it and put it in the cdrom drive: To mount the iso image, first create the /mnt/iso directory with mkdir /mnt/iso and then:
sudo mount ubuntu-8.10-alternate-i386.iso /mnt/iso/
-t iso9660 -o ro,loop=/dev/loop0
- ssh into your remote machine you wish to upgrade:
(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): screen
- Within the screen session, start a text-based cdrom upgrade with the following command:
sudo /mnt/iso/cdromupgrade –frontend=DistUpgradeViewText
- The upgrade will periodically ask you yes/no questions throughout the upgrade, so it is not unattended. If you really wanted it to you could try using the yes command and a pipe to force yes to all, but I wouldn’t recommend it and am not sure if it would work:-) One odd thing is if you type ‘d’ for details it opens the information in the program ‘less’, so if you chose this just press ‘q’ to quit after you are done reading the information.