亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

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

抚顺市| 铜梁县| 牡丹江市| 宜川县| 水富县| 都兰县| 成安县| 安新县| 诏安县| 泸西县| 忻州市| 肇庆市| 建瓯市| 南江县| 大悟县| 怀来县| 阳原县| 丹寨县| 九江县| 搜索| 聊城市| 平乐县| 于都县| 汝城县| 古交市| 安陆市| 渑池县| 屯门区| 错那县| 江川县| 工布江达县| 揭西县| 太仓市| 萨迦县| 五常市| 射阳县| 延寿县| 玉树县| 赫章县| 鄂伦春自治旗| 九龙坡区|