LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-23-2011, 05:28 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
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

Last edited by nkd; 04-23-2011 at 05:32 AM.
 
Old 04-23-2011, 09:59 AM   #2
nicolasjengler
Member
 
Registered: Apr 2011
Location: /dev/null
Distribution: Debian, Ubuntu, Arch, OpenSUSE, Puppy, Feather, DSL, DeLi, SliTaz, Bodhi, PCLinuxOS, Crunchbang,etc.
Posts: 74

Rep: Reputation: 9
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
.
 
Old 04-23-2011, 11:19 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


..
 
Old 04-23-2011, 10:29 PM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
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
 
Old 04-23-2011, 11:15 PM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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.
 
Old 04-24-2011, 05:39 AM   #6
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing libpq-dev on Debian krojther Linux - Newbie 3 09-23-2010 10:28 AM
unable to install xorg-dev san_as Linux - Newbie 3 04-15-2010 05:25 AM
how to install libssl-dev in ubuntu 8.04.1 twinscomp Linux - Newbie 1 08-15-2008 10:12 AM
Unable to install libc6-dev rstaveley Debian 8 02-12-2007 12:49 PM
"unable to find device node for /dev/x in /dev!" during install zombiedeth *BSD 0 02-02-2004 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration