Ubuntu 22.10 无法安装 pgadmin4

Ubuntu 22.10 无法安装 pgadmin4

我遵循这个指示

sudo nano /etc/apt/sources.list.d/pgdg.list
# add the following line:
deb http://apt.postgresql.org/pub/repos/apt/ kinetic-pgdg main
sudo wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
sudo apt install pgadmin4

但我仍然得到: package `pgadmin4` has no installation candidate

也许还有其他解决方案吗?

lev@lev-HP-ProBook-445-G7:~$ sudo apt update
[sudo] password for lev: 
Hit:1 https://repo.yandex.ru/yandex-browser/deb stable InRelease
Get:2 http://apt.postgresql.org/pub/repos/apt kinetic-pgdg InRelease [18,9 kB] 
Hit:3 http://archive.ubuntu.com/ubuntu kinetic InRelease                       
Ign:4 https://ppa.launchpadcontent.net/ubuntu-audio-dev/ppa/ubuntu kinetic InRelease
Ign:5 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/kinetic pgadmin4 InRelease
Err:6 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/kinetic pgadmin4 Release
  404  Not Found [IP: 147.75.85.69 443]
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:8 http://archive.ubuntu.com/ubuntu kinetic-updates InRelease               
Err:9 https://ppa.launchpadcontent.net/ubuntu-audio-dev/ppa/ubuntu kinetic Release
  404  Not Found [IP: 185.125.190.52 443]
Hit:10 http://archive.ubuntu.com/ubuntu kinetic-backports InRelease
Hit:11 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease
Hit:12 http://archive.ubuntu.com/ubuntu kinetic-security InRelease
Hit:13 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease
Reading package lists... Done
E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/kinetic pgadmin4 Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://ppa.launchpadcontent.net/ubuntu-audio-dev/ppa/ubuntu kinetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://apt.postgresql.org/pub/repos/apt/dists/kinetic-pgdg/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt kinetic-pgdg InRelease' doesn't support architecture 'i386'

答案1

Ubuntu 22.10 不支持 Pgadmin4 作为 apt。对于 Jammy,请使用以下命令:

https://www.pgadmin.org/download/pgadmin-4-apt/

答案2

我用过 https://www.how2shout.com/linux/install-postgresql-pgadmin-4-on-ubuntu-22-04-lts-jammy-linux/

但我改变了说明,而不是

sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list'

我用了

sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list'

基本上,kinetic 还不支持,但是 jammy 可以工作

我只安装了桌面版,但没有安装网页版,因为我不想要那个

相关内容