Re: Upgrade Ubuntu 22 -> 24 may break PostgreSQL

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Upgrade Ubuntu 22 -> 24 may break PostgreSQL
Date: 2024-08-31 18:02:13
Message-ID: 20240831180213.ia27hp5ki2vq46nw@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2024-08-31 10:35:01 -0700, Adrian Klaver wrote:
> On 8/31/24 09:54, Peter J. Holzer wrote:
> > 'Tis the season again.
> >
> > Ubuntu 24.04.1 has just been released, so many Ubuntu LTS users will now
> > be prompted to upgrade from 22.04 to 24.04.
>
> Which I ignore.

At some point I do want to upgrade. Not necessarily at the earliest
oportunity, but for workstations/laptops I'm usually rather quick. This
laptop was originally delivered with a pre-installed Ubuntu 18.04 LTS,
and has since been upgraded to 20.04, 22.04 and now 24.04. Servers are
different. They are usually upgraded when neccessary. Or sometimes new
hardware is ready before support ends ...

But I think our personal preferences are besides the point. Many people
will upgrade Ubuntu in the next weeks or months. So I wanted to give
them a heads-up that this might not be as smooth as expected.

> > A word of warning to those who use Postgresql from the Ubuntu repo (not
> > PGDG):
>
> Why I do use the PGDG repo's.

So do I on production systems. But this was just my personal laptop.
But yeah, it reminded me that one of the reasons I prefer the PGDG repos
is that they decouple PostgreSQL upgrades from OS upgrades.

> > As usual, a newer Ubuntu version comes with a newer Postgres version (16
> > instead of 14). Also as usual, I got a message during the upgrade that
> > Postgres 14 is obsolete,. but the binaries have been left installed and
> > I should upgrade to Postgres 16 manually ASAP.
> >
> > But after the reboot, PostgreSQL failed to start because it needed a
> > shared library (libldap) which was no longer there. So a normal
> > pg_upgradecluster wouldn't work.
>
> sudo apt install libldap-X.x did not work?

It might have worked after reenabling the Ubuntu 22 repo. Or it might
have worked to simply symlink to the newer libldap. Frankly I didn't
try. I had a VM with ubuntu 22 without postgres lying around, so that
seemed like the safeste route.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message veem v 2024-08-31 20:02:07 Partitioning and unique key
Previous Message Adrian Klaver 2024-08-31 17:35:01 Re: Upgrade Ubuntu 22 -> 24 may break PostgreSQL