CentOS6.5升级为CentOS7.0

本来是想直接用光盘重装7版本但是安装不了,安装过程中显示不了图形界面,u盘也同样,所以想用其他方法?yum update 不行、它只是升级软件及内核并不像windows那样系统升级,其他方法不知有没有?

CentOS6.5升级为CentOS7

升级前:

[root@localhost ~]# cat /proc/version
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# uname -r
2.6.32-431.el6.x86_64
[root@localhost ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

[root@localhost ~]# df -lhT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root ext4 45G 32G 12G 73% /
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 ext4 485M 75M 385M 17% /boot

升级过程:

redhat提供了一个redhat-upgrade-tool的升级工具;
[1]配置软件源
# vim /etc/yum.repos.d/upgrade.repo
[upgrade]
name=upgrade
baseurl=http://dev.centos.org/centos/6/upg/x86_64/
enable=1
gpgcheck=0
[2]安装软件工具
# yum -y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
[3]升级前检查潜在问题
# preupg
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:34s)
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)
Service statuses : 06/11 …finished (time 00:00s)
All installed files : 07/11 …finished (time 00:01s)
All local files : 08/11 …finished (time 00:02s)
All executable files : 09/11 …finished (time 00:01s)
RedHat signed packages : 10/11 …finished (time 00:00s)
CentOS signed packages : 11/11 …finished (time 00:00s)
Assessment of the system, running checks / SCE scripts:
001/096 …done (Configuration Files to Review)
002/096 …done (File Lists for Manual Migration)
003/096 …done (Bacula Backup Software)
004/096 …done (MySQL configuration)
005/096 …done (Migration of the MySQL data stack)
006/096 …done (Changes related to moving from MySQL to MariaDB)
007/096 …done (PostgreSQL upgrade content)
008/096 …done (GNOME Desktop Environment underwent several design modifications in CentOS 7 release)
009/096 …done (KDE Desktop Environment underwent several design modifications in CentOS 7 release)
010/096 …done (several graphic drivers not supported in CentOS 7)
011/096 …done (several input drivers not supported in CentOS 7)
012/096 …done (several kernel networking drivers not available in CentOS 7)
013/096 …done (several kernel storage drivers not available in CentOS 7)
014/096 …done (Names, Options and Output Format Changes in arptables)
015/096 …done (BIND9 running in a chroot environment check.)
016/096 …done (BIND9 configuration compatibility check)
017/096 …done (Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files)
018/096 …done (DNSMASQ configuration compatibility check)
019/096 …done (Dovecot configuration compatibility check)
020/096 …done (Compatibility Between iptables and ip6tables)
021/096 …done (Net-SNMP check)
022/096 …done (Squid configuration compatibility check)
023/096 …done (Reusable Configuration Files)
024/096 …done (VCS repositories)
025/096 …done (Added and extended options for BIND9 configuration)
026/096 …done (Added options in DNSMASQ configuration)
027/096 …done (Packages not signed by CentOS)
028/096 …done (Obsoleted rpms)
029/096 …done (w3m not available in CentOS 7)
030/096 …done (report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package)
031/096 …done (Removed options in coreutils binaries)
032/096 …done (Removed options in gawk binaries)
033/096 …done (Removed options in netstat binary)
034/096 …done (Removed options in quota tools)
035/096 …done (Removed rpms)
036/096 …done (Replaced rpms)
037/096 …done (GMP library incompatibilities)
038/096 …done (package downgrades)
039/096 …done (restore custom selinux configuration)
040/096 …done (General)
041/096 …done (samba shared directories selinux)
042/096 …done (CUPS Browsing/BrowsePoll configuration)
043/096 …done (CVS Package Split)
044/096 …done (FreeRADIUS Upgrade Verification)
045/096 …done (httpd configuration compatibility check)
046/096 …done (bind-dyndb-ldap)
047/096 …done (Identity Management Server compatibility check)
048/096 …done (IPA Server CA Verification)
049/096 …done (NTP configuration)
050/096 …done (Information on time-sync.target)
051/096 …done (OpenLDAP /etc/sysconfig and data compatibility)
052/096 …done (OpenSSH sshd_config migration content)
053/096 …done (OpenSSH sysconfig migration content)
054/096 …done (Configuration for quota_nld service)
055/096 …done (Disk quota netlink message daemon moved into quota-nld package)
056/096 …done (SSSD compatibility check)
057/096 …done (Luks encrypted partition)
058/096 …done (Clvmd and cmirrord daemon management.)
059/096 …done (State of LVM2 services.)
060/096 …done (device-mapper-multipath configuration compatibility check)
061/096 …done (Removal of scsi-target-utils)
062/096 …done (Configuration for warnquota tool)
063/096 …done (Disk quota tool warnquota moved into quota-warnquota package)
064/096 …done (Architecture Support)
065/096 …done (Binary rebuilds)
066/096 …done (Debuginfo packages)
067/096 …done (Cluster and High Availability)
068/096 …done (Quorum implementation)
069/096 …done (fix krb5kdc config file)
070/096 …done (File Systems, Partitions and Mounts Configuration Review)
071/096 …done (Read Only FHS directories)
072/096 …done (Sonamebumped libs)
073/096 …done (SonameKept Reusable Dynamic Libraries)
074/096 …done (Removed .so libs)
075/096 …done (In-place Upgrade Requirements for the /usr/ Directory)
076/096 …done (CA certificate bundles modified)
077/096 …done (Developer Tool Set packages)
078/096 …done (Hyper-V)
079/096 …done (Content for enabling and disabling services based on CentOS 6 system)
080/096 …done (Check for ethernet interface naming)
081/096 …done (User modification in /etc/rc.local and /etc/rc.d/rc.local)
082/096 …done (cgroups configuration compatibility check)
083/096 …done (Plugable authentication modules (PAM))
084/096 …done (Foreign Perl modules)
085/096 …done (Python 2.7.5)
086/096 …done (Ruby 2.0.0)
087/096 …done (SCL collections)
088/096 …done (System kickstart)
089/096 …done (YUM)
090/096 …done (Check for usage of dangerous range of UID/GIDs)
091/096 …done (Incorrect usage of reserved UID/GIDs)
092/096 …done (NIS ypbind config files back-up)
093/096 …done (NIS Makefile back-up)
094/096 …done (NIS server maps check)
095/096 …done (NIS server MAXUID and MAXGID limits check)
096/096 …done (NIS server config file back-up)
Assessment finished (time 01:32s)
Result table with checks and their results for main contents:
—————————————————————————————————————
|Bacula Backup Software |notapplicable |
|MySQL configuration |notapplicable |
|Migration of the MySQL data stack |notapplicable |
|Changes related to moving from MySQL to MariaDB |notapplicable |
|PostgreSQL upgrade content |notapplicable |
|GNOME Desktop Environment underwent several design modifications in CentOS 7 release |notapplicable |
|KDE Desktop Environment underwent several design modifications in CentOS 7 release |notapplicable |
|several graphic drivers not supported in CentOS 7 |notapplicable |
|several input drivers not supported in CentOS 7 |notapplicable |
|Names, Options and Output Format Changes in arptables |notapplicable |
|BIND9 running in a chroot environment check. |notapplicable |
|BIND9 configuration compatibility check |notapplicable |
|Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files |notapplicable |
|DNSMASQ configuration compatibility check |notapplicable |
|Dovecot configuration compatibility check |notapplicable |
|Net-SNMP check |notapplicable |
|Squid configuration compatibility check |notapplicable |
|Added and extended options for BIND9 configuration |notapplicable |
|Added options in DNSMASQ configuration |notapplicable |
|w3m not available in CentOS 7 |notapplicable |
|report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package |notapplicable |
|restore custom selinux configuration |notapplicable |
|samba shared directories selinux |notapplicable |
|FreeRADIUS Upgrade Verification |notapplicable |
|httpd configuration compatibility check |notapplicable |
|bind-dyndb-ldap |notapplicable |
|Identity Management Server compatibility check |notapplicable |
|IPA Server CA Verification |notapplicable |
|OpenLDAP /etc/sysconfig and data compatibility |notapplicable |
|SSSD compatibility check |notapplicable |
|Clvmd and cmirrord daemon management. |notapplicable |
|device-mapper-multipath configuration compatibility check |notapplicable |
|Removal of scsi-target-utils |notapplicable |
|Quorum implementation |notapplicable |
|fix krb5kdc config file |notapplicable |
|Ruby 2.0.0 |notapplicable |
|NIS ypbind config files back-up |notapplicable |
|NIS Makefile back-up |notapplicable |
|NIS server maps check |notapplicable |
|NIS server MAXUID and MAXGID limits check |notapplicable |
|NIS server config file back-up |notapplicable |
|several kernel networking drivers not available in CentOS 7 |pass |
|several kernel storage drivers not available in CentOS 7 |pass |
|Compatibility Between iptables and ip6tables |pass |
|Reusable Configuration Files |pass |
|NTP configuration |pass |
|Information on time-sync.target |pass |
|OpenSSH sshd_config migration content |pass |
|Configuration for quota_nld service |pass |
|Disk quota netlink message daemon moved into quota-nld package |pass |
|Luks encrypted partition |pass |
|Configuration for warnquota tool |pass |
|Architecture Support |pass |
|Debuginfo packages |pass |
|Cluster and High Availability |pass |
|Read Only FHS directories |pass |
|In-place Upgrade Requirements for the /usr/ Directory |pass |
|CA certificate bundles modified |pass |
|Developer Tool Set packages |pass |
|Hyper-V |pass |
|Check for ethernet interface naming |pass |
|User modification in /etc/rc.local and /etc/rc.d/rc.local |pass |
|cgroups configuration compatibility check |pass |
|Plugable authentication modules (PAM) |pass |
|SCL collections |pass |
|System kickstart |pass |
|Incorrect usage of reserved UID/GIDs |pass |
|VCS repositories |informational |
|Removed options in coreutils binaries |informational |
|Removed options in gawk binaries |informational |
|Removed options in netstat binary |informational |
|Removed options in quota tools |informational |
|GMP library incompatibilities |informational |
|CVS Package Split |informational |
|Disk quota tool warnquota moved into quota-warnquota package |informational |
|File Systems, Partitions and Mounts Configuration Review |informational |
|Sonamebumped libs |informational |
|SonameKept Reusable Dynamic Libraries |informational |
|Removed .so libs |informational |
|Foreign Perl modules |informational |
|YUM |informational |
|Replaced rpms |fixed |
|package downgrades |fixed |
|CUPS Browsing/BrowsePoll configuration |fixed |
|OpenSSH sysconfig migration content |fixed |
|State of LVM2 services. |fixed |
|Configuration Files to Review |needs_inspection |
|File Lists for Manual Migration |needs_inspection |
|Obsoleted rpms |needs_inspection |
|Binary rebuilds |needs_inspection |
|Python 2.7.5 |needs_inspection |
|Check for usage of dangerous range of UID/GIDs |needs_inspection |
|Packages not signed by CentOS |needs_action |
|Removed rpms |needs_action |
|General |needs_action |
|Content for enabling and disabling services based on CentOS 6 system |needs_action |
—————————————————————————————————————
Tarball with results is stored here /root/preupgrade-results/preupg_results-150112105344.tar.gz .
The latest assessment is stored in directory /root/preupgrade .
Summary information:
We found some potential in-place upgrade risks.
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 .

