Re: BUG #17348: Can never install pgsql on Ubuntu - Mailing list pgsql-bugs

From hubert depesz lubaczewski
Subject Re: BUG #17348: Can never install pgsql on Ubuntu
Date
Msg-id 20211228161232.GA21313@depesz.com
Whole thread Raw
In response to BUG #17348: Can never install pgsql on Ubuntu  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #17348: Can never install pgsql on Ubuntu  ("Mr. Keaton" <ktr01@protonmail.com>)
List pgsql-bugs
On Tue, Dec 28, 2021 at 02:22:52PM +0000, PG Bug reporting form wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      17348
> Logged by:          KT LEE
> Email address:      ktr01@protonmail.com
> PostgreSQL version: Unsupported/Unknown
> Operating system:   Windows 10
> Description:        
> 
> I use Win10 + Ubuntu 20.04 and build a website with Ruby on Rails. Whether I
> changed the existing repo server to pg (in gemfile), or rails new specified
> db as pg, I all encountered the following error message, followed by a
> series of error message mazes. I once removed pg and reinstalled it. I have
> also referred to all the answers on Stack Overflow. I have also asked
> several questions, but none of them can be resolved.
> 
> If I try sudo apt-get install libpq-dev, I will encounter "E: Unable to
> correct problems, you have held broken packages. ", and then go back to the

This is the problem. Fix apt issue, and then install libpq-dev, and then
ruby will allow you to compile its library.

As for what is the problem with apt? No idea. Check full output of the
apt-get install command, and react accordingly.

This is not a bug in Pg. This is not even (most likely) a bug in Ubuntu.

depesz

p.s. how does windows fit in all of this? You mentioned that you have
the problem on Windows, but then you say that you install Pg on ubuntu
(which makes sense given apt-get command). So which is it?




pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17347: pg_upgrade: analyze_new_cluster script analyzes wrong cluster
Next
From: PG Bug reporting form
Date:
Subject: BUG #17349: Function gen_random_uuid duplicates in pgcrypto and core