preupg:错误:没有这样的文件或目录:'/ usr / share / preupgrade / README'

时间:2016-08-01 06:41:24

标签: redhat centos6 centos7

yum -y install redhat-upgrade-tool preupgrade-assistant-contents

preupg --force

输出:

preupg: error: [Errno 2] No such file or directory: '/usr/share/preupgrade/README'
The command 'preupg --force' returned a non-zero code: 2

我在这里缺少什么?

1 个答案:

答案 0 :(得分:0)

我刚刚遇到了基于Centos 6.10的Cloudera Express的Docker映像错误。我所做的是手动创建了README和README.kickstart(是的,两者都失败了),取自: https://github.com/upgrades-migrations/preupgrade-assistant/tree/master/doc

解决此特定问题后,该工具将失败:

I/O warning : failed to load external entity "/usr/share/openscap/xsl/security-guide.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 40 element import
xsl:import : unable to load /usr/share/openscap/xsl/security-guide.xsl
I/O warning : failed to load external entity "/usr/share/openscap/xsl/oval-report.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 41 element import
xsl:import : unable to load /usr/share/openscap/xsl/oval-report.xsl
I/O warning : failed to load external entity "/usr/share/openscap/xsl/sce-report.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 42 element import
xsl:import : unable to load /usr/share/openscap/xsl/sce-report.xsl
OpenSCAP Error:: Could not parse XSLT file '/usr/share/preupgrade/xsl/preup.xsl' [oscapxml.c:416]
Unable to open file /root/preupgrade/result.html
Usage: preupg [options]

preupg: error: [Errno 2] No such file or directory: '/root/preupgrade/result.html'

要克服这一问题,我们必须删除现有版本的openscap(我有openscap 1.2),并从http://dev.centos.org/centos/6/upg安装openscap-1.0.8-1.0.1并重新执行升级。

yum erase openscap
yum install http://dev.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm
yum install redhat-upgrade-tool preupgrade-assistant-contents