91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

CentOS 6升級到CentOS 7失敗的解決辦法

發布時間:2020-05-25 21:03:32 來源:億速云 閱讀:965 作者:鴿子 欄目:系統運維

操作系統: CentOS6.10

本系統源

#wget  -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

1.查看當前CentOS版本

[root@sky9890 sky9890]# cat /etc/redhat-release 

CentOS release 6.10 (Final)

2.更新源

#vim /etc/yum.repos.d/upgrade.repo 

[upgrade]

name=upgrade

baseurl=https://buildlogs.centos.org/centos/6/upg/x86_64/

enable=1

gpgcheck=0

3.卸載6.x自帶的較新的助手,并安裝老版,否則會報錯。

#先刪除舊版本

#yum erase openscap -y 

#以下無法連接

#yum install http://dev.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm -y   

#以下兩個連接都有效

yum install ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6.5/x86_64/updates/fastbugs/openscap-1.0.8-1.el6_5.x86_64.rpm  -y   

yum install https://buildlogs.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm -y  

4.安裝升級系統助手

#利用到upgrade.repo源

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

5.檢測是否可以升級

#preupg -s CentOS6_7

Preupg tool doesn't do the actual upgrade.

Please ensure you have backed up your system and/or data in the event of a failed upgrade

 that would require a full re-install of the system from installation media.

Do you want to continue? y/n

y

Gathering logs used by preupgrade assistant:

All installed packages : 01/11 ...finished (time 00:00s)

All changed files      : 02/11 ...finished (time 01:56s)

Changed config files   : 03/11 ...finished (time 00:00s)

All users              : 04/11 ...finished (time 00:00s)

All groups             : 05/11 ...finished (time 00:00s)

RedHat signed packages : 10/11 ...finished (time 00:00s)

CentOS signed packages : 11/11 ...finished (time 00:00s)

......

Tarball with results is stored here /root/preupgrade-results/preupg_results-200304120406.tar.gz .

The latest assessment is stored in directory /root/preupgrade .

Summary information:

We found some critical issues. In-place upgrade is not advised.

Read the file /root/preupgrade/result.html for more details.

Upload results to UI by command:

e.g. preupg -u http://127.0.0.1:8099/submit/ -r /root/preupgrade-results/preupg_results-*.tar.gz .

#以下的報錯,主要原因是沒有用最新的openscap軟件包

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'

6.導入CentOS7的key

#rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7

7.開始升級

#嘗試過多個系統版本,均無法升級。

#centos-upgrade-tool-cli --network 7 --instrepo=http://vault.centos.org/centos/7.2.1511/os/x86_64/

setting up repos...

cmdline-instrepo                                                                                  

cmdline-instrepo/primary_db                                                                       

No upgrade available for the following repos: base extras updates upgrade.treeinfo                                                            

preupgrade-assistant risk check found EXTREME risks for this upgrade.

Run preupg --riskcheck --verbose to view these risks.

Continuing with this upgrade is not recommended.


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

湘潭市| 民乐县| 高碑店市| 高清| 福州市| 绥阳县| 廉江市| 阳谷县| 高邮市| 布尔津县| 惠水县| 襄城县| 句容市| 和林格尔县| 乌鲁木齐市| 昭觉县| 赤城县| 崇义县| 盐源县| 台中市| 万全县| 怀柔区| 利辛县| 北安市| 建瓯市| 二连浩特市| 内黄县| 泗洪县| 垣曲县| 松桃| 临洮县| 华宁县| 荔浦县| 祁阳县| 高青县| 左云县| 望谟县| 阿城市| 山丹县| 邵东县| 秦安县|