[root@localhost ~]# preupg –riskcheck –verbose
INPLACERISK: HIGH: We detected some non-CentOS signed packages, you can find the list in /root/preupgrade/./kickstart/noncentospkgs. You need to handle them yourself!
INPLACERISK: HIGH: After upgrading to CentOS 7 there are still some el6 packages left. Add –cleanup-post option to redhat-upgrade-tool if you want to remove them automatically.
INPLACERISK: HIGH: There were changes in SELinux policies between CentOS 6 and CentOS 7. Please, check solution in order to resolve this issue.
INPLACERISK: HIGH: The service autofs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable autofs && systemctl start autofs.service .
INPLACERISK: HIGH: The service blk-availability on CentOS 7 is disabled by default. Enable them via commands: systemctl enable blk-availability && systemctl start blk-availability.service .
INPLACERISK: HIGH: The service certmonger on CentOS 7 is disabled by default. Enable them via commands: systemctl enable certmonger && systemctl start certmonger.service .
INPLACERISK: HIGH: The service haldaemon on CentOS 7 is disabled by default. Enable them via commands: systemctl enable haldaemon && systemctl start haldaemon.service .
INPLACERISK: HIGH: The service ip6tables on CentOS 7 is disabled by default. Enable them via commands: systemctl enable ip6tables && systemctl start ip6tables.service .
INPLACERISK: HIGH: The service mcelogd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable mcelogd && systemctl start mcelogd.service .
INPLACERISK: HIGH: The service messagebus on CentOS 7 is disabled by default. Enable them via commands: systemctl enable messagebus && systemctl start messagebus.service .
INPLACERISK: HIGH: The service netfs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable netfs && systemctl start netfs.service .
INPLACERISK: HIGH: The service network on CentOS 7 is disabled by default. Enable them via commands: systemctl enable network && systemctl start network.service .
INPLACERISK: HIGH: The service nfslock on CentOS 7 is disabled by default. Enable them via commands: systemctl enable nfslock && systemctl start nfslock.service .
INPLACERISK: HIGH: The service portreserve on CentOS 7 is disabled by default. Enable them via commands: systemctl enable portreserve && systemctl start portreserve.service .
INPLACERISK: HIGH: The service postfix on CentOS 7 is disabled by default. Enable them via commands: systemctl enable postfix && systemctl start postfix.service .
INPLACERISK: HIGH: The service rpcgssd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable rpcgssd && systemctl start rpcgssd.service .
INPLACERISK: HIGH: The service udev-post on CentOS 7 is disabled by default. Enable them via commands: systemctl enable udev-post && systemctl start udev-post.service .
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed (obsoleted) between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them.
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them.
INPLACERISK: MEDIUM: Package coreutils-libs not provided by its replacement coreutils. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package libudev not provided by its replacement systemd-libs. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2400-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2200-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package redhat-lsb-graphics not provided by its replacement redhat-lsb-desktop. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package bfa-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package rt73usb-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql23xx-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2100-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2500-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package rt61pci-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: having one of [mdadm nss-util nss-tools audit libitm cmake libX11-common ca-certificates gtk2 libdrm pixman-devel mesa-libGLU gtk2-devel tzdata tzdata-java nspr elfutils-libelf nss openldap elfutils-libs libref_array libini_config java-1.7.0-openjdk libipa_hbac xorg-x11-proto-devel elfutils sssd systemtap-runtime mcelog libxcb libxcb-devel libX11 mesa-libGL pixman mesa-dri-drivers openscap certmonger audit-libs libpciaccess biosdevname sssd-client nss-sysinit java-1.6.0-openjdk libsss_idmap libipa_hbac-python libX11-devel kpartx mesa-private-llvm] package installed breaks upgrade
INPLACERISK: MEDIUM: We detected some soname bumps in the libraries installed on the system. This may break the functionality of some of your 3rd party applications. They may need rebuild. Please check their requirements.
INPLACERISK: MEDIUM: We detected some .so libraries installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of some of your 3rd party applications.
INPLACERISK: MEDIUM: The name cups-lpd was changed on CentOS 7 to one of these services: cups-lpd.socket cups-lpd@.service
INPLACERISK: MEDIUM: The service mysqld is not handled by any package and will not be automatically enabled after in-place upgrade.
INPLACERISK: SLIGHT: We detected some files where modifications are not tracked in the rpms. You may need to check their functionality after successful upgrade.
INPLACERISK: SLIGHT: We detected some files untracked by rpms. Some of these may need manual check/migration after redhat-upgrade-tool and/or can cause conflicts or troubles during the installation. Try to reduce unnecessary untracked files before running redhat-upgrade-tool.
INPLACERISK: SLIGHT: We detected some packages installed on the system changed their name between CentOS 6 and CentOS 7. Although they should be compatible, monitoring after the update is recommended.
INPLACERISK: SLIGHT: export shell commands will be deleted from /etc/sysconfig/sshd
INPLACERISK: SLIGHT: Some binaries untracked by RPM were discovered on the system and may need rebuild after upgrade.
INPLACERISK: SLIGHT: Some scripts untracked by RPM were discovered on the system and may not work properly after upgrade.
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/gtk-2.0 is owned by an RPM package that was not signed by CentOS.
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/report is not owned by any RPM package.
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/reportclient is not owned by any RPM package.

