Problems installing PostgresQL on Debian 2.12 Testing
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.