Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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
root@Managementserver:~# sudo apt-get install python-pip python-dev build-essential -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
build-essential set to manually installed.
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:
 python-dev : Depends: python (= 2.6.6-3+squeeze7) but 2.7.3-4 is to be installed
 python-pip : Depends: python-pkg-resources but it is not going to be installed
              Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
E: Broken packages

I am running Ubuntu 13.04 server.

I have tried:

sudo apt-get update/upgrade
sudo apt-get clean
sudo apt-get -f install

Any ideas? Thanks!

share|improve this question
@sameetandpotatoes he's using ubuntu server, meaning he (likely) don't have GUI, but CLI – Braiam Aug 21 '13 at 3:56
@user1864156 could you edit your question and add your /etc/apt/sources.list? – Braiam Aug 21 '13 at 3:57
possible duplicate of How do I resolve unmet dependencies after adding a PPA? – Tim Jun 8 '15 at 19:15

I was able to fix the issue. I was able to use virtualenv to contain RhodeCode + Mercurial while the rest of the server ran.

I used this tutorial: and this Will python2.7 be available for 10.04 in the future?

Thanks for the help!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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