[root@localhost ~]# redhat-upgrade-tool –force –cleanup-post –network 7.0 –instrepo=http://mirror.centos.org/centos/7.0.1406/os/x86_64
setting up repos…
No upgrade available for the following repos: base extras updates
.treeinfo | 1.1 kB 00:00
getting boot images…
vmlinuz-redhat-upgrade-tool | 4.7 MB 00:30
initramfs-redhat-upgrade-tool.img | 32 MB 09:54
setting up update…
finding updates 100% [==========================================================]
(1/920): GConf2-3.2.6-8.el7.x86_64.rpm | 1.0 MB 00:06
(2/920): ORBit2-2.14.19-13.el7.x86_64.rpm | 176 kB 00:01

(616/920): perl-File-Fetch-0.42-2.el7.noarch.rpm                              |  27 kB     00:00

Downloading failed: 下载软件包时出错。

perl-Test-Harness-3.28-2.el7.noarch: failure: Packages/perl-Test-Harness-3.28-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

perl-IO-HTML-1.00-2.el7.noarch: failure: Packages/perl-IO-HTML-1.00-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

perl-XML-Grove-0.46alpha-52.el7.noarch: failure: Packages/perl-XML-Grove-0.46alpha-52.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

sed-4.2.2-5.el7.x86_64: failure: Packages/sed-4.2.2-5.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

