任务:

  • 备份已安装的glibc为RPM包,还原。

 

0.之下在系统CentOS 陆.三 x8陆_64上操作

1.妄图运营程序,提醒”libc.so.6: version `GLIBC_2.1肆’ not
found”,原因是系统的glibc版本太低,软件编写翻译时行使了较高版本的glibc引起的:

  1. [ghui@StuOS bin]$ pwd  
  2. /var/VMdisks/cross/mingw32/bin  
  3. [ghui@StuOS bin]$ ls  
  4. lrelease     QtCore4.dll         QtNetwork4.dll      QtSql4.dll     QtXml4.dll  
  5. moc          QtDeclarative4.dll  QtOpenGL4.dll       QtSvg4.dll     rcc  
  6. phonon4.dll  QtGui4.dll          QtScript4.dll       QtTest4.dll    uic  
  7. qmake        QtMultimedia4.dll   QtScriptTools4.dll  QtWebKit4.dll  
  8. [ghui@StuOS bin]$ ./qmake   
  9. ./qmake: /lib64/libc.so.6: version `GLIBC_2.14′ not found (required by ./qmake)  

    [ghui@StuOS bin]$ pwd
    /var/VMdisks/cross/mingw32/bin
    [ghui@StuOS bin]$ ls
    lrelease QtCore4.dll QtNetwork4.dll QtSql4.dll QtXml4.dll
    moc QtDeclarative4.dll QtOpenGL4.dll QtSvg4.dll rcc
    phonon4.dll QtGui4.dll QtScript4.dll QtTest4.dll uic
    qmake QtMultimedia4.dll QtScriptTools4.dll QtWebKit4.dll
    [ghui@StuOS bin]$ ./qmake
    ./qmake: /lib64/libc.so.6: version `GLIBC_2.14′ not found (required by ./qmake)

 

二.查看系统glibc帮忙的本子:

  1. [ghui@StuOS bin]$ strings /lib64/libc.so.6 |grep GLIBC_  
  2. GLIBC_2.2.5  
  3. GLIBC_2.2.6  
  4. GLIBC_2.3  
  5. GLIBC_2.3.2  
  6. GLIBC_2.3.3  
  7. GLIBC_2.3.4  
  8. GLIBC_2.4  
  9. GLIBC_2.5  
  10. GLIBC_2.6  
  11. GLIBC_2.7  
  12. GLIBC_2.8  
  13. GLIBC_2.9  
  14. GLIBC_2.10  
  15. GLIBC_2.11  
  16. GLIBC_2.12  
  17. GLIBC_PRIVATE  

    [ghui@StuOS bin]$ strings /lib64/libc.so.6 |grep GLIBC_
    GLIBC_2.2.5
    GLIBC_2.2.6
    GLIBC_2.3
    GLIBC_2.3.2
    GLIBC_2.3.3
    GLIBC_2.3.4
    GLIBC_2.4
    GLIBC_2.5
    GLIBC_2.6
    GLIBC_2.7
    GLIBC_2.8
    GLIBC_2.9
    GLIBC_2.10
    GLIBC_2.11
    GLIBC_2.12
    GLIBC_PRIVATE

  18. [ghui@StuOS bin]$ rpm -qa |grep glibc  

  19. glibc-static-2.12-1.80.el6_3.6.x86_64  
  20. glibc-headers-2.12-1.80.el6_3.6.x86_64  
  21. glibc-common-2.12-1.80.el6_3.6.x86_64  
  22. glibc-devel-2.12-1.80.el6_3.6.x86_64  
  23. glibc-static-2.12-1.80.el6_3.6.i686  
  24. glibc-devel-2.12-1.80.el6_3.6.i686  
  25. glibc-2.12-1.80.el6_3.6.i686  
  26. glibc-2.12-1.80.el6_3.6.x86_64  

    [ghui@StuOS bin]$ rpm -qa |grep glibc
    glibc-static-2.12-1.80.el6_3.6.x86_64
    glibc-headers-2.12-1.80.el6_3.6.x86_64
    glibc-common-2.12-1.80.el6_3.6.x86_64
    glibc-devel-2.12-1.80.el6_3.6.x86_64
    glibc-static-2.12-1.80.el6_3.6.i686
    glibc-devel-2.12-1.80.el6_3.6.i686
    glibc-2.12-1.80.el6_3.6.i686
    glibc-2.12-1.80.el6_3.6.x86_64

三.方可看看万丈只协助二.1贰版本,所以记挂编写翻译消除这么些主题素材:

【澳门金沙国际】rpmrebuild备份glibc为rpm包。       a.
到下载最新版本,笔者那边下载了glibc-2.14.tar.xz 那么些本子,解压到率性目录计划编写翻译

       b.这里解压到/var/VMdisks/glibc-二.14/

  1. [ghui@StuOS bin]$ cd /var/VMdisks/glibc-2.14/  
  2. [ghui@StuOS glibc-2.14]$ pwd  
  3. /var/VMdisks/glibc-2.14  
  4. [ghui@StuOS glibc-2.14]$ ls  
  5. abilist            config.h.in           intl           README.libm  
  6. abi-tags           config.log            io             resolv  
  7. aclocal.m4         config.make.in        libc-abis      resource  
  8. aout               configure             libidn         rt  
  9. argp               configure.in          libio          Rules  
  10. assert             conform               LICENSES       scripts  
  11. autom4te.cache     CONFORMANCE           locale         setjmp  
  12. bits               COPYING               localedata     shadow  
  13. BUGS               COPYING.LIB           login          shlib-versions  
  14. build              cppflags-iterator.mk  mach           signal  
  15. CANCEL-FCT-WAIVE   crypt                 Makeconfig     socket  
  16. CANCEL-FILE-WAIVE  csu                   Makefile       soft-fp  
  17. catgets            ctype                 Makefile.in    stdio-common  
  18. ChangeLog          debug                 Makerules      stdlib  
  19. ChangeLog.1        dirent                malloc         streams  
  20. ChangeLog.10       dlfcn                 manual         string  
  21. ChangeLog.11       elf                   math           sunrpc  
  22. ChangeLog.12       extra-lib.mk          misc           sysdeps  
  23. ChangeLog.13       extra-modules.mk      NAMESPACE      sysvipc  
  24. ChangeLog.14       FAQ                   NEWS           termios  
  25. ChangeLog.15       FAQ.in                nis            test-skeleton.c  
  26. ChangeLog.16       gmon                  NOTES          time  
  27. ChangeLog.17       gnulib                nptl           timezone  
  28. ChangeLog.2        grp                   nptl_db        tls.make.c  
  29. ChangeLog.3        gshadow               nscd           version.h  
  30. ChangeLog.4        hesiod                nss            Versions.def  
  31. ChangeLog.5        hurd                  o-iterator.mk  wcsmbs  
  32. ChangeLog.6        iconv                 po             wctype  
  33. ChangeLog.7        iconvdata             posix          WUR-REPORT  
  34. ChangeLog.8        include               PROJECTS  
  35. ChangeLog.9        inet                  pwd  
  36. conf               INSTALL               README  

    [ghui@StuOS bin]$ cd /var/VMdisks/glibc-2.14/
    [ghui@StuOS glibc-2.14]$ pwd
    /var/VMdisks/glibc-2.14
    [ghui@StuOS glibc-2.14]$ ls
    abilist config.h.in intl README.libm
    abi-tags config.log io resolv
    aclocal.m4 config.make.in libc-abis resource
    aout configure libidn rt
    argp configure.in libio Rules
    assert conform LICENSES scripts
    autom4te.cache CONFORMANCE locale setjmp
    bits COPYING localedata shadow
    BUGS COPYING.LIB login shlib-versions
    build cppflags-iterator.mk mach signal
    CANCEL-FCT-WAIVE crypt Makeconfig socket
    CANCEL-FILE-WAIVE csu Makefile soft-fp
    catgets ctype Makefile.in stdio-common
    ChangeLog debug Makerules stdlib
    ChangeLog.1 dirent malloc streams
    ChangeLog.10 dlfcn manual string
    ChangeLog.11 elf math sunrpc
    ChangeLog.12 extra-lib.mk misc sysdeps
    ChangeLog.13 extra-modules.mk NAMESPACE sysvipc
    ChangeLog.14 FAQ NEWS termios
    ChangeLog.15 FAQ.in nis test-skeleton.c
    ChangeLog.16 gmon NOTES time
    ChangeLog.17 gnulib nptl timezone
    ChangeLog.2 grp nptl_db tls.make.c
    ChangeLog.3 gshadow nscd version.h
    ChangeLog.4 hesiod nss Versions.def
    ChangeLog.5 hurd o-iterator.mk wcsmbs
    ChangeLog.6 iconv po wctype
    ChangeLog.7 iconvdata posix WUR-REPORT
    ChangeLog.8 include PROJECTS
    ChangeLog.9 inet pwd
    conf INSTALL README

      c.在glibc源码目录创设营造目录,并cd进入创设目录

  1. [ghui@StuOS glibc-2.14]$ mkdir build  

    [ghui@StuOS glibc-2.14]$ mkdir build

  2. [ghui@StuOS glibc-2.14]$ cd build  

    [ghui@StuOS glibc-2.14]$ cd build

    d.运行configure配置,make && sudo  make install

  1. [ghui@StuOS build]$ ../configure –prefix=/opt/glibc-2.14  
  2. [ghui@StuOS build]$ make -j4   
  3. [ghui@StuOS build]$ sudo make install  
  4. [sudo] password for ghui:   

    [ghui@StuOS build]$ ../configure –prefix=/opt/glibc-2.14
    [ghui@StuOS build]$ make -j4
    [ghui@StuOS build]$ sudo make install
    [sudo] password for ghui:

四.一时半刻修改际遇变量

  1. [ghui@StuOS bin]$ export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH  

    [ghui@StuOS bin]$ export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH

  2. [ghui@StuOS glibc-2.14]$ cd /var/VMdisks/cross/mingw32/bin/  

    [ghui@StuOS glibc-2.14]$ cd /var/VMdisks/cross/mingw32/bin/

 

5. 在 ~/.bashrc 或者 澳门金沙国际 ,~/.bash_profile 中插手 export
语句,前者在历次登入和每一次展开 shell
都读取一回,后者只在登入时读取2回。笔者的习贯是加到 ~/.bashrc 中,在该文件的未尾,可利用如下语句来使设置生效:

 LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH
 LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH

修改完后,记得关掉当前极端同仁一视新张开一个新的极端,从而使地点的安插生效。

  1. [ghui@StuOS bin]$ ./qmake   
  2. Usage: ./qmake [mode] [options] [files]  
  3.   
  4. QMake has two modes, one mode for generating project files based on  
  5. some heuristics, and the other for generating makefiles. Normally you  
  6. shouldn’t need to specify a mode, as makefile generation is the default  
  7. mode for qmake, but you may use this to test qmake on an existing project  

From:

 

编写翻译进级glibc, 易引起内核进不去,不可能自由晋级:

  多少个相关库强制做软件链接

 

另外,centos7.0支持到glibc-2.17.

linux上装最新版本chrome, android studio都要求至少安装glibc-二.一5

 

 

编写翻译安装glibc几个方案: 
1.下载glibc

wget  http://ftp.gnu.org/gnu/glibc/glibc-2.3.2.tar.gz

2.下载glibc-linuxthreads

wget http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.2.tar.gz

3.解压

tar -zxvf glibc-2.3.2.tar.gz
cd glibc-2.3.2
tar -zxvf ../glibc-linuxthreads-2.3.2.tar.gz
cd ..
./glibc-2.3.2/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/lib --with-headers=/usr/include
make
make install

注意点:
1、要将glibc-linuxthreads解压到glibc目录下。
2、不可能在glibc当前目录下运作configure

安德拉HEL陆误安装奥迪Q7HEL7包导致glibc被升高后系统崩溃管理办法

途胜HEL陆误使用了宝马X3HEL七的光盘源,安装了有个别RPM包之后,导致glibc被晋级,进而导致系统崩溃。

yum install进级记录日志

[[email protected]
~]# yum install ftp
Loaded plugins: product-id, refresh-packagekit, security,
subscription-manager
This system is not registered to Red Hat Subscription Management. You
can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package ftp.x86_64 0:0.17-67.el7 will be installed
–> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package:
ftp-0.17-67.el7.x86_64
–> Running transaction check
—> Package glibc.x86_64 0:2.12-1.132.el6 will be updated
–> Processing Dependency: glibc = 2.12-1.132.el6 for package:
glibc-headers-2.12-1.132.el6.x86_64
–> Processing Dependency: glibc = 2.12-1.132.el6 for package:
glibc-common-2.12-1.132.el6.x86_64
–> Processing Dependency: glibc = 2.12-1.132.el6 for package:
glibc-devel-2.12-1.132.el6.x86_64
—> Package glibc.x86_64 0:2.17-157.el7 will be an update
–> Running transaction check
—> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated
—> Package glibc-common.x86_64 0:2.17-157.el7 will be an update
–> Processing Dependency: /usr/bin/bash for package:
glibc-common-2.17-157.el7.x86_64
—> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be updated
—> Package glibc-devel.x86_64 0:2.17-157.el7 will be an update
—> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be updated
—> Package glibc-headers.x86_64 0:2.17-157.el7 will be an update
–> Running transaction check
—> Package bash.x86_64 0:4.1.2-15.el6_4 will be updated
—> Package bash.x86_64 0:4.2.46-20.el7_2 will be an update
–> Processing Conflict: bash-4.2.46-20.el7_2.x86_64 conflicts
filesystem < 3
–> Restarting Dependency Resolution with new changes.
–> Running transaction check
—> Package filesystem.x86_64 0:2.4.30-3.el6 will be updated
—> Package filesystem.x86_64 0:3.2-21.el7 will be an update
–> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================
Package                    Arch                Version                 

准备:

  1. 下载rpmrebuild
  2. 上传至服务器

     密码: wgy9

    Repository              Size

Installing:
ftp                        x86_64              0.17-67.el7             
    rhel73-iso              61 k
Updating:
filesystem                x86_64              3.2-21.el7               
  rhel73-iso              1.0 M
Updating for dependencies:
bash                      x86_64              4.2.46-20.el7_2         
    rhel73-iso              1.0 M
glibc                      x86_64              2.17-157.el7           
    rhel73-iso              3.6 M
glibc-common              x86_64              2.17-157.el7             
  rhel73-iso              11 M
glibc-devel                x86_64              2.17-157.el7           
    rhel73-iso              1.1 M
glibc-headers              x86_64              2.17-157.el7           
    rhel73-iso              668 k

操作:

  壹.以root用户登6

  2.解压rpmrebuild.rar  

#cd/tmp

#unrar x rpmrebuild.rar /usr/lib

  

  三.改换/usr/lib/rpmrebuild目录下的文书权限。

#cd /usr/lib/rpmrebuild/

#chmod 755 *

  

  四.开立/opt/ataebackup目录备份原glibc版本消息。

#mkdir -p /opt/ataebackup
#rpm -qa |grep glibc > /opt/ataebackup/glibc_version.txt
#rpm -qa |grep ^nscd > /opt/ataebackup/nscd_version.txt

  

  5.逐项试行以下命令备份原有的glibc。

# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-32bit
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-devel
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-devel-32bit
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-html
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-i18ndata
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-info
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-locale
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-locale-32bit
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-profile
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-profile-32bit
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup nscd

  

极度处理:

  • 若提示是还是不是继续及输入版本时,请依次输入y和N。比如,实践进度如下:  

    /usr/lib/rpmrebuild/rpmrebuild.sh: WARNING: some files have been modified:
    S.5….T c /etc/ld.so.conf
    Do you want to continue ? (y/N) y
    Do you want to change release number ? (y/N) N
    Processing files: glibc-2.4-31.77.88.4
    warning: Could not canonicalize hostname: linux
    Wrote: /opt/ataebackup/x86_64/glibc-2.4-31.77.88.4.x86_64.rpm
    result: /opt/ataebackup/x86_64/glibc-2.4-31.77.88.4.x86_64.rpm

  

   在那之中,result行表示备份文件的存放路线。

 

  • 若系统中未安装相应的包,则没有需求备份,系统会提醒以下类似信息,请忽略该错误提示。

    atae-mo-slot4:/usr/lib/rpmrebuild # /usr/lib/rpmrebuild/rpmrebuild.sh glibc-html
    /usr/lib/rpmrebuild/rpmrebuild.sh: ERROR: glibc-html package in not installed

  

  • 备份原gblic包时,若提示以下类似音信,请忽略该错误提醒。 

    linux02:/usr/lib/rpmrebuild # /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup glibc-32bit
    Processing files: glibc-32bit-2.4-31.77.88.4.4491.2.PTF.772242
    warning: Could not canonicalize hostname: linux02

  

  • 备份nscd包时,若提醒以下错误音讯:  

    Processing files: nscd-2.4-31.63.7
    error: File not found: /var/run/nscd/hosts
    RPM build errors:
    File not found: /var/run/nscd/hosts
    /usr/lib/rpmrebuild/rpmrebuild.sh: ERROR: package ‘nscd’ build failed

  

   供给手工成立该文件,备份后去除该公文。实行以下命令重新备份nscd包:

# touch /var/run/nscd/hosts
# /usr/lib/rpmrebuild/rpmrebuild.sh -d /opt/ataebackup nscd
# rm /var/run/nscd/hosts

  

 

 

Transaction Summary

Install      1 Package(s)
Upgrade      6 Package(s)

Total download size: 19 M
Is this ok [y/N]: y

还原:

  一.进去备份目录。

   # cd /opt/ataebackup/x86_64

  2.重新安装旧版本的补丁包。

   部分补丁包原来未有设置,因而无备份文件,忽略错误提示就能够。
   查看/opt/ataebackup/glibc_version.txt和/opt/ataebackup/nscd_version.txt中备份的glibc和nscd包的版本音讯。以2.4-3一.77.8八.四本子为例,施行如下命令回退版本:

# rpm -Uvh --force glibc-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-32bit-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-devel-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-devel-32bit-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-html-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-i18ndata-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-info-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-locale-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-locale-32bit-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-profile-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force glibc-profile-32bit-2.4-31.77.88.4.x86_64.rpm
# rpm -Uvh --force nscd-2.4-31.77.88.4.x86_64.rpm

  

  三.反省回退后的glibc库的版本消息。

# rpm -qa |grep glibc

  

   就算系统并未有安装相应的软件包,则不会被询问到。以版本贰.四-3一.77.8八.肆为例,展现结果如下:

glibc-2.4-31.77.88.4
glibc-locale-2.4-31.77.88.4
glibc-32bit-2.4-31.77.88.4
glibc-profile-32bit-2.4-31.77.88.4
glibc-devel-2.4-31.77.88.4
glibc-i18ndata-2.4-31.77.88.4
glibc-profile-2.4-31.77.88.4
glibc-html-2.4-31.77.88.4
glibc-locale-32bit-2.4-31.77.88.4
glibc-devel-32bit-2.4-31.77.88.4
glibc-info-2.4-31.77.88.4

  

  四.反省nscd的本子是还是不是回退。 

# rpm -qa |grep ^nscd

  

  比方,呈现结果如下:

nscd-2.4-31.77.88.4

  

  重启操作系统和采纳。

 

Downloading Packages:

Total                                                                   
  120 MB/s |  19 MB    00:00   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : glibc-2.17-157.el7.x86_64                               
                              1/13
  Updating  : bash-4.2.46-20.el7_2.x86_64                             
                              2/13
  Updating  : glibc-common-2.17-157.el7.x86_64                         
                            3/13
  Updating  : glibc-headers-2.17-157.el7.x86_64                       
                              4/13
  Updating  : glibc-devel-2.17-157.el7.x86_64                         
                              5/13
  Updating  : filesystem-3.2-21.el7.x86_64                             
                            6/13
Error unpacking rpm package filesystem-3.2-21.el7.x86_64
error: unpacking of archive failed on file /bin: cpio: rename
  Installing : ftp-0.17-67.el7.x86_64                                 
                              7/13
  Cleanup    : glibc-devel-2.12-1.132.el6.x86_64                       
                              8/13
  Cleanup    : glibc-headers-2.12-1.132.el6.x86_64                     
                              9/13
  Cleanup    : bash-4.1.2-15.el6_4.x86_64                             
                              10/13
Non-fatal POSTUN scriptlet failure in rpm package bash
  Cleanup    : glibc-common-2.12-1.132.el6.x86_64                     
                              11/13
warning: %postun(bash-4.1.2-15.el6_4.x86_64) scriptlet failed, exit
status 127
  Cleanup    : glibc-2.12-1.132.el6.x86_64                             
                            12/13
warning: /etc/localtime saved as /etc/localtime.rpmsave
Non-fatal <unknown> scriptlet failure in rpm package glibc
rhel65-iso/productid                                                   
            | 1.7 kB    00:00 …
rhel73-iso/productid                                                   
            | 1.6 kB    00:00 …
  Verifying  : glibc-devel-2.17-157.el7.x86_64                         
                              1/13
  Verifying  : bash-4.2.46-20.el7_2.x86_64                           
                                2/13
  Verifying  : glibc-2.17-157.el7.x86_64                               
                              3/13
  Verifying  : glibc-common-2.17-157.el7.x86_64                       
                              4/13
  Verifying  : ftp-0.17-67.el7.x86_64                                 
                              5/13
  Verifying  : glibc-headers-2.17-157.el7.x86_64                       
                              6/13
  Verifying  : glibc-2.12-1.132.el6.x86_64                             
                              7/13
  Verifying  : glibc-devel-2.12-1.132.el6.x86_64                       
                              8/13
  Verifying  : bash-4.1.2-15.el6_4.x86_64                             
                              9/13
filesystem-2.4.30-3.el6.x86_64 was supposed to be removed but is not!
  Verifying  : filesystem-2.4.30-3.el6.x86_64                         
                              10/13
  Verifying  : glibc-common-2.12-1.132.el6.x86_64                     
                              11/13
  Verifying  : glibc-headers-2.12-1.132.el6.x86_64                     
                            12/13
  Verifying  : filesystem-3.2-21.el7.x86_64                           
                              13/13

Installed:
  ftp.x86_64 0:0.17-67.el7                                             
                                 

Dependency Updated:
  bash.x86_64 0:4.2.46-20.el7_2    glibc.x86_64 0:2.17-157.el7       
glibc-common.x86_64 0:2.17-157.el7
  glibc-devel.x86_64 0:2.17-157.el7 glibc-headers.x86_64
0:2.17-157.el7

Failed:
  filesystem.x86_64 0:2.4.30-3.el6                     
filesystem.x86_64 0:3.2-21.el7                   

Complete!

那时候系统现已无法健康实践reboot命令重启了,只好强制按电源重启机器。重启之后,原系统现已崩溃,进不去系统了,停在上边包车型地铁分界面:

澳门金沙国际 1

接下来利用PAJEROHEL6的光盘指引机器,选拔rescue,进入到shell之后提醒不恐怕chroot到/mnt/sysimage,无解。

澳门金沙国际 2

下一场重启,用奇骏HEL陆装置光盘指导机器,选用Install or
Update系统,进入图形后采纳update已有体系,退步,如下图。

接下来按ctrl+alt+F2切换来第贰个console,发掘原系统已经被机关挂载到/mnt/sysimage目录,尝试chroot到/mnt/sysimage,由于bash被上边重视更新了,所以会唤醒找不到/bin/sh,手动把/mnt/sysimage/usr/bin/sh
拷到 /mnt/sysimage/bin/sh,再度chroot成功。

澳门金沙国际 3

手工业挂载LacrosseHEL6的ISO到/mnt/rhel六伍并cd到Packages目录,强制将下面更新过的多少个包更新回到LacrosseHEL6的本子:

# rpm –force –nodeps -Uvh  [RPM包名]

分级把bash/glibc/glibc-common/glibc-devel/glibc-headers这一个包裹回去。

重启系统,开采早已足以健康进入到原系统了,最后使用yum
remove把最开端设置的中华VHEL七的包给remove掉,问题总体消除。

正文永世更新链接地址:

途乐HEL陆误使用了HighlanderHEL7的光盘源,安装了有个别RPM包之后,导致glibc被进步,进而导致系统崩溃…

相关文章