Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2F5e-0004FL-2L for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Dec 2021 16:12:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n2F5c-0002aG-Bt for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Dec 2021 16:12:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2F5c-0002a0-3A for pgsql-bugs@lists.postgresql.org; Tue, 28 Dec 2021 16:12:40 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2F5Y-0007xa-Fb for pgsql-bugs@lists.postgresql.org; Tue, 28 Dec 2021 16:12:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:To:Sender:From:Date:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IluBo1gxDKOJ7T+FWZysqQUFMr/Jr9HjhxE+PCNVVYo=; b=kNhbpPyA4y8iQ9qGsMfU2rixT0 b1Nc5cKleQtPoJqeEMyCSaXi2wxCdR0me+k09QJK1bav4Zy7QYywnkq3LQYsbxbUpaUciA17yV7M9 hgyqWwZOuZqis7ljEmeDPC8a1yT/uNwupB9rN6eXGf42G7es1RTpW52Fwc18oUdtXHaw=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1n2F5U-0006BS-8q; Tue, 28 Dec 2021 17:12:32 +0100 Date: Tue, 28 Dec 2021 17:12:32 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: ktr01@protonmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17348: Can never install pgsql on Ubuntu Message-ID: <20211228161232.GA21313@depesz.com> Reply-To: depesz@depesz.com References: <17348-0bcee56252174285@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <17348-0bcee56252174285@postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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?