redhat-lsb-cxx-4.1-24.el7.x86_64: failure: Packages/redhat-lsb-cxx-4.1-24.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

python-nose-1.3.0-2.el7.noarch: failure: Packages/python-nose-1.3.0-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

perl-HTTP-Date-6.02-8.el7.noarch: failure: Packages/perl-HTTP-Date-6.02-8.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

tcp_wrappers-libs-7.6-77.el7.x86_64: failure: Packages/tcp_wrappers-libs-7.6-77.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

samba-client-4.1.1-31.el7.x86_64: failure: Packages/samba-client-4.1.1-31.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

tzdata-2014b-1.el7.noarch: failure: Packages/tzdata-2014b-1.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

xcb-util-0.3.9-4.el7.x86_64: failure: Packages/xcb-util-0.3.9-4.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

xorg-x11-fonts-Type1-7.5-9.el7.noarch: failure: Packages/xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

perl-podlators-2.5.1-3.el7.noarch: failure: Packages/perl-podlators-2.5.1-3.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

samba-winbind-clients-4.1.1-31.el7.x86_64: failure: Packages/samba-winbind-clients-4.1.1-31.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

2:vim-minimal-7.4.160-1.el7.x86_64: failure: Packages/vim-minimal-7.4.160-1.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

1:qt-x11-4.8.5-8.el7.x86_64: failure: Packages/qt-x11-4.8.5-8.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64: failure: Packages/texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

