Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install a package from a Debian repository. I am trying to install manually with dpkg errors because of missing or incomplete dependencies. This got me wondering, is it a mistake to just add the Debian repository to my apt sources?

To be more specific I'm trying to install Guake (the console wrapper).

I'm trying to install Guake 0.4.1. This resolves an issue with transparency I'm having.

share|improve this question

closed as off-topic by mailq, Christopher Perrin, masegaloeh, HopelessN00b, MadHatter Nov 30 '14 at 6:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – mailq, Christopher Perrin, masegaloeh, HopelessN00b, MadHatter
If this question can be reworded to fit the rules in the help center, please edit the question.

serverfault is for questions related to server/network administration. This question seems like it is more about your desktop environment which makes it more suitable for superuser. – Zoredache Mar 27 '10 at 21:44
up vote 13 down vote accepted

It's a bad idea to install binary packages from Debian on Ubuntu. But it's a good idea to install packages from source! So here's how:

It's not that hard. Here's how to do it (instructions taken from my old note at ):

Step 1: Make sure you have an appropriate deb-src line

Backporting is the process of taking source packages and compiling them on your Debian(-like) system. The easiest way to find Debian "source packages" is the same way you find Debian "binary packages": apt-get and its configuration.

Make sure you have this line in /etc/apt/sources.list:

deb-src unstable main

APT provides a command "apt-get source" that looks in these deb-src lines (rather than plain binary deb lines) and downloads source packages. In this tutorial, you'll use "apt-src" which is a convenient wrapper around "apt-get source".

Step 2

apt-get update

Step 3

sudo aptitude install apt-src

apt-src is a helper program that makes compiling source packages easy. It's not necessary, but it prevents you from having to type too many commands.

Step 4

 apt-src -bi install $package

If you wanted to install 'alpine', just do:

apt-src -bi install guake

The "b" stands for "build", the "i" stands for "install the resulting package", and the word "install" means "download the source for guake as found in a Debian source line from sources.list". apt-src will "install" the source into the current directory, make sure you have all the required packages to build the package (a process called "satisfying the build dependencies"), build it, and install the resulting .debs.

share|improve this answer
This is an awesome guide. +1 and accept if I get it to work. Quick question, I don't understand how the apt-src program knows to use the deb-src repo and not a karmic repo. Can you shed some light on that? – Dane O'Connor Mar 29 '10 at 1:33
If you need to do this often and don't like having to go through all the steps, check this out: – ptman Mar 29 '10 at 7:19
I updated the answer above to answer TheDeeno's question. – Asheesh Laroia Mar 30 '10 at 20:17
I wouldn't call it a good idea per se -- even the build dependencies still expect an essentially Debian setup -- but it's definitely significantly less bad than installing a binary. +1 – Shadur Sep 26 '11 at 8:45

That is probably not the best way, as Debian and Ubuntu have different system paths, library versions and other dependencies. It might work though, but it will most probably fail in some way. You could get a better answer if you specified which package you are trying to install.

Conclusion: I would not recommend you doing it, other than for experimental use.

share|improve this answer
added package to my question – Dane O'Connor Mar 27 '10 at 20:27

Don't do that.

But: Guake is present in:

You only have to enable the 'universe' repository.

share|improve this answer
It's in intrepid and jaunty, too: – Dennis Williamson Mar 27 '10 at 21:10
hmm, I have guake installed 0.4.0 installed i'm trying to install 0.4.1 though. Is that in one of those repositories? Am I missing it? I updated my question to be more specific. – Dane O'Connor Mar 27 '10 at 21:49

There was mention of the command:

 add-apt-repository ppa:nginx/stable


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.