CentOS 6.x (6.10) 到 CentOS 7.x
CentOS 6.x (6.10) to CentOS 7.x
我查看了很多资源,但找不到任何有用的信息。回购协议被破坏或 prepug 问题...
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' [root@localhost upgrade]# yum
localinstall redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm Failed
to set locale, defaulting to C Loaded plugins: fastestmirror Setting
up Local Package Process Examining
redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm:
1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch
redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm: does not update
installed package. Nothing to do [root@localhost upgrade]# rpm
--import http://ftp.plusline.de/centos/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7
curl: (22) The requested URL returned error: 404 Not Found error:
http://ftp.plusline.de/centos/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7:
import read failed(2). [root@localhost upgrade]# [root@localhost
upgrade]# rpm --import
http://isoredirect.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
curl: (22) The requested URL returned error: 404 Not Found error:
http://isoredirect.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7:
import read failed(2).
遗憾的是,在 7.x 发布后不久,从 Centos 6.x 到 7.x 的升级路径就被打破了,目前还没有对 preupg 的修复——在这一点上,官方路线似乎不太可能奏效。此外,我也不知道有任何被证明行之有效的非官方途径。
从 Centos 6x 到 7x 的唯一真实可信的升级路径是将 7 安装到新的 hardware/vm 上并迁移服务。
这让来自其他发行版的人感到惊讶,虽然这不是微不足道的,但通常可以在主要版本之间就地升级,但这似乎不是 Centos 的方式。
我查看了很多资源,但找不到任何有用的信息。回购协议被破坏或 prepug 问题...
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' [root@localhost upgrade]# yum localinstall redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm Failed to set locale, defaulting to C Loaded plugins: fastestmirror Setting up Local Package Process Examining redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm: 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm: does not update installed package. Nothing to do [root@localhost upgrade]# rpm --import http://ftp.plusline.de/centos/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7 curl: (22) The requested URL returned error: 404 Not Found error: http://ftp.plusline.de/centos/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7: import read failed(2). [root@localhost upgrade]# [root@localhost upgrade]# rpm --import http://isoredirect.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7 curl: (22) The requested URL returned error: 404 Not Found error: http://isoredirect.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7: import read failed(2).
遗憾的是,在 7.x 发布后不久,从 Centos 6.x 到 7.x 的升级路径就被打破了,目前还没有对 preupg 的修复——在这一点上,官方路线似乎不太可能奏效。此外,我也不知道有任何被证明行之有效的非官方途径。
从 Centos 6x 到 7x 的唯一真实可信的升级路径是将 7 安装到新的 hardware/vm 上并迁移服务。
这让来自其他发行版的人感到惊讶,虽然这不是微不足道的,但通常可以在主要版本之间就地升级,但这似乎不是 Centos 的方式。