• 小红帽安装centos的yum的一些坑!


    [root@localhost ~]# ls
    anaconda-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
    initial-setup-ks.cfg yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
    python-urlgrabber-3.10-8.el7.noarch.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
    [root@localhost ~]# rpm -ivh yum-3.4.3-158.el7.centos.noarch.rpm
    warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    error: Failed dependencies:
    rpm >= 0:4.11.3-22 is needed by yum-3.4.3-158.el7.centos.noarch
    yum-metadata-parser >= 1.1.0 is needed by yum-3.4.3-158.el7.centos.noarch
    yum-plugin-fastestmirror is needed by yum-3.4.3-158.el7.centos.noarch
    [root@localhost ~]# LS
    bash: LS: command not found...
    Similar command is: 'ls'
    [root@localhost ~]# ls
    anaconda-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
    initial-setup-ks.cfg yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
    python-urlgrabber-3.10-8.el7.noarch.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
    [root@localhost ~]# ls |grep yum
    yum-3.4.3-158.el7.centos.noarch.rpm
    yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
    yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
    yum-updateonboot-1.1.31-45.el7.noarch.rpm
    yum-utils-1.1.31-45.el7.noarch.rpm
    [root@localhost ~]# ls |grep yum |xargs rpm -ivh
    warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    error: Failed dependencies:
    rpm >= 0:4.11.3-22 is needed by yum-3.4.3-158.el7.centos.noarch        rpm >= 0:4.11.3-22,这句话意思是需要rpm-4.11.3-22的包。为了理解这句话,查阅了一个小时资料。
    [root@localhost ~]# wget http://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-4.11.3-32.el7.x86_64.rpm
    --2018-07-10 05:17:15-- http://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-4.11.3-32.el7.x86_64.rpm
    Resolving mirrors.163.com (mirrors.163.com)... 59.111.0.251
    Connecting to mirrors.163.com (mirrors.163.com)|59.111.0.251|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1217728 (1.2M) [application/x-redhat-package-manager]
    Saving to: ‘rpm-4.11.3-32.el7.x86_64.rpm’

    100%[============================================================================================================>] 1,217,728 2.40MB/s in 0.5s

    2018-07-10 05:17:16 (2.40 MB/s) - ‘rpm-4.11.3-32.el7.x86_64.rpm’ saved [1217728/1217728]

    [root@localhost ~]# ls
    anaconda-ks.cfg rpm-4.11.3-32.el7.x86_64.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
    initial-setup-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
    python-urlgrabber-3.10-8.el7.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
    [root@localhost ~]# rpm -ivh rpm-4.11.3-32.el7.x86_64.rpm      安装是不行的。。需要升级
    warning: rpm-4.11.3-32.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing... ################################# [100%]
    file /bin/rpm from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/bin/rpm2cpio from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/bin/rpmdb from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/bin/rpmkeys from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/aarch64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/alpha-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/alphaev5-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/alphaev56-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/alphaev6-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/alphaev67-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/alphapca56-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/amd64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv3l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv4b-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv4l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv5tejl-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv5tel-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv6l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv7hl-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv7hnl-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/armv7l-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/athlon-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/geode-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/i386-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/i486-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/i586-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/i686-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ia32e-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ia64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/noarch-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/pentium3-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/pentium4-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc32dy4-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc64iseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc64p7-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc64pseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc8260-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppc8560-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppciseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/ppcpseries-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/s390-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/s390x-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sh-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sh3-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sh4-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sh4a-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sparc-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sparc64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sparc64v-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sparcv8-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sparcv9-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/sparcv9v-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/platform/x86_64-linux/macros from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/lib/rpm/rpmrc from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/br/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/ca/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/cs/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/da/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/de/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/el/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/eo/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/es/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/fi/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/fr/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/is/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/it/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/ja/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/ko/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/ms/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/nb/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/nl/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/pl/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/pt/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/pt_BR/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/ru/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/sk/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/sl/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/sr/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/sr@latin/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/sv/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/te/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/tr/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/uk/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/zh_CN/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/locale/zh_TW/LC_MESSAGES/rpm.mo from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    file /usr/share/man/man8/rpm.8.gz from install of rpm-4.11.3-32.el7.x86_64 conflicts with file from package rpm-4.11.1-16.el7.x86_64
    [root@localhost ~]# ls |grep yum |xargs rpm -ivh
    warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    error: Failed dependencies:
    rpm >= 0:4.11.3-22 is needed by yum-3.4.3-158.el7.centos.noarch
    [root@localhost ~]# ls
    anaconda-ks.cfg rpm-4.11.3-32.el7.x86_64.rpm yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
    initial-setup-ks.cfg yum-3.4.3-158.el7.centos.noarch.rpm yum-updateonboot-1.1.31-45.el7.noarch.rpm
    python-urlgrabber-3.10-8.el7.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-utils-1.1.31-45.el7.noarch.rpm
    [root@localhost ~]# rpm -Uvh rpm-4.11.3-32.el7.x86_64.rpm --nodeps                 升级包
    warning: rpm-4.11.3-32.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing... ################################# [100%]
    Updating / installing...
    1:rpm-4.11.3-32.el7 ################################# [ 50%]
    Cleaning up / removing...
    2:rpm-4.11.1-16.el7 ################################# [100%]
    [root@localhost ~]# ls |grep yum |xargs rpm -ivh         好了,,这样就能安装呢
    warning: yum-3.4.3-158.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    Preparing... ################################# [100%]
    Updating / installing...
    1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 20%]
    2:yum-plugin-fastestmirror-1.1.31-4################################# [ 40%]
    3:yum-3.4.3-158.el7.centos ################################# [ 60%]
    4:yum-updateonboot-1.1.31-45.el7 ################################# [ 80%]
    5:yum-utils-1.1.31-45.el7 ################################# [100%]

  • 相关阅读:
    Ubuntu18.04安装NAVIDIA驱动
    ubuntu 设置root用户密码并实现root用户登录
    配置ubuntu允许远程SSH连接
    Centos7安装yum命令
    NVDIA往期在线研讨会地址 论坛提问地址
    二进制安装单master节点测试环境k8s集群
    kubeadm初始化k8s-延长证书过期时间
    kubeadm初始化k8s-删除控制节点-重新把控制节点加入集群步骤
    kubeadm安装的多master节点的k8s高可用集群
    二进制安装多master节点的k8s集群
  • 原文地址:https://www.cnblogs.com/xnb123/p/9290503.html
Copyright © 2020-2023  润新知