LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   unable to install libpq-dev in ubuntu 10.10 (https://www.linuxquestions.org/questions/ubuntu-63/unable-to-install-libpq-dev-in-ubuntu-10-10-a-876642/)

nkd 04-23-2011 05:28 AM

unable to install libpq-dev in ubuntu 10.10
 
hi all,
I am trying to install postgresql db for using with metasploit on my ubuntu 10.10 instln.
I am using the following guide :-
I however, could not finish the step with installing libpq-dev which is required to install the db_driver postgresql.
I am using
sudo apt-get install libpq-dev
it complains about certain dependencies which are unresolved.
I tried out the synaptic and all the repositiories are added incl the mediubuntu !
Any ideas please
thanks in advance
nishith

nicolasjengler 04-23-2011 09:59 AM

Try with

Code:

sudo apt-get -f install
or maybe you could force the .deb package to install.

Go to the path where the .deb is and run

Code:

sudo dpkg -i -force--overwrite nameofthepackage.deb
and then

Code:

sudo apt-get -f install
.

knudfl 04-23-2011 11:19 AM

The first thing to suggest is : 'sudo apt-get update'

And : May be you have an incompatible repository added ? ?
Ubuntu natty ? Please have a look at /etc/apt/sources.list.


..

nkd 04-23-2011 10:29 PM

Thanks a ton for the responses :-
Quote:

sudo apt-get -f install
and also
Quote:

sudo apt-get update
Have tried both but the problem remains even after that.
Quote:

And : May be you have an incompatible repository added ? ?
Ubuntu natty ? Please have a look at /etc/apt/sources.list.
That is where the problem could be.... I tried out Synaptic the libpq-dev occurs in the list. But when I mark it for installation , it complains about two more deps and informs they won't be installed.
That clearly suggest probably they are not in the repos added on my pc. Now I have canonical and medibuntu repos. Do you suggest adding any thing else? Also please let me know how to check a incompatible repo ?
thanks in advance
nishith

widget 04-23-2011 11:15 PM

Make real sure that the address for all your repos is for the same Ubuntu release.
Code:

sudo gedit /etc/apt/sources.list
Check every one of them. Could be you have an older one stuck in there or a newer one.

It could also be that the deps just have not caught up with the package quite yet and you need to wait a day or so. That strikes me as a little strange at this stage of the game. The 10.10 repos ought to be pretty stable by now.

I can tell you that it is in the Debian testing (Wheezy) repo. It is not one that I can get a change log on so it is not in the Debian testing main repo. Non the less it should work now or soon in Ubuntu. I did not try installing it as I have no use for it at this time and do not wnat it on here for no reason so I am not sure what, if anything, may be missing here.

nkd 04-24-2011 05:39 AM

Quote:

Make real sure that the address for all your repos is for the same Ubuntu release.
Thanks a lot for the clue. I didnot find anything wrong on that. But I remembered that I had another pc on which ubuntu was installed and I could install the postgres and metasploit without any problem on it. So I copied and replaced the sources.list file from the other PC and then tried out :-
Quote:

sudo apt-get install -f libpq-dev
It worked like a breeze. So obviously it was a repo related problem.
thanks all of you.
nishith


All times are GMT -5. The time now is 01:58 PM.