Installing Ubuntu One to sync files, contacts and Tomboy Notes is quite straight-forward in Linux Mint 9 (which is built on Ubuntu) but there are a couple of caveats.
You can install Ubuntu One by simply typing this into the Terminal:
sudo apt-get update
sudo apt-get install ubuntuone-client-gnome
The problem however appears when you try to install the plugin (Bindwood) to sync Firefox bookmarks in the Ubuntu One application. Not only does it not work – it also messes up an entry in your /etc/apt/sources.list. This means that you will get an error when you run update manager (and you will have an icon in the taskbar that reminds you of this all the time).
To avoid this problem you can install the Bindwood plugin manually as follows:
sudo apt-get install xul-ext-bindwood
If you need to correct your /etc/apt/sources.list this can be done as follows, In the Terminal type:
sudo gedit /etc/apt/sources.list
Look for the deb http://packages.linuxmint.com/ isadora main upstream import universe entry and remove “universe” from the end of it so that it looks like this:
deb http://packages.linuxmint.com/ isadora main upstream import
Save the file and close the file editor and then update your repositories again:
sudo apt-get update
Installing software or making system changes from the command line can be a great time saver. Editing the repositories list though has always been something that I have done manually – either opening /etc/apt/sources.list with nano or making the necessary changes via the GUI.
Today, for example, I wanted to install Skype in Ubuntu 11.4 which meant enabling the “partner” repository. In /etc/apt/sources.list this would mean manually removing the # from the following line:
# deb http://archive.canonical.com/ubuntu natty partner
With a bit of searching though I found a solution that can be adapted to enable any of the existing entries in sources.list.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i "/^# $STOP.*$REPO/ s/^# //" /etc/apt/sources.list
The first command simply makes a backup copy of your sources.list file.
In the second line we define the parameter STOP as “deb ” so that we will only edit deb repositories (and not deb-src repositories which are not needed to install Skype).
The third line defines the REPO parameter which in this case contains a character string that is unique to the ubuntu natty partner repository.
The last line uses the sed command to remove the # according to the parameters that we have set.
This script gives a great and easily customizable framework to work from as STOP will either be “deb ” or “deb-src” and REPO will always be something unique to the repository to be enabled.
Kudos to Franklin52 on the The Unix and Linux Forums for the script.