LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2006, 11:42 AM   #1
LDMohican
LQ Newbie
 
Registered: Jan 2006
Location: London, UK
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Question Problems installing PostgresQL on Debian 2.12 Testing


Hi,

I'm having problems installing Postgresql using apt-get install along the lines of:

dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-client-7.4:
postgresql-client-7.4 depends on postgresql-common (>= 24); however:
Package postgresql-common is not configured yet.

Any help would be gratefully appreciated.

Last edited by LDMohican; 03-02-2006 at 11:47 AM.
 
Old 03-02-2006, 12:33 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I just installed it from AMD64 testing the other day ... no problems. The current version I got was 7.5.16. Also I have kernel 2.6.15.

Try again:
# apt-get update
# apt-get install postgresql
 
Old 03-06-2006, 10:44 AM   #3
LDMohican
LQ Newbie
 
Registered: Jan 2006
Location: London, UK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah did that.

Getting this error at the end of the failed install:

Errors were encountered while processing:
postgresql-common
postgresql-client-7.4
postgresql-7.4
postgresql-client
postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)

Last edited by LDMohican; 03-06-2006 at 10:47 AM.
 
Old 03-07-2006, 08:21 AM   #4
LDMohican
LQ Newbie
 
Registered: Jan 2006
Location: London, UK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Anyone?!?!?!?!?!?!
 
Old 03-07-2006, 09:50 AM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
You have a difficult problem. According to the book, such an error should be filed as a 'grave' bug report. OTOH, I think if there really was such a bug in a package of the stature of POSTGRESQL, it's unlikely that you are the 1st to discover it, and by now the developers should have been all over it.

I assume that you are getting the package from an official Debian repo, and that you haven't installed some peculiar program that owns a library which the Debian installer wants to overwrite.

Your problem seems to be in postgresql-common ... I think I would try apt-get install postgresql-common by itself, and see if you get a clearer error message.
 
Old 03-07-2006, 10:14 AM   #6
LDMohican
LQ Newbie
 
Registered: Jan 2006
Location: London, UK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Rick,

Firstly thanks for helping me out, I need to get PostgreSQL up and running for a project I need to do to earn a pay rise so you'll understand I need to get this sorted!

I'm getting the packages from uk.debian.org which should be fairly reputable.

I don't think I have installed anything peculiar.

This is the error I'm getting when trying to install postgresql-common only:-

Unpacking postgresql-common (from .../postgresql-common_43_all.deb) ...
Setting up postgresql-common (43) ...
Creating generic self-signed certificate: /etc/postgresql-common/postgresql.crt
(replace with hand-crafted or authorized one if needed).
hostname: Unknown host
dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
postgresql-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm a relative Linux newcomer but my brother is quite experienced and this issue is perplexing him.


Cheers.

Last edited by LDMohican; 03-07-2006 at 10:17 AM.
 
Old 03-07-2006, 10:44 AM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I'm really out of my league here, but maybe by running through the new posts a few times, it'll attract the eye of someone who knows.

The next thing I would try is to completely purge postgres and then try a reinstall.

# dpkg --purge postgresql
# apt-get install postgresql
 
Old 03-07-2006, 10:58 AM   #8
LDMohican
LQ Newbie
 
Registered: Jan 2006
Location: London, UK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
That didn't do it, came up with the same error.

I need a pay rise!!!!
 
Old 03-07-2006, 12:26 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Somthing is wrong in your system, as opposed to POSTGRESQL. I've caught a lot of flak for making this suggestion before, but, is reinstalling Debian an option?

I know it's a pain, but it only takes a few hours, and at the rate you're going ...

After the base-config is done, your choices of which package groups to install include a database server ... That will install POSTGRESQL right on your brand new OS. I would say that's practically a guarantee to work.
 
  


Reply



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
sound problems Debian/testing Dell M70 anneser Linux - Laptop and Netbook 2 03-04-2006 04:28 PM
problems with in.talkd with debian testing legolin Linux - Networking 0 09-11-2004 02:42 PM
Setup as getting debian testing files from ftp - will it stay with testing BrianHenderson Debian 2 09-02-2004 06:06 PM
problems with debian testing with gnome 2.2 and sawfish 1.3 dark poet Linux - Software 4 12-12-2003 08:33 AM
Error installing debian Sarge testing acetone802000 Debian 5 10-21-2003 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 PM.

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