简体   繁体   English

每当尝试在ubuntu中安装新软件包时如何解决梯形失真错误

[英]how to solve the keystone error whenever trying to install new package in ubuntu its getting error like subprocess error

how to solve the keystone error whenever trying to install new package in ubuntu its getting error like 每当尝试在ubuntu中安装新软件包时如何解决梯形失真错误

subprocess error 子流程错误
Reading package lists... Done 正在阅读包装清单...完成
Building dependency tree 建立依赖树
Reading state information... Done 正在读取状态信息...完成
nmap is already the newest version (7.01-2ubuntu2). nmap已经是最新版本(7.01-2ubuntu2)。
0 upgraded, 0 newly installed, 0 to remove and 256 not upgraded. 0升级,0新安装,0删除和256未升级。
1 not fully installed or removed. 1未完全安装或卸下。
After this operation, 0 B of additional disk space will be used. 此操作后,将使用0 B的额外磁盘空间。
Do you want to continue? 你想继续吗? [Y/n] y [Y / n] y
Setting up keystone (2:9.3.0-0ubuntu3.2) ... 设置梯形失真校正(2:9.3.0-0ubuntu3.2)...
Traceback (most recent call last): 追溯(最近一次通话):
File "/usr/bin/keystone-manage", line 6, in 文件“ / usr / bin / keystone-manage”,第6行,在
from keystone.cmd.manage import main 从keystone.cmd.manage导入main
File "/usr/lib/python2.7/dist-packages/keystone/cmd/manage.py", line 32, in 文件“ /usr/lib/python2.7/dist-packages/keystone/cmd/manage.py”,第32行,在
from keystone.cmd import cli 从keystone.cmd导入cli
File "/usr/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 35, in 在第35行的“ /usr/lib/python2.7/dist-packages/keystone/cmd/cli.py”文件中
from keystone.federation import idp 从keystone.federation导入idp
File "/usr/lib/python2.7/dist-packages/keystone/federation/idp.py", line 23, in 在第23行的“ /usr/lib/python2.7/dist-packages/keystone/federation/idp.py”文件中
from saml2 import client_base 从saml2导入client_base
File "/usr/lib/python2.7/dist-packages/saml2/client_base.py", line 13, in 在第13行的“ /usr/lib/python2.7/dist-packages/saml2/client_base.py”文件中
from saml2.entity import Entity 从saml2.entity导入实体
File "/usr/lib/python2.7/dist-packages/saml2/entity.py", line 9, in 在第9行的“ /usr/lib/python2.7/dist-packages/saml2/entity.py”文件中
from saml2.metadata import ENDPOINTS 从saml2.metadata导入ENDPOINTS
File "/usr/lib/python2.7/dist-packages/saml2/metadata.py", line 3, in 文件“ /usr/lib/python2.7/dist-packages/saml2/metadata.py”,第3行,在
from saml2.sigver import security_context 从saml2.sigver导入security_context
File "/usr/lib/python2.7/dist-packages/saml2/sigver.py", line 8, in 在第8行的文件“ /usr/lib/python2.7/dist-packages/saml2/sigver.py”
from OpenSSL import crypto 从OpenSSL导入加密
ImportError: No module named OpenSSL ImportError:没有名为OpenSSL的模块
dpkg: error processing package keystone (--configure): dpkg:错误处理程序包的主要操作(--configure):
subprocess installed post-installation script returned error exit status 1 子进程已安装的安装后脚本返回错误退出状态1
Errors were encountered while processing: 处理时遇到错误:
keystone 拱心石
E: Sub-process /usr/bin/dpkg returned an error code (1) E:子进程/ usr / bin / dpkg返回错误代码(1)

enter image description here 在此处输入图片说明

install upgrade the pip and also upgrade the setuptools then after install the pyopenssl packege 在安装pyopenssl packege之后,安装升级pip并升级setuptools

   sudo pip install --upgrade pip
   sudo pip install --upgrade setuptools 
   sudo pip install pyopenssl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM