Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyWfJ-0000hQ-Rh for pgsql-general@arkaria.postgresql.org; Wed, 21 Mar 2018 05:52:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyWfI-0001WI-VS for pgsql-general@arkaria.postgresql.org; Wed, 21 Mar 2018 05:52:00 +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 1eyWfI-0001W4-KA for pgsql-general@lists.postgresql.org; Wed, 21 Mar 2018 05:52:00 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyWfF-0003fS-HC for pgsql-general@postgresql.org; Wed, 21 Mar 2018 05:51:59 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eyWd6-0006qe-Dt for pgsql-general@postgresql.org; Wed, 21 Mar 2018 06:49:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Stuart McGraw Subject: Re: postgresql-10.3 on unbuntu-17.10 - how?? Date: Tue, 20 Mar 2018 23:51:45 -0600 Lines: 80 Message-ID: <484559c1-9dea-085c-4f55-fb22d246ef24@mtneva.com> References: <4c40e7c5-efa7-00d7-b891-acc9c1ec75b0@aklaver.com> <20180320201953.GC22250@msg.df7cb.de> <031f07be-4d38-2cdf-7a87-8c46617a6503@mtneva.com> <9c2ca69a-f24b-d662-124d-7153bf22e4c3@aklaver.com> <19c804c1-226b-f826-ca4c-229aebbb076d@mtneva.com> <9a73e571-fe95-6e9d-ce24-65d2cd5e625a@mtneva.com> <5f658eee-585c-8ba2-235c-1429e33e17d2@aklaver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <5f658eee-585c-8ba2-235c-1429e33e17d2@aklaver.com> Content-Language: en-US X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/20/2018 10:07 PM, Adrian Klaver wrote: > On 03/20/2018 06:27 PM, Stuart McGraw wrote: >> On 03/20/2018 06:42 PM, Stuart McGraw wrote: >>> On 03/20/2018 05:34 PM, Adrian Klaver wrote: >>>> On 03/20/2018 02:25 PM, Stuart McGraw wrote: >>>>> On 03/20/2018 02:19 PM, Christoph Berg wrote: >>> [...] >>>>>    # apt-get dist-upgrade >>>>>    The following packages will be REMOVED: >>>>>      pgadmin3 >>>>>    The following packages will be upgraded: >>>>>      pgadmin3-data postgresql postgresql-client postgresql-client-common >>>>>      postgresql-common postgresql-contrib postgresql-doc postgresql-doc-10 >>>>>      postgresql-server-dev-10 >>>>>    9 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. >>> [...] >>>>> Likely I am missing something obvious due to my newness with Ubuntu, >>>>> but isn't the above supposed to work?  10.3 is a minor upgrade, yes? >>>> >>>> Yes it is a minor upgrade. >>>> >>>> What does pg_lsclusters show? >>> >>> # pg_lsclusters >>> Ver Cluster Port Status Owner    Data directory              Log file >>> 10  main    5432 online postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log >> >> An additional bit of information.  Picking one of the installed packages >> to look at: >> >> ~# apt-cache  policy postgresql-client >> postgresql-client: >>    Installed: 10+190.pgdg18.04+1 >>    Candidate: 10+190.pgdg18.04+1 >>    Version table: >>   *** 10+190.pgdg18.04+1 500 >>          500 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages >>          500 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main i386 Packages >>          100 /var/lib/dpkg/status >>       9.6+184ubuntu1.1 500 >>          500 cdrom://Ubuntu-Server 17.10 _Artful Aardvark_ - Release amd64 (20180108.1) artful/main amd64 Packages >>          500 http://us.archive.ubuntu.com/ubuntu artful-security/main amd64 Packages >>          500 http://us.archive.ubuntu.com/ubuntu artful-security/main i386 Packages >>          500 http://us.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages >>          500 http://us.archive.ubuntu.com/ubuntu artful-updates/main i386 Packages >>       9.6+184ubuntu1 500 >>          500 http://us.archive.ubuntu.com/ubuntu artful/main amd64 Packages >>          500 http://us.archive.ubuntu.com/ubuntu artful/main i386 Packages >> >> I *think* the above is saying that the package was (or should be?) installed >> from the pgdg repository.  So why isn't is getting the 10.3 versions? >> (Thanks for the help so far!) > > I think it is installed. > > What does pg_lsclusters show? I included it above but here it is again: >>> # pg_lsclusters >>> Ver Cluster Port Status Owner Data directory Log file >>> 10 main 5432 online postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log > What does ps ax | grep postgres show? > At this point do you have a running instance of Postgres and is it in use? > If so I would take a pg_dump for safety's sake, before going any further. Not functional at the moment, I was experimenting with trying to remove and reinstall various packages. But I am doing this on a VM, not my development machine where the real database to be upgraded is. Whether it was fully functional after the upgrade I can't say for sure but the server restarted ok with no unusual messages and I could connect to it with pgsql. But both continued to report their versions as 10.1. After removing the main postgresql packages and reinstalling I got some version conflicts which led to my to trying doing a clean install of Ubuntu-17.10 followed by an install of postgresql-10 from the pgdg bionic (rather than zesty) repo. It failed as described in a separate post.