Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fNn43-0005mK-58 for pgsql-general@arkaria.postgresql.org; Tue, 29 May 2018 22:25:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fNn3y-000251-0e for pgsql-general@arkaria.postgresql.org; Tue, 29 May 2018 22:25:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fNn3x-00024s-GH for pgsql-general@lists.postgresql.org; Tue, 29 May 2018 22:25:53 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fNn3u-0001QM-12 for pgsql-general@lists.postgresql.org; Tue, 29 May 2018 22:25:52 +0000 Received: by mail-pl0-x241.google.com with SMTP id ay10-v6so9785047plb.1 for ; Tue, 29 May 2018 15:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=AdwL3m0G0E+GSdn/YcvQWiQHQo9LfLT8icyCMjPhzB4=; b=iaBPA5BAeMjnHZ5ETwuUm7DQfzCNP8tSgma696U9jVJXwQwv6LVpM4JS9FP/nhdGLk 7BWcDl+M/+tLooPLB7UvMxUc6BYa32C29wRgu76jy8l1ryVPmQtIwXMJwvyBdQ8vBNXv G85QBeA5MdtgPYOL+CXrRYOMi0TJmBJmksAEZx1jxhdf9EYhjnMq2ECxNRdLGk9HJRvu NPvwU5oJvn9/rNQsOyL8tW+vC1e8fus81bcMCk/7IQp83FVVjtdPb3jo9y/WGVF44nOw wHDq8Bzn8Py3GIUQe4Hn78kqJboH1wlorbAfUN9Cwv8fv+WsjeGdKCFfJRQ6Kl/xgVlV /x6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=AdwL3m0G0E+GSdn/YcvQWiQHQo9LfLT8icyCMjPhzB4=; b=pk1TSBbK4on2ZnxaBGZJuAJhB2t4OIzh/qch1P6nd2UQKO1pArhIAW3oKcoaqJNMyl +ZwlOzn6x4aXXRziDPOe0jjNWPX3zhqUECV4SersNHs8/1LwaO1//X04RN/7xYHFwTe0 g0ZraxEWvLW5usmf3mt4i2EbwNrQ2D1dNcbm+DhWWNypU7NWq4yUaktNLnuhjS/5GKp8 4tPfzA6vDJRZ8VDCns+pAVWam3t0Z2QNqf2mDUYAalYf69KrREAjjwiFGKs1ONBxQq7G ZGkCFND7OPx6cVyx2pOscb17koEiUzewJhZRDI4X53kCVNXmaIvTGB1LiN/RaqHyKoxl vyOw== X-Gm-Message-State: ALKqPwfTsYXp+fWuEgnGLG4snQViuV/WpbVv12EDUNiV8xwvoWnsZgPd dfXX3a48NuxvDqYrX82rXKBh12/5 X-Google-Smtp-Source: ADUXVKKUuxPuoh9irpG9ge3QtNqsUgt3Na7YPhjtjH2fNesSoQJq4v7pjmA+dtqCnHq1dQkX0k+46Q== X-Received: by 2002:a17:902:2826:: with SMTP id e35-v6mr249074plb.348.1527632748429; Tue, 29 May 2018 15:25:48 -0700 (PDT) Received: from tim-desktop (2001-44b8-31f2-bb00-0d6f-7ea3-4779-e01e.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:d6f:7ea3:4779:e01e]) by smtp.gmail.com with ESMTPSA id a10-v6sm52085857pfo.55.2018.05.29.15.25.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 15:25:47 -0700 (PDT) References: <8736ybwi3n.fsf@gmail.com> <65afb22a-995e-d53a-7b72-1a7020d2df40@evolu-s.it> User-agent: mu4e 0.9.18; emacs 26.1 From: Tim Cross To: Moreno Andreo Cc: pgsql-general@lists.postgresql.org Subject: Re: pgdg-keyring (or apt-key) failure on fresh 9.6 install In-reply-to: <65afb22a-995e-d53a-7b72-1a7020d2df40@evolu-s.it> Date: Wed, 30 May 2018 08:25:43 +1000 Message-ID: <871sduw13s.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Moreno Andreo writes: > Hi Tim, > > Il 29/05/2018 00:06, Tim Cross ha scritto: >> Moreno Andreo writes: >> >>> Hi folks, >>> I'm trying to install Postgresql 9.6 on a test machine in Google Cloud >>> Platform >>> After a fresh install with Debian 9 (just after the instance has been >>> created) I follow steps from here >>> >>> https://wiki.postgresql.org/wiki/Apt >>> >>> (instead of pg 10 I install pg 9.6) >>> >>> During the installation process i encounter the following strange >>> warnings that, even if that's a test machine, make me think twice before >>> going ahead. >>> >>> [...] >>> Processing triggers for man-db (2.7.6.1-2) ... >>> Setting up pgdg-keyring (2017.3) ... >>> Removing apt.postgresql.org key from trusted.gpg: Warning: The postinst >>> maintainerscript of the package pgdg-keyring >>> Warning: seems to use apt-key (provided by apt) without depending on >>> gnupg or gnupg2. >>> Warning: This will BREAK in the future and should be fixed by the >>> package maintainer(s). >>> Note: Check first if apt-key functionality is needed at all - it >>> probably isn't! >>> OK >>> Setting up xml-core (0.17) ... >>> [...] >>> >>> I have to say that installation is successfully and database server goes >>> up and apparently with no problems at all. >>> >> This looks like a warning for the package maintainers regarding ensuring >> the package depends on either gnupg or gnupg2 and nothing you need to >> worry about unless you are building/maintaining deb packages for postgres. > Brilliant. That's what I needed to know. Just to avoid bitter surprises > in the future... :-) >> >> The Debian package manager, apt, uses gpg keys to verify the >> authenticity of packages it downloads. My guess is that previously, you >> only needed to ensure the package had a dependency on apt-key and now >> apt has/is changing such that you need to have an explicit dependency on >> either gnupg or gnupg2. >> > ... so if I update/upgrade this instance in the future it will be > automatically fixed (and there shouldn't be issues), right? > Thanks a lot! > Right. In fact, there are no issues now. That warning is from the Debian package management system and about the package management system, so nothing to do with Postgres. When you upgrade in the future, provided the new Postgres packages have been created with the dependency for gnupg/gnupg2, there will be no warnings. Personally, I tend to prefer using the packages which come with the particular flavour of Linux your installing as they are often more in-line with the current version of the package management system being used. I only grab packages from the specific Postgres repo if the package is not in the current version of the distribution I'm installing. -- Tim Cross