如何解决在 ubuntu 18.04 中安装 pgadmin4 时出错
我正在尝试在 ubuntu 18.04 上安装 pgadmin,但出现以下错误。我也试过 rm 并重新安装,但它得到了同样的错误。
$ sudo apt-get install pgadmin4 pgadmin4-apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
pgadmin4-apache2 is already the newest version (4.25-1.pgdg18.04+1).
pgadmin4 is already the newest version (4.29).
0 upgraded,0 newly installed,0 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation,0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up pgadmin4-apache2 (4.25-1.pgdg18.04+1) ...
apache2_invoke pgadmin4: already enabled
Traceback (most recent call last):
File "setup.py",line 18,in <module>
from pgadmin.model import db,User,Version,ServerGroup,Server,\
File "/usr/share/pgadmin4/web/pgadmin/__init__.py",line 19,in <module>
from flask import Flask,abort,request,current_app,session,url_for
ModuleNotFoundError: No module named 'flask'
dpkg: error processing package pgadmin4-apache2 (--configure):
installed pgadmin4-apache2 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
pgadmin4-apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
我试过了,
sudo apt update --fix-missing
sudo apt install -f
sudo dpkg --configure -a
但它不起作用 请任何人帮助我
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。