问题描述
我正在尝试在 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 (将#修改为@)