Re: installation not working for Ubuntu 21.10 impish

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Garrett Simpson <elgaricimo(at)gmail(dot)com>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: installation not working for Ubuntu 21.10 impish
Date: 2022-03-04 09:03:47
Message-ID: CA+OCxoy2OW_mT6Vj6GTtOU_QYSyRPVP0rP2PkKxcDEvrAT9nWg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi

On Thu, 3 Mar 2022 at 17:24, Garrett Simpson <elgaricimo(at)gmail(dot)com> wrote:

> Hi Dave,
> Appreciate the quick response!
> Definitely have Impish...
>
> garrett(at)garrett-external:/etc$ lsb_release -cd
> Description: Ubuntu 21.10
> Codename: impish
>
> garrett(at)garrett-external:/etc$ lsb_release -cs
> impish
>
> But for some reason I don't have the os-release directory:
>
> garrett(at)garrett-external:/etc$ cd /etc/os-release
> bash: cd: /etc/os-release: Not a directory
>

Right, that message means that there's something on the filesystem with
that name, but it's not a directory - which is as expected; os-release is a
text file.

>
>
> I think what probably happened is when I was initially stuck, and trying
> to run pgadmin4 from the terminal, not seeing anything happen, and thinking
> it was not fully installed when it was, I started monkeying around with the
> urls in /etc/apt/sources.list.d to try uninstalling and reinstalling past
> releases, following a bit too blindly things I found searching online...
>
> garrett(at)garrett-external:/etc/apt/sources.list.d$ ls
> deadsnakes-ubuntu-ppa-impish.list pgadmin4.list.save pgdg.list.save
> pgadmin4.list pgdg.list
>
>
> Looking at pgadmin4.list.save , I see I had at least tried to use hirsute
> 's repo:
>
> garrett(at)garrett-external:/etc/apt/sources.list.d$ cat pgadmin4.list.save
> deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/hirsute
> pgadmin4 main
>
> I'm thinking this is overriding the correct impish repos, so I'll try
> deleting that file, purging the installation and re-installing:
>
> garrett(at)garrett-external:/etc/apt/sources.list.d$ ls
> deadsnakes-ubuntu-ppa-impish.list pgadmin4.list pgadmin4.list.save
> pgdg.list pgdg.list.save
> garrett(at)garrett-external:/etc/apt/sources.list.d$ sudo rm
> pgadmin4.list.save
>
> double check that the pgadmin4 sources are correct...
> garrett(at)garrett-external:/etc/apt/sources.list.d$ ls
> deadsnakes-ubuntu-ppa-impish.list pgadmin4.list pgdg.list
> pgdg.list.save
> garrett(at)garrett-external:/etc/apt/sources.list.d$ cat pgadmin4.list
> deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4
> main
>
> ^ok definitely the problem...should fix that....
>
> garrett(at)garrett-external:/etc/apt/sources.list.d$ sudo sed -i
> 's/focal/impish/g' ./pgadmin4.list
> garrett(at)garrett-external:/etc/apt/sources.list.d$ cat ./pgadmin4.list
> deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/impish pgadmin4
> main
>
> uninstall pgadmin4
> garrett(at)garrett-external:/etc/apt/sources.list.d$ sudo apt purge pgadmin4
> garrett(at)garrett-external:/etc/apt/sources.list.d$ sudo apt autoremove
>
> reinstall pgadmin4
> garrett(at)garrett-external:/etc/apt/sources.list.d$ sudo apt update && sudo
> apt install pgadmin4
>
> And now it works fine
>

Yes, using the wrong repo would certainly account for the Python version
mismatch.

>
> So you were right, apologies for the self inflicted goose chase -- but
> definitely learned a lot in the process!
>

:-). Glad it's working now!

--
Dave Page
Blog: https://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: https://www.enterprisedb.com

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Simon Hall 2022-03-07 17:37:52 Assistance please - How to download PG Admin?
Previous Message Garrett Simpson 2022-03-03 17:24:01 Re: installation not working for Ubuntu 21.10 impish