perl-Version-Requirements-0.101022-244.el7.noarch: failure: Packages/perl-Version-Requirements-0.101022-244.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

rpm-4.11.1-16.el7.x86_64: failure: Packages/rpm-4.11.1-16.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

sound-theme-freedesktop-0.8-3.el7.noarch: failure: Packages/sound-theme-freedesktop-0.8-3.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

失败后再次执行该语句即可

由于此过程时间比较长,中间很可能因网络原因而中断,再次执行命令会接着上次出错的继续(304=920-616)

[root@localhost ~]# redhat-upgrade-tool –force –cleanup-post –network 7.0 –instrepo=http://mirror.centos.org/centos/7.0.1406/os/x86_64

setting up repos…

No upgrade available for the following repos: base extras updates

.treeinfo                                                                                                                                                                          | 1.1 kB     00:00

getting boot images…

setting up update…

verify local files 100% [================================================================================================================================================================================]

(1/304): perl-File-Listing-6.04-7.el7.noarch.rpm                                                                                                                                   |  13 kB     00:00

(2/304): perl-File-Path-2.09-2.el7.noarch.rpm                                                                                                                                      |  26 kB     00:00

……

rpm transaction 100% [===================================================================================================================================================================================]

rpm install 100% [=======================================================================================================================================================================================]

setting up system for upgrade

Finished. Reboot to start upgrade.

You have new mail in /var/spool/mail/root

[root@localhost ~]# reboot

重启之后,机器会使用下载好的包开始更新自己,依据这机器的处理速度不同相应的解析时间会有所不同,期望数分钟而不是几秒。

[5]升级完成,而且文件系统的类型仍然是升级前的ext4

[root@localhost ~]# cat /etc/redhat-release

CentOS Linux release 7.0.1406 (Core)

[root@localhost ~]# lsb_release -a

LSB Version::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

Distributor ID:CentOS

Description:CentOS Linux release 7.0.1406 (Core)

Release:7.0.1406

Codename:Core

[root@localhost ~]# cat /proc/version

Linux version 3.10.0-123.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon Jun 30 12:09:22 UTC 2014

[root@localhost ~]# uname -a

Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# uname -r

3.10.0-123.el7.x86_64

[root@localhost ~]# df -lhT

文件系统                     类型      容量  已用  可用 已用% 挂载点

/dev/mapper/VolGroup-lv_root ext4       45G   32G   12G   74% /

devtmpfs                     devtmpfs  3.9G     0  3.9G    0% /dev

tmpfs                        tmpfs     3.9G     0  3.9G    0% /dev/shm

tmpfs                        tmpfs     3.9G  8.3M  3.9G    1% /run

tmpfs                        tmpfs     3.9G     0  3.9G    0% /sys/fs/cgroup

/dev/sda1                    ext4      477M   91M  358M   21% /boot

Leave a Reply