postgresql - 软件包 'pgadmin4' 没有安装候选,适用于 Ubuntu 20.04
问题描述
升级到 Ubuntu-20.04 后,我无法安装 pgadmin4。此外,任何其他版本的 pgadmin 都不起作用。
它显示以下错误:
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
E: Unable to locate package pgadmin4-apache2
在我的“pgdg.list”文件中,可以从下面的命令访问
sudo nano /etc/apt/sources.list.d/pgdg.list
我有:
deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
解决方案
您必须创建/etc/apt/sources.list.d/pgdg.list
文件并添加以下行:
deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
然后运行:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
最后,运行:
sudo apt-get update && sudo apt-get install pgadmin4
推荐阅读
- javascript - 如何使用 Google Apps 脚本向超链接函数添加变量
- javascript - 在javascript中动态获取所有类函数
- python - 在 SQLAlchemy 中按 dateTime 间隔过滤以下查询
- swift - 如何在 Spritekit 中实现光线投射
- telerik - 根据multiValue参数多次生成telerik报告
- javascript - php 将文件从 url 转换为 blob 到 javascript
- javascript - 如何从 base64 字符串获取 MIME 类型?
- excel - 如何设置文件路径?
- javascript - 在 javascript 中使用 this.setState 更新值时出现问题
- javascript - 重定向到 Facebook Messenger 的链接不适用于移动浏览器,但适用于桌面浏览器