Experience Level: Beginner
Prerequisites: Ability to use a command line
With the release of Bodhi 1.2 we get asked frequently if it is possible to upgrade to Bodhi 1.2 from Bodhi 1.1 without having to reinstall. The answer is yes and it is relatively easy. Here I describe how to do a full upgrade from Bodhi 1.1 to 1.2 both online as well as offline.
First we need to update our sources. Open a terminal and execute the following command:
sudo apt-get update
Bodhi 1.2 introduces some new Enlightenment themes. Installation of the themes is not necessary, but the themes are rather nice so if you wish to install them also:
sudo apt-get install bodhi-theme-angelic2 bodhi-theme-passion bodhi-theme-miguel2 bodhi-theme-mystery bodhi-theme-smoke bodhi-theme-blue-angle
Now do a dist-upgrade:
sudo apt-get dist-upgrade
This command will first display the list of packages for which newer versions are available. You may accept the entire list by entering “Y”, or decline with “N”. To upgrade of course enter “Y”.
Note: If you get a dpkg error with the package libjack, you will need to see this forum post. Hopefully we can resolve this issue in time.
Aside from the possible libjack issue, there will be four more questions you will need to answer when you run the dist-upgrade command. Three of the questions is because the package base-files has been updated. These questions will ask you if you wish to install the package maintainer's configuration files or keep your currently installed version. Unless you know what you are doing the safest answer is always the default, keep the currently installed versions. In other words, just press Enter.
The remaining question is when the package grub-pc is installed and configured. You will see a screen like shown below. At this point again the safest option is to choose the default, which is high-lighted in red: Keep the local version currently installed.
Hit Tab one time and Ok should highlighted in red. Hit Enter to select and the installation will continue.
Now once the dist-upgrade has completed, there are a few packages in Bodhi 1.2 not found in Bodhi 1.1 by default so we must add them:
sudo apt-get install bodhi-e17guide engage language-selector libcanberra-gtk-module libcanberra-gtk0 libcanberra0 libcheese-gtk18 libtdb1 libvorbisfile3 penguins tiling wireless-tools xdotool
Bodhi 1.2 has added a few software mirrors to the sources.list file. One is a mirror for getdep and I recommend you add that, as getdeb seems to be down frequently. To add these mirrors to your sources.list file, execute the following commands. Note: these commands will not change any other third party repos you may have added.
sudo sed "s/deb http:\/\/archive.getdeb.net\/ubuntu lucid-getdeb apps games/## GetDeb Repo - Bodhi Mirrors\n# US\ndeb http:\/\/getdeb.bodhilinux.com\/getdeb lucid-getdeb apps games\n# German\n#deb http:\/\/getdeb.nsroot.cz.cc\/getdeb lucid-getdeb apps games/" -i /etc/apt/sources.list sudo sed "s/deb http:\/\/packages.bodhilinux.com\/bodhi lucid main/## Bodhi Linux Repo\n# US Mirror\ndeb http:\/\/packages.bodhilinux.com\/bodhi lucid main\n# German Mirror\n#deb http:\/\/nexus.nsroot.cz.cc\/bodhi lucid main\n# Swedish Mirror\n#deb http:\/\/mirrorc0re.se\/bodhi lucid main\n/" -i /etc/apt/sources.list
Now we need to update our sources one more time.
sudo apt-get update
In order to keep our system clean it is recommended you run the following command:
sudo apt-get autoremove && sudo apt-get autoclean
Upon completion of these steps you need to reboot.
To update offline you need to download the Servicepack2 bod and if so desired the Bodhi 1.2 theme pack (same page).
Once you have downloaded the .bod file or files you want (make sure you note where you downloaded it to), you install these .bod files the same way as any .bod files.
For the servicepack2.bod, we can install either :
Either bod can be installed either Graphically or via the Command Line, but below I consider installing servicepack2.bod as it is necessary to do the upgrade. The theme pack bod is installed in a similar fashion.
Open PCManFM (the default file manager in Bodhi Linux) and navigate to the directory where you downloaded the file Right-click on the file and choose Properties.
Under the Permissions tab tick the box Make the file executable then click OK.
Then just double-click the file in the PCManFM window. You will be prompted what action to take; choose Execute
You will be asked to confirm the installation with a rather dire warning:
Click Yes to continue the upgrade. Next your will be asked to enter your password, after which the installation will begin. You will not be asked about configuring any configuration files with the exception of grub-pc. This is because the .bod installation script forces the acceptance of the default values for these configuration files. But you will be ask about configuring grub-pc:
It is safest just to click Yes here. When the installation of the packages is complete you will be ask if you wish to update your sources.list:
Click either Yes or No and finally a dialog will appear informing you of the need to reboot.
It is safest to simply reboot after this installation, and note that upon booting up you will have to choose a profile and a theme again and will have lost any customizations you have made to your enlightenment profiles. Your old profiles are actually backed up to ~/.e_old. Sometimes old profiles can cause problems with an enlightenment update of this nature, so it is suggested you just redo any customizations you had instead of trying to restore your old profiles.
After rebooting and if you have an Internet connection you may wish to do as above:
sudo apt-get update
And to keep our system clean it is recommended you run the following command:
sudo apt-get autoremove && sudo apt-get autoclean
Open a Terminal and cd to the directory where the file was downloaded. To change the permission to allow execution, type:
chmod 755 servicepack2.bod
To run the installer type:
./servicepack2.bod
The same confirmation/password windows from the GUI install will appear now, and end by informing you of the need to reboot.
Video tutorial on upgrading via the Service Pack
If you would like to comment or make further suggestions, please leave a note on our Comments page (you will have to Create an Account if you haven't already).
original article by ylee