AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[pgadmin](ubuntu)

Martin Hope
cjones
Asked: 2020-04-25 06:48:10 +0800 CST

无法在 20.04 LTS 上安装 pgAdmin 4

  • 19

基本上,请按照此处概述的步骤操作:https ://wiki.postgresql.org/wiki/Apt 。

  1. sudo apt-get install curl ca-certificates gnupg
  2. curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
  3. sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
  4. sudo apt-get update
  5. sudo apt-get install pgadmin4

(最后一步的实际命令包括postgresql-11。我从不这样做,因为我只是想要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

我重做了步骤,结果相同。

我也尝试过执行以下操作,但它需要python3.7我不会安装。

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt eoan-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

已验证focal显示在apt.postgresql.org:

在此处输入图像描述

在那之后有点难为情,不知道该做什么。

建议?

apt postgresql pgadmin
  • 3 个回答
  • 41084 Views
Martin Hope
Sarthak Kumar
Asked: 2020-02-24 16:30:44 +0800 CST

从 Ubuntu 18.04 升级到 19.10 后,pgAdmin4 被删除

  • 1

我刚刚从 Ubuntu 18.04 升级到 19.10。升级后,我注意到 pgAdmin4 已被删除,而其他软件仍然存在,现在当我尝试从终端安装 pgadmin4 时,我得到:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pgadmin4 : Depends: pgadmin4-common (= 4.18-1.pgdg18.04+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经安装了 pgadmin3,但我真的想要 pgadmin4。那可能吗?

software-installation pgadmin 19.10
  • 1 个回答
  • 1587 Views
Martin Hope
Jorge Paladines
Asked: 2019-11-04 19:04:19 +0800 CST

pgadmin4 401 在 Ubuntu 18.04 中未经授权

  • 1

我收到消息:“服务器无法验证您是否有权访问请求的 URL。您提供了错误的凭据(例如密码错误),或者您的浏览器不了解如何提供所需的凭据。”

我使用以下命令安装了 pgadmin 4: sudo apt install pgadmin4 pgadmin4-apache2 并配置了所有内容,但它没有给我访问权限。

我发现我可以访问日志文件:~/.pgAdmin4.startup.log 并使用密钥复制 URL,但是每次出现 401 错误后都必须这样做是不可行的。

我在安装过程中做错了什么?

kubuntu 18.04 pgadmin
  • 1 个回答
  • 1623 Views
Martin Hope
fedora
Asked: 2019-04-16 01:57:28 +0800 CST

在 Ubuntu 18.04 上单独安装 pgAdmin 4

  • 0

我已经在 Ubuntu 18.04 上安装了 PostgreSQL,我想在另一个 Ubuntu 机器上单独安装 pgAdmin 4。是否有可能或对此有任何建议?任何帮助,将不胜感激。

谢谢

postgresql pgadmin
  • 1 个回答
  • 377 Views
Martin Hope
HuLu ViCa
Asked: 2019-03-30 20:44:58 +0800 CST

无法安装 pgAdmin4

  • 0

我正在尝试按照本教程在Ubuntu 18.04上安装pgAdmin4,但我收到以下命令错误:pip install pgadmin4-2.1-py2.py3-none-any.whl

src/_fastmath.c:31:10: fatal error: Python.h: No such file or directory
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/hugolvc/pgAdmin4/pgAdmin4/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Eiam7O/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-xfTq9G/install-record.txt --single-version-externally-managed --compile --install-headers /home/hugolvc/pgAdmin4/pgAdmin4/include/site/python2.7/pycrypto" failed with error code 1 in /tmp/pip-install-Eiam7O/pycrypto/

我只是一步一步地按照教程。

编辑

结果python --version是Python 2.7.15rc1,但我也安装了 3.6 和 3.7。

结果locate x86_64-linux-gnu-gcc是:

/usr/bin/x86_64-linux-gnu-gcc
/usr/bin/x86_64-linux-gnu-gcc-5
/usr/bin/x86_64-linux-gnu-gcc-7
/usr/bin/x86_64-linux-gnu-gcc-ar
/usr/bin/x86_64-linux-gnu-gcc-ar-5
/usr/bin/x86_64-linux-gnu-gcc-ar-7
/usr/bin/x86_64-linux-gnu-gcc-nm
/usr/bin/x86_64-linux-gnu-gcc-nm-5
/usr/bin/x86_64-linux-gnu-gcc-nm-7
/usr/bin/x86_64-linux-gnu-gcc-ranlib
/usr/bin/x86_64-linux-gnu-gcc-ranlib-5
/usr/bin/x86_64-linux-gnu-gcc-ranlib-7
/usr/share/man/man1/x86_64-linux-gnu-gcc-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ar-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ar-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ar.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-nm-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-nm-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-nm.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ranlib-5.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ranlib-7.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-ranlib.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc.1.gz

结果sudo find / -name "Python.h"是:

/home/hugolvc/.local/share/Trash/files/Python-3.7.0/Include/Python.h
find: ‘/run/user/1000/gvfs’: Permission denied
pgadmin
  • 1 个回答
  • 2847 Views
Martin Hope
Bobby Wibowo
Asked: 2018-09-23 04:24:08 +0800 CST

阻止 pgAdmin 4 在启动时启动(ubuntu 16.04)

  • 8

最近,pgAdmin 会在启动时自动启动。我正在使用 KDE,并且在 Autostart 中没有 pgAdmin 的条目,也没有任何条目~/.config/autostart(我猜 Autostart 无论如何都会使用那里的文件)。

kde 16.04 pgadmin
  • 3 个回答
  • 6468 Views
Martin Hope
XCeptable
Asked: 2018-09-06 03:59:56 +0800 CST

如何在 Ubuntu 18.04 服务器模式下安装 PgAdmin4

  • 1

我正在通过 Windows 10 上的 putty 使用 ubuntu 18.04 服务器。我正在尝试在其上安装 PgAdmin4。

我正在使用本教程: How to install PgAdmin4 on Ubuntu 18.04 Server mode

当我到达使用 config_local.py 配置 PgAdmin4步骤并运行命令时:

vim ~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py

终端在屏幕左侧垂直显示几个蓝点,每行都有一个左侧角和屏幕右下角,它写入1,1 All并且终端停止。什么都没发生。

我无法理解该怎么做。我是ubuntu的新手。

software-installation pgadmin
  • 1 个回答
  • 2870 Views
Martin Hope
Dean MacGregor
Asked: 2018-05-04 09:24:39 +0800 CST

在反向代理后面运行 Pgadmin4

  • 2

我正在尝试在 Nginx 反向代理后面运行 pgadmin4,但我遇到了一个问题,因为我需要 pgadmin 知道它在 myhost.com/pgadmin 而不仅仅是在 myhost.com .... 或者至少我认为那就是问题所在。

在其他网络应用程序中,通常有一些名为 webroot 的设置或类似的设置来指定它应该认为自己位于那里,但对于 pgadmin4,我找不到类似的东西。

这个设置是否存在,如果存在,它在哪里?

如果没有,是否有解决方法?

nginx reverse-proxy pgadmin
  • 2 个回答
  • 7925 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve