If you've added the sources.list from the other thread on this forum and are getting some errors this will document how to fix those errors. Here is the error(s) I was getting:
root@Britannia ~ --> apt-get upgrade Reading package lists... Done Building dependency tree... Done The following packages have been kept back: libcairo2 libcairo2-dev 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. root@Britannia ~ --> apt-get dist-upgrade Reading package lists... Done Building dependency tree... Done Calculating upgrade... Done The following packages have been kept back: libcairo2 libcairo2-dev 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. root@Britannia ~ --> apt-get install libcairo2 libcairo2-dev Reading package lists... Done Building dependency tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libcairo2: Depends: libfreetype6 (>= 2.2.1) but 2.1.10-1ubuntu2.1 is to be installed E: Broken packages
As you can see libcairo2 and libcairo2-dev aren't being updated. So here is how I fixed it.
sudo apt-get install libcairo2=1.0.4-0ubuntu1 sudo apt-get install libcairo2-dev=1.0.4-0ubuntu1
I was given the following command to find out what version it was I needed to install:
apt-cache madison libcairo2
Which produces the following output:
libcairo2 | 1.2.0-0ubuntu1 | http://www.beerorkid.com dapper/main Packages libcairo2 | 1.2.0-0ubuntu1 | http://xgl.compiz.info dapper/main Packages libcairo2 | 1.0.4-0ubuntu1 | http://us.archive.ubuntu.com dapper/main Packages libcairo | 1.0.4-0ubuntu1 | http://us.archive.ubuntu.com dapper/main Sources libcairo | 1.2.0-0ubuntu1 | http://xgl.compiz.info dapper/main Sources
And then for libcairo2-dev I did the following:
apt-cache madison libcairo2-dev
Which produces the following output:
libcairo2-dev | 1.0.4-0ubuntu1 | http://us.archive.ubuntu.com dapper/main Packages libcairo | 1.0.4-0ubuntu1 | http://us.archive.ubuntu.com dapper/main Sources
After all of this is done, then you need to edit your /etc/apt/sources.list and comment out the following lines:
# s Compiz Packages - http://xgl.compiz.info/ deb http://www.beerorkid.com/compiz dapper main deb http://xgl.compiz.info/ dapper main deb-src http://xgl.compiz.info/ dapper main # CompizTool package deb http://compiztools.free.fr/debian unstable main
So the newly commented out stuff should look like this:
# s Compiz Packages - http://xgl.compiz.info/ #deb http://www.beerorkid.com/compiz dapper main #deb http://xgl.compiz.info/ dapper main #deb-src http://xgl.compiz.info/ dapper main # CompizTool package #deb http://compiztools.free.fr/debian unstable main
Then you should do the following command:
sudo apt-get update
That should put things back to normal so that when you do:
sudo apt-get upgrade and/or sudo apt-get dist-upgrade
Everything is ok and you don't get the original stated errors.
If you have any problems or you're getting this error with different packages and aren't sure what command(s) need to be done don't hesitate to reply to this thread or catch me on IRC on irc.freenode.net in the #LFD or #Kubuntu channels. Thanks to uniq in #Kubuntu for this information and helping get this problem fixed.
