Задать вопрос
@Atroshchenko-Dima
Python, postgres

Как избавиться от ошибки «Unable to locate package pgadmin4-web» на ubuntu?

Ubuntu 22.04.01 LTS jammy
Добрый день! Вылазит ошибка "Unable to locate package pgadmin4-web" и никак не могу от нее избавиться, уже кучу способов перепробовал.
Шаги:
1)
$ curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
File '/usr/share/keyrings/packages-pgadmin-org.gpg' exists. Overwrite? (y/N) y

2) $ sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
Ign:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
Ign:2 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) InRelease
Hit:3 http://ru.archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://ru.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:6 http://ru.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:7 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu jammy InRelease
Ign:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
Ign:2 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) InRelease
Hit:8 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy InRelease
Ign:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
Ign:2 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) InRelease
Err:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
  Invalid response from proxy: HTTP/1.1 403 Forbidden  Server: squid/4.10  Mime-Version: 1.0  Date: Wed, 15 Feb 2023 05:00:26 GMT  Content-Type: text/html;charset=utf-8  Content-Length: 3508  X-Squid-Error: ERR_ACCESS_DENIED 0  Vary: Accept-Language  Content-Language: en  X-Cache: MISS from squid-deb-proxy  X-Cache-Lookup: NONE from squid-deb-proxy:8000  Via: 1.1 squid-deb-proxy (squid/4.10)  Connection: keep-alive     [IP: 109.68.203.52 8000]
Err:2 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) InRelease
  Invalid response from proxy: HTTP/1.1 403 Forbidden  Server: squid/4.10  Mime-Version: 1.0  Date: Wed, 15 Feb 2023 05:00:26 GMT  Content-Type: text/html;charset=utf-8  Content-Length: 3508  X-Squid-Error: ERR_ACCESS_DENIED 0  Vary: Accept-Language  Content-Language: en  X-Cache: MISS from squid-deb-proxy  X-Cache-Lookup: NONE from squid-deb-proxy:8000  Via: 1.1 squid-deb-proxy (squid/4.10)  Connection: keep-alive     [IP: 109.68.203.52 8000]
Fetched 336 kB in 7s (47,8 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/InRelease  Invalid response from proxy: HTTP/1.1 403 Forbidden  Server: squid/4.10  Mime-Version: 1.0  Date: Wed, 15 Feb 2023 05:00:26 GMT  Content-Type: text/html;charset=utf-8  Content-Length: 3508  X-Squid-Error: ERR_ACCESS_DENIED 0  Vary: Accept-Language  Content-Language: en  X-Cache: MISS from squid-deb-proxy  X-Cache-Lookup: NONE from squid-deb-proxy:8000  Via: 1.1 squid-deb-proxy (squid/4.10)  Connection: keep-alive     [IP: 109.68.203.52 8000]
W: Failed to fetch https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release/dists/-cs)/InRelease  Invalid response from proxy: HTTP/1.1 403 Forbidden  Server: squid/4.10  Mime-Version: 1.0  Date: Wed, 15 Feb 2023 05:00:26 GMT  Content-Type: text/html;charset=utf-8  Content-Length: 3508  X-Squid-Error: ERR_ACCESS_DENIED 0  Vary: Accept-Language  Content-Language: en  X-Cache: MISS from squid-deb-proxy  X-Cache-Lookup: NONE from squid-deb-proxy:8000  Via: 1.1 squid-deb-proxy (squid/4.10)  Connection: keep-alive     [IP: 109.68.203.52 8000]
W: Some index files failed to download. They have been ignored, or old ones used instead.

3) $ sudo apt install pgadmin4-web
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: <b>Unable to locate package pgadmin4-web</b>


P.S репозиторий создан, в файле /etc/apt/sources.list.d/pgadmin4.list
deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main
, так же пробовал в данном файле вставлять такой текст deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/ap... pgadmin4 main

В файле sudo nano /etc/apt/sources.list.d/pgdg.list
deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main
так же пробовал,
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

При выполнении команды
$ sudo apt-get update && sudo apt-get install pgadmin4

Ign:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://ru.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:4 http://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease
Get:5 http://ru.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:6 http://ru.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:7 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu jammy InRelease
Ign:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
Hit:8 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy InRelease
Ign:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
Err:1 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 InRelease
  Invalid response from proxy: HTTP/1.1 403 Forbidden  Server: squid/4.10  Mime-Version: 1.0  Date: Wed, 15 Feb 2023 05:14:37 GMT  Content-Type: text/html;charset=utf-8  Content-Length: 3508  X-Squid-Error: ERR_ACCESS_DENIED 0  Vary: Accept-Language  Content-Language: en  X-Cache: MISS from squid-deb-proxy  X-Cache-Lookup: NONE from squid-deb-proxy:8000  Via: 1.1 squid-deb-proxy (squid/4.10)  Connection: keep-alive     [IP: 109.68.203.52 8000]
Fetched 336 kB in 7s (47,8 kB/s)
Reading package lists... Done
W: Failed to fetch https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/InRelease  Invalid response from proxy: HTTP/1.1 403 Forbidden  Server: squid/4.10  Mime-Version: 1.0  Date: Wed, 15 Feb 2023 05:14:37 GMT  Content-Type: text/html;charset=utf-8  Content-Length: 3508  X-Squid-Error: ERR_ACCESS_DENIED 0  Vary: Accept-Language  Content-Language: en  X-Cache: MISS from squid-deb-proxy  X-Cache-Lookup: NONE from squid-deb-proxy:8000  Via: 1.1 squid-deb-proxy (squid/4.10)  Connection: keep-alive     [IP: 109.68.203.52 8000]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package pgadmin4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'pgadmin4' has no installation candidate


Пробовал уже кучу разных решений с форумов, ну и естественно https://www.pgadmin.org/download/pgadmin-4-apt/

P.S Используется корпоративная сеть, может из-за впн/прокси что-то не так, подскажите, пожалуйста, как исправить данную ошибку.
  • Вопрос задан
  • 682 просмотра
Подписаться 1 Простой Комментировать
Пригласить эксперта
Ответы на вопрос 1
ky0
@ky0
Миллиардер, филантроп, патологический лгун
Используется корпоративная сеть, может из-за впн/прокси что-то не так, подскажите, пожалуйста, как исправить данную ошибку.

Да, дело в этом - и если внимательнее посмотрите на строчки с ошибками, увидите там упоминания.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы