Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8016423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:32:11+00:00 2026-06-04T20:32:11+00:00

I have been trying to install psycopg2 for use in a virtualenv. I managed

  • 0

I have been trying to install psycopg2 for use in a virtualenv. I managed to find that it depended on libpq-dev (because pip give me a Error: pg_config executable not found. error) which could be install using apt-get install libpq-dev.

However all of my attempts to install libpq-dev have resulted in the following error:

Reading package lists... Done
Building dependency tree       
Reading state information... 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:  
 libpq-dev : Depends: libkrb5-dev but it is not going to be installed
E: Broken packages

Can anyone work out how to fix this?

sources.list

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 NETINST Binary-1 20110320-15:00]/ squeeze main

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official amd64 NETINST Binary-1 20110320-15:00]/ squeeze main

deb http://ftp.us.debian.org/debian/ squeeze main
deb-src http://ftp.us.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ squeeze-updates main
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main

# Backports repository
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

# RabitMq
deb http://www.rabbitmq.com/debian/ testing main
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:32:13+00:00Added an answer on June 4, 2026 at 8:32 pm

    Try adding “contrib non-free” to every source. I think it’s because those packages are not listed in the sources you have in sources.list. Try to change every line like this example:

    deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
    deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free
    
    deb http://security.debian.org/ squeeze/updates main contrib non-free
    deb-src http://security.debian.org/ squeeze/updates main contrib non-free
    
    deb http://ftp.us.debian.org/debian/ squeeze-updates main contrib non-free
    deb-src http://ftp.us.debian.org/debian/ squeeze-updates main contrib non-free
    

    That worked for me. I hope it works for you too…

    If that does not help you, you can try with this. It seems that it works if you specify the packet version you want to install, like this:

    apt-get install libpq-dev=8.4.5-2~bpo50+1
    

    Let me know if something of this worked! Best wishes!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to setup Symfony2 on Windows so that I can use
I have been trying to use Eclipse 3.6 as a Python editor. I install
I have been trying to install Derby, and npm keeps insisting it cannot find
I have been trying to install ReviewBoard and all looks like it has gone
I have recently been trying to install TargetProcess on my windows 7 machine. I
I'm trying to install bcrypt-ruby on Windows Vista. So far, I have been able
I have been trying to install Mercurial binary packages on my Red Hat Linux
I have been trying to install sinatra in a macbook running leopard system, and
I have been trying to install tomcat-6.0.26 on my Mac OS 10.6. I followed
I have been trying to set up a program that sends a push notification

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.