Linux Mint 20.x 基于 Ubuntu / 无法安装 pgadmin4

2024-05-05

我已经安装了postgres,好吧。 但我尝试安装 pgadmin4 大约 2 小时,但就是做不到。我在互联网上尝试了很多指南,但他们都得到相同的结果:

Package 'pgadmin4' has no installation candidate

我正在使用这个仓库:

deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main

output:

Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'

所以,我必须把[arch=amd64], 正确的? 它应该看起来像这样?deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main

好的,i386 错误不会在 apt update 中出现。但后来我尝试apt install pgadmin4 and

sudo apt install pgadmin4
Reading package lists... Done
Building dependency tree       
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***

看起来就像一个笑话,我该如何解决这种情况呢?


(更新至2023 ubuntu-22.04LTS) 为了说得更清楚。从这个页面:

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

有关于如何设置 Apt 存储库的说明。请参阅下面我的修改版本:

#
# Setup the repository
#

# Install the public key for the repository (if not done previously):
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add

# Create the repository configuration file:
# SEE MODIFICATION BELOW
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

#
# Install pgAdmin
#

# Install for both desktop and web modes:
sudo apt install pgadmin4

# Install for desktop mode only:
sudo apt install pgadmin4-desktop

# Install for web mode only: 
sudo apt install pgadmin4-web 

# Configure the webserver, if you installed pgadmin4-web:
sudo /usr/pgadmin4/bin/setup-web.sh
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Linux Mint 20.x 基于 Ubuntu / 无法安装 pgadmin4 的相关文章

  • linux mnit 安装boost1.58库

    1 安装依赖库文件 sudo apt get install libbz2 dev 安装mpi库 sudo apt get install libicu dev 支持正则表达式的UNICODE字符集 sudo apt get install
  • 为什么 postgres 对相同的间隔值显示两种不同的格式?

    我正在帮忙做这件事question尝试更改间隔的格式 from 01 day 22 10 37 to 46 10 37 我给出了一个字符串操作的解决方案 但后来我发现 postgres 可以在两种不同的格式上显示相同的间隔 SELECT 2
  • IntelliJ 的选择字体对话框中没有出现字体

    我用这个安装了 Monaco 字体code https gist github com rogerleite 99819 然而 它并没有出现在Setting gt Editor gt Color and fonts gt Font 我应该怎
  • pgAdmin 执行脚本的快捷方式

    谁知道 pgAdmin 查询工具中执行脚本的快捷方式 即执行整个查询并执行当前脚本 Select the relevant portion and hit the F5 key in the SQL editor of pgAdmin OR
  • 无法安装包车

    我在 Linux mint 17 3 64 位中使用 R 版本 3 2 3 我试图安装包 car dependencies TRUE 但安装失败并出现以下错误消息 gt warnings Warning messages 1 In inst
  • pgAdmin3 连接问题

    我最近正在使用 VMware Workstation 8 设置并运行 Windows 2008 r2 服务器 我正在运行带有 Postgresql 9 1 的 Centos 6 2 虚拟 Linux 盒子 本地一切似乎都正常 我可以通过桥接
  • PgAdmin 的 Kubernetes 持久卷挂载

    我正在尝试为我的 pgadmin 部署创建持久卷声明 以便在每次从 CD 管道部署后推出更新时可以保留我的设置 服务器等 在我的日志中 我收到以下错误 2020 10 05 00 54 56 0000 91 INFO Worker exit
  • 如何向 pgadmin sql 查询添加参数值?

    在 pgadmin3 中 我想使用参数化查询 为了更快地调试 只需从我的 php 文件复制并粘贴查询 但我还没有找到添加值的选项 1 2 参数 是否可以 这是我在循环中构建的查询 遵循 NULL 测试的建议here https stacko
  • PGAdmin - 为什么数据库限制(和高级属性)被禁用?

    我希望限制在浏览器树 层次结构中看到的数据库数量 因为它是一个拥有数百个数据库的 AWS 服务器 基于这个答案 https stackoverflow com questions 12663639 how to hide databases
  • plpgsql For循环中的Select语句创建多个CSV文件

    我想重复以下查询 8760 次 将一年中每个小时的 2 替换为 1 到 8760 我们的想法是每小时创建一个单独的 CSV 文件以进行进一步处理 COPY SELECT FROM public completedsolarirad2012
  • 如何使用 GTK 将图像添加到按钮

    我试图将图像添加到带有标签的按钮 但图像不显示 损坏的图像也不显示 stop button gtk button new with label stop image gtk image new from file home cendit E
  • 不小心安装了 python 3.5 与 python3.5:这不好吗?

    我运行预装了 Python 3 4 x 的 Linux Mint 我正在开始一个新项目 想要利用 3 5 左右的东西 所以我决定安装 3 5 并创建指向它的新虚拟环境 所以 我不小心输入了 sudo apt get install pyth
  • 如何访问pgadmin数据库设计器?

    我正在运行 pgadmin 1 18 在选项窗格中 我可以设置数据库设计器的字体 但我发现绝对无法访问此数据库设计器窗口 没有图标或菜单或任何 这是 pgadmin 1 18 下的可用功能吗 应该启用它吗 图形查询生成器 Source ht
  • 无法在 Linux Mint 19.3 中安装 R 3.6.2 中的 httr 包

    我对 R 完全陌生 我尝试安装httr包裹 我首先安装了 pacman 然后尝试通过运行来加载 httrpacman p load httr 它没有成功 它在终端中显示以下消息 将包安装到 home 用户名 R x86 64 pc linu
  • 通过 Bash 在 Windows 上的 Ubuntu 上安装带有 Postgres 的 Windows 10 上的 PgAdmin

    我想在其中安装 Rails 5 Postgres在 Windows 上的 Ubuntu 上 Bash并且还能够通过以下方式访问 Postgres 数据库Windows 版 PgAdmin https www pgadmin org down
  • 使用 pgadmin 连接到远程服务器

    我正在使用 Linode 的本教程 https library linode com databases postgresql pgadmin macos x https library linode com databases postg
  • 在 pgAdmin 中创建 ER 图 [关闭]

    Closed 这个问题正在寻求书籍 工具 软件库等的推荐 不满足堆栈溢出指南 help closed questions 目前不接受答案 请提供有关如何使用附带的管理工具构建基本实体关系图 ERD 的分步答案 postgres pgAdmi
  • pgAdmin 服务器未显示[关闭]

    Closed 这个问题是无关 help closed questions 目前不接受答案 这里总共有n00b 个问题 我正在使用 pgAdmin 尝试管理远程 PostgreSQL 服务器 我单击连接图标 填写表格 然后单击 确定 该表格消
  • 在 docker 中将 pgadmin 连接到 postgres

    我有一个docker compose与服务文件python nginx postgres and pgadmin services postgres image postgres 9 6 env file env volumes postg
  • ruby on Rails“usr/bin/env:‘ruby2.3’:没有这样的文件或目录”

    我打字时遇到问题bundle exec rake db migrate在终端上 然后我收到了类似 usr bin env ruby2 3 No such file or directory 的结果 我遇到了同样的问题 但是运行时 rails

随机推荐