在OpenStack-Train的packstack安装过程中,由于python版本冲突而导致事务检查错误

wztqucjr  于 2023-01-24  发布在  Python
关注(0)|答案(1)|浏览(713)

openstack的packstack安装失败,错误如下-

/Stage[main]/Nova::Vncproxy/Nova::Generic_service[vncproxy]/Package[nova-vncproxy]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-nova-novncproxy' returned 1: Transaction check error:
  file /usr/bin/websockify from install of python2-websockify-0.8.0-13.el7.noarch conflicts with file from package python3-websockify-0.10.0-3.el8.noarch
  file /usr/share/man/man1/websockify.1.gz from install of python2-websockify-0.8.0-13.el7.noarch conflicts with file from package python3-websockify-0.10.0-3.el8.noarch

上面你可以看到两个文件(/usr/bin/websockify &/usr/share/man/man 1/websockify. 1. gz)在python 2-websockify & python3-websockify之间发生冲突,因此必须删除其中任何一个文件,但是,
在检查系统安装的软件包时,我可以看到python 2-websockify仅在系统中可用,但没有安装在系统中。

[root@controller ~]# yum list | grep -i python2-web
python2-webob.noarch                     1.8.5-1.el7                   @centos-ceph-nautilus
python2-websocket-client.noarch          0.54.0-1.el7                  centos-ceph-nautilus
python2-websockify.noarch                0.8.0-13.el7                  centos-openstack-train

[root@controller ~]# yum list installed | grep -i python2-web
python2-webob.noarch              1.8.5-1.el7            @centos-ceph-nautilus

但是python3-websockify已经安装在系统中了,我无法删除它,因为nova-novnc包依赖于它。

[root@controller ~]# yum list installed | grep -i python3-web
python3-websockify.noarch         0.10.0-3.el8           @/python3-websockify-0.10.0-3.el8.noarch

现在,我怎么才能删除python 2-websockify.noarch这是甚至没有安装在系统上?&当它没有安装,那么为什么提到的错误

from install of python2-websockify-0.8.0-13.el7.noarch conflicts with file from package python3-websockify-0.10.0-3.el8.noarch

我试图删除python 2-websockify,但由于它没有安装,所以给出以下消息-

[root@controller ~]# yum remove python2-websockify-0.8.0-13.el7.noarch
Loaded plugins: fastestmirror
No Match for argument: python2-websockify-0.8.0-13.el7.noarch
No Packages marked for removal
t30tvxxf

t30tvxxf1#

删除epel发布版本后问题解决,因为Puppet是从Epel而不是packstack更新的

yum自动移除epel-释放

相关问题