yum update centos 5.5 ERROR with rpm_check_debug vs depsolve - centos

Having some issues with yum update on my centos box.
It seems there's some issue with 32 and 64 bit libraries, but i am not sure how can i resolve this.
This server is a production server and i would like to resolve it with as minimal interruption as possible.
would appreciate any help!
[root#xxx ~]uname -a
Linux ip-xxx 2.6.16.33-xenU #2 SMP Wed Aug 15 17:27:36 SAST 2007 x86_64 x86_64 x86_64 GNU/Linux
[root#xxx ~]yum update
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.symnds.com
* extras: www.gtlib.gatech.edu
* rpmforge: mirror.lug.udel.edu
* updates: mirrors.mit.edu
Setting up Update Process
Resolving Dependencies
.
.
.
.
Updating:
bind-libs i386 30:9.3.6-25.P1.el5_11.2 updates 866 k
device-mapper i386 1.02.67-2.el5_11.1 updates 804 k
krb5-devel i386 1.6.1-80.el5_11 updates 1.9 M
krb5-libs i386 1.6.1-80.el5_11 updates 670 k
libXfont i386 1.2.2-1.0.6.el5_11 updates 242 k
libxml2 i386 2.6.26-2.1.25.el5_11 updates 799 k
mod-pagespeed-beta i386 1.9.32.2-4321 mod-pagespeed 5.7 M
nss i386 3.16.2.3-1.el5_11 updates 1.2 M
openssl i686 0.9.8e-31.el5_11 updates 1.5 M
openssl-devel i386 0.9.8e-31.el5_11 updates 1.9 M
perl i386 4:5.8.8-43.el5_11 updates 12 M
popt i386 1.10.2.3-36.el5_11 updates 77 k
rpm-libs i386 4.4.2.3-36.el5_11 updates 931 k
Installing for dependencies:
bind-libs x86_64 30:9.3.6-20.P1.el5_8.6 base 898 k
bzip2-libs x86_64 1.0.3-6.el5_5 base 35 k
device-mapper x86_64 1.02.67-2.el5 base 831 k
e2fsprogs-libs x86_64 1.39-37.el5 base 120 k
elfutils-libelf x86_64 0.137-3.el5 base 53 k
glibc x86_64 2.5-123 base 4.8 M
keyutils-libs x86_64 1.2-1.el5 base 17 k
krb5-libs x86_64 1.6.1-78.el5 base 682 k
libgcc x86_64 4.1.2-55.el5 base 100 k
libselinux x86_64 1.33.4-5.7.el5 base 78 k
libsepol x86_64 1.15.2-3.el5 base 131 k
ncurses x86_64 5.5-24.20060715 base 1.2 M
nspr x86_64 4.10.6-1.el5_10 base 123 k
nss x86_64 3.16.1-4.el5_11 updates 1.3 M
openssl x86_64 0.9.8e-31.el5_11 updates 1.5 M
popt x86_64 1.10.2.3-34.el5 base 79 k
readline x86_64 5.1-3.el5 base 228 k
rpm x86_64 4.4.2.3-36.el5_11 updates 1.2 M
rpm-libs x86_64 4.4.2.3-34.el5 base 926 k
sqlite x86_64 3.3.6-7 base 207 k
zlib x86_64 1.2.3-7.el5 base 52 k
Transaction Summary
Install 21 Package(s)
Upgrade 13 Package(s)
Total size: 42 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
libcrypto.so.6 is needed by openssl-devel-0.9.8e-31.el5_11.i386
libssl.so.6 is needed by openssl-devel-0.9.8e-31.el5_11.i386
libgssapi_krb5.so.2()(64bit) is needed by openssl-0.9.8e-31.el5_11.x86_64
libk5crypto.so.3()(64bit) is needed by openssl-0.9.8e-31.el5_11.x86_64
libk5crypto.so.3(k5crypto_3_MIT)(64bit) is needed by openssl-0.9.8e-31.el5_11.x86_64
libkrb5.so.3()(64bit) is needed by openssl-0.9.8e-31.el5_11.x86_64
libkrb5.so.3(krb5_3_MIT)(64bit) is needed by openssl-0.9.8e-31.el5_11.x86_64
libnss3.so()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
libnssutil3.so()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
libpopt.so.0()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
librpm-4.4.so()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
librpmbuild-4.4.so()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
librpmdb-4.4.so()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
librpmio-4.4.so()(64bit) is needed by rpm-4.4.2.3-36.el5_11.x86_64
libcrypto.so.6 is needed by bind-libs-9.3.6-25.P1.el5_11.2.i386
libdevmapper.so.1.02()(64bit) is needed by e2fsprogs-libs-1.39-37.el5.x86_64
rpm-libs is needed by (installed) rpm-python-4.4.2.3-34.el5.i386
rpm-libs is needed by (installed) rpm-build-4.4.2.3-34.el5.i386
device-mapper is needed by (installed) device-mapper-event-1.02.67-2.el5.i386
popt is needed by (installed) rpm-python-4.4.2.3-34.el5.i386
popt is needed by (installed) rpm-build-4.4.2.3-34.el5.i386
nss is needed by (installed) nss-tools-3.16.1-4.el5_11.i386
krb5-libs is needed by (installed) krb5-workstation-1.6.1-78.el5.i386
libcrypto.so.6 is needed by (installed) pam_ccreds-3-5.i386
libcrypto.so.6 is needed by (installed) tcpdump-3.9.4-15.el5.i386
libcrypto.so.6 is needed by (installed) stunnel-4.15-2.el5.1.i386
libcrypto.so.6 is needed by (installed) fipscheck-1.2.0-1.el5.i386
libcrypto.so.6 is needed by (installed) perl-DBD-MySQL-3.0007-2.el5.i386
libcrypto.so.6 is needed by (installed) libc-client-2004g-2.2.1.i386
libcrypto.so.6 is needed by (installed) php-common-5.3.4-1.w5.i386
libcrypto.so.6 is needed by (installed) php-cli-5.3.4-1.w5.i386
libcrypto.so.6 is needed by (installed) php-5.3.4-1.w5.i386
libcrypto.so.6 is needed by (installed) php-mysql-5.3.4-1.w5.i386
libcrypto.so.6 is needed by (installed) php-imap-5.3.4-1.w5.i386
libcrypto.so.6 is needed by (installed) neon-0.25.5-10.el5_4.1.i386
libcrypto.so.6 is needed by (installed) python-ldap-2.2.0-2.1.i386
libcrypto.so.6 is needed by (installed) perl-Net-SSLeay-1.36-1.el5.rfx.i386
libcrypto.so.6 is needed by (installed) sendmail-8.13.8-8.1.el5_7.i386
libcrypto.so.6 is needed by (installed) openssh-4.3p2-82.el5.i386
libcrypto.so.6 is needed by (installed) openssh-clients-4.3p2-82.el5.i386
libcrypto.so.6 is needed by (installed) openssh-server-4.3p2-82.el5.i386
libcrypto.so.6 is needed by (installed) wget-1.11.4-3.el5_8.2.i386
libcrypto.so.6 is needed by (installed) cyrus-sasl-2.1.22-7.el5_8.1.i386
libcrypto.so.6 is needed by (installed) cyrus-sasl-devel-2.1.22-7.el5_8.1.i386
libcrypto.so.6 is needed by (installed) ipsec-tools-0.6.5-14.el5_8.5.i386
libcrypto.so.6 is needed by (installed) bind-utils-9.3.6-20.P1.el5_8.6.i386
libcrypto.so.6 is needed by (installed) mysql-5.0.95-5.el5_9.i386
libcrypto.so.6 is needed by (installed) vsftpd-2.0.5-28.el5.i386
libcrypto.so.6 is needed by (installed) mysql-server-5.0.95-5.el5_9.i386
libcrypto.so.6 is needed by (installed) python-libs-2.4.3-56.el5.i386
libcrypto.so.6 is needed by (installed) m2crypto-0.16-9.el5.i386
libcrypto.so.6 is needed by (installed) ruby-libs-1.8.5-31.el5_9.i386
libcrypto.so.6 is needed by (installed) gnome-vfs2-2.16.2-12.el5_9.i386
libcrypto.so.6 is needed by (installed) curl-7.15.5-17.el5_9.i386
libcrypto.so.6 is needed by (installed) elinks-0.11.1-8.el5_9.i386
libcrypto.so.6 is needed by (installed) openldap-2.3.43-28.el5_10.i386
libcrypto.so.6 is needed by (installed) subversion-1.6.11-12.el5_10.i386
libcrypto.so.6 is needed by (installed) postgresql-libs-8.1.23-10.el5_10.i386
libcrypto.so.6 is needed by (installed) gnupg-1.4.5-18.el5_10.1.i386
libcrypto.so.6 is needed by (installed) httpd-2.2.3-91.el5.centos.i386
libcrypto.so.6 is needed by (installed) wpa_supplicant-0.5.10-10.el5.i386
libssl.so.6 is needed by (installed) stunnel-4.15-2.el5.1.i386
libssl.so.6 is needed by (installed) perl-DBD-MySQL-3.0007-2.el5.i386
libssl.so.6 is needed by (installed) libc-client-2004g-2.2.1.i386
libssl.so.6 is needed by (installed) php-common-5.3.4-1.w5.i386
libssl.so.6 is needed by (installed) php-cli-5.3.4-1.w5.i386
libssl.so.6 is needed by (installed) php-5.3.4-1.w5.i386
libssl.so.6 is needed by (installed) php-mysql-5.3.4-1.w5.i386
libssl.so.6 is needed by (installed) php-imap-5.3.4-1.w5.i386
libssl.so.6 is needed by (installed) neon-0.25.5-10.el5_4.1.i386
libssl.so.6 is needed by (installed) python-ldap-2.2.0-2.1.i386
libssl.so.6 is needed by (installed) perl-Net-SSLeay-1.36-1.el5.rfx.i386
libssl.so.6 is needed by (installed) sendmail-8.13.8-8.1.el5_7.i386
libssl.so.6 is needed by (installed) wget-1.11.4-3.el5_8.2.i386
libssl.so.6 is needed by (installed) mysql-5.0.95-5.el5_9.i386
libssl.so.6 is needed by (installed) vsftpd-2.0.5-28.el5.i386
libssl.so.6 is needed by (installed) mysql-server-5.0.95-5.el5_9.i386
libssl.so.6 is needed by (installed) quota-3.13-8.el5.i386
libssl.so.6 is needed by (installed) python-libs-2.4.3-56.el5.i386
libssl.so.6 is needed by (installed) m2crypto-0.16-9.el5.i386
libssl.so.6 is needed by (installed) ruby-libs-1.8.5-31.el5_9.i386
libssl.so.6 is needed by (installed) gnome-vfs2-2.16.2-12.el5_9.i386
libssl.so.6 is needed by (installed) curl-7.15.5-17.el5_9.i386
libssl.so.6 is needed by (installed) elinks-0.11.1-8.el5_9.i386
libssl.so.6 is needed by (installed) openldap-2.3.43-28.el5_10.i386
libssl.so.6 is needed by (installed) subversion-1.6.11-12.el5_10.i386
libssl.so.6 is needed by (installed) postgresql-libs-8.1.23-10.el5_10.i386
libssl.so.6 is needed by (installed) gnupg-1.4.5-18.el5_10.1.i386
libssl.so.6 is needed by (installed) httpd-2.2.3-91.el5.centos.i386
libssl.so.6 is needed by (installed) wpa_supplicant-0.5.10-10.el5.i386
rpm is needed by (installed) rpm-python-4.4.2.3-34.el5.i386
rpm is needed by (installed) rpm-build-4.4.2.3-34.el5.i386
bind-libs is needed by (installed) bind-utils-9.3.6-20.P1.el5_8.6.i386
Complete!
(1, [u'Please report this error in http://bugs.centos.org/yum5bug'])

Related

RPMs for Kubernetes do not exist anymore on https://packages.cloud.google.com/

After following the Kubernetes installation guide I found than all the RPMS were removed from the YUM repository https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/Packages. However, on the release notes page you can see the links to binaries but not RPMs (for example: https://dl.k8s.io/v1.18.0/kubernetes-server-linux-amd64.tar.gz).
Can someone point me to the location of the RPMs? I'm aware Fedora comes with their own RPMS but these are older compared to the ones offered from the website (For example, Fedora 29 offers 1.10 while the website offers 1.18).
Thanks in advance.
--Jose
They are not gone, they are just not visible with the web browser (I dunno why). If you follow instructions on adding yum repository to your system, you will be able to install RPMs from that repository. Although kubernetes server related RPMs are not there.
$cat /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=0
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
$dnf list --disablerepo='*' --enablerepo=kubernetes --available
Last metadata expiration check: 0:06:26 ago on Mon 13 Jul 2020 21:24:45 CEST.
Available Packages
cri-tools.x86_64 1.13.0-0 kubernetes
kubeadm.x86_64 1.18.5-0 kubernetes
kubelet.x86_64 1.18.5-0 kubernetes
kubernetes-cni.x86_64 0.8.6-0 kubernetes
rkt.x86_64 1.27.0-1 kubernetes
Thanks, I did this on a CentOS 8.2 but had to make one tweak.
In this file
/etc/yum.repos.d/kubernetes.repo
I changed this line to have it enabled, so I changed it from:
enabled=0
to:
enabled=1
So my /etc/yum.repos.d/kubernetes.repo file looks like:
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
I then was able to do (for CentOS 8.x or Red Hat 8.x you can use dnf instead of yum, the actual command is dnf but on 8.x they do an alias of some sort to point yum to dnf)
mkdir /tmp/k8s
yum -y install --downloadonly --downloaddir=/tmp/k8s kubeadm kubelet kubectl
This downloaded the 3 rpms and dependencies. So my output was
14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm
b1b077555664655ba01b2c68d13239eaf9db1025287d0d9ccaeb4a8850c7a9b7-kubectl-1.19.2-0.x86_64.rpm
conntrack-tools-1.4.4-10.el8.x86_64.rpm
d0ba40edfc0fdf3aeec3dd8e56c01ff0d3a511cc0012aabce55d9a83d9bf2b69-kubeadm-1.19.2-0.x86_64.rpm
d9d997cdbfd6562824eb7786abbc7f4c6a6825662d0f451793aa5ab8c4a85c96-kubelet-1.19.2-0.x86_64.rpm
db7cb5cb0b3f6875f54d10f02e625573988e3e91fd4fc5eef0b1876bb18604ad-kubernetes-cni-0.8.7-0.x86_64.rpm
libnetfilter_cthelper-1.0.0-15.el8.x86_64.rpm
libnetfilter_cttimeout-1.0.0-11.el8.x86_64.rpm
libnetfilter_queue-1.0.2-11.el8.x86_64.rpm
socat-1.7.3.3-2.el8.x86_64.rpm
An alternate way, I also did the following
yum install -y yum-utils
then ran these 3 commands
yumdownloader kubeadm
yumdownloader kubelet
yumdownloader kubectl
This got me these 3 files in the current directory that you ran the command from
-rw-r--r-- 1 root root 9450186 Oct 8 10:11 b1b077555664655ba01b2c68d13239eaf9db1025287d0d9ccaeb4a8850c7a9b7-kubectl-1.19.2-0.x86_64.rpm
-rw-r--r-- 1 root root 8725678 Oct 8 10:10 d0ba40edfc0fdf3aeec3dd8e56c01ff0d3a511cc0012aabce55d9a83d9bf2b69-kubeadm-1.19.2-0.x86_64.rpm
-rw-r--r-- 1 root root 20438926 Oct 8 10:11 d9d997cdbfd6562824eb7786abbc7f4c6a6825662d0f451793aa5ab8c4a85c96-kubelet-1.19.2-0.x86_64.rpm
FYI to download a specific version of kubectl run this command
yum --showduplicates list kubectl
This will show you all the versions available in the 2nd column. The syntax to download a specific version is:
yumdownloader <packagename>-<version number>.x86_64
So for example to download kubectl version 1.18.9.0 for the x86_64 platform run
yumdownloader kubectl-1.18.9-0.x86_64
See here on how to download specific versions of packages
https://www.thegeekdiary.com/centos-rhel-how-to-install-a-specific-version-of-rpm-package-using-yum
For completeness, I decided to post how to get the RPMS using DNF:
sudo dnf install kubelet kubeadm kubectl --disableexcludes=kubernetes -v --downloaddir=/tmp/k8s --downloadonly
Dependencies resolved.
Excludes in repo kubernetes: kubeadm, kubectl, kubelet
===========================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================
Installing:
kubeadm x86_64 1.19.2-0 kubernetes 8.3 M
kubectl x86_64 1.19.2-0 kubernetes 9.0 M
kubelet x86_64 1.19.2-0 kubernetes 19 M
Installing dependencies:
cri-tools x86_64 1.13.0-0 kubernetes 5.1 M
kubernetes-cni x86_64 0.8.7-0 kubernetes 19 M
conntrack-tools x86_64 1.4.4-8.fc29 strike-os 200 k
ebtables x86_64 2.0.10-28.fc29 strike-os 132 k
libnetfilter_cthelper x86_64 1.0.0-14.fc29 strike-os 22 k
libnetfilter_cttimeout x86_64 1.0.0-12.fc29 strike-os 22 k
libnetfilter_queue x86_64 1.0.2-12.fc29 strike-os 26 k
Transaction Summary
===========================================================================================================================================================================================================
Install 10 Packages
Total size: 61 M
Installed size: 261 M
DNF will only download packages for the transaction.
Is this ok [y/N]:
The rpms will be waiting for you on /tmp/k8s

mongod: error while loading shared libraries: libnetsnmpmibs.so.31: cannot open shared object file: No such file or directory

Sharing below the output of my server info.
[root#HBAPIPUATAP13 mongodb-linux-x86_64-enterprise-rhel70-4.0.1]# uname -a
Linux HBAPIPUATAP13 3.10.0-862.14.4.el7.x86_64 #1 SMP Fri Sep 21 09:07:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root#HBAPIPUATAP13 mongodb-linux-x86_64-enterprise-rhel70-4.0.1]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
The below packages need to be installed before starting mongod process.
yum install cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl libpcap lm_sensors-libs net-snmp net-snmp-agent-libs openldap openssl rpm-libs tcp_wrappers-libs
Ref: https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/

get the follow error info when "sudo apt install docker-compose"

insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package lvm2 (--configure): subprocess
installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-105-generic Errors
were encountered while processing: docker-ce lvm2 E: Sub-process
/usr/bin/dpkg returned an error code (1)
docker version: Docker version 18.03.1-ce, build 9ee9f40
system version: Linux ci02-test 4.4.0-105-generic #128-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
finally finished it by install docker-compose from docker.com

Kubernetes 1.6 install issue with centos 7

I am trying to install kubernetes on my centos 7 machine. added below yum repo. when I install the package its giving version 1.6 & 1.5.
unable to install the kubernetes package in my master server.
[root#centos-master yum.repos.d]# yum list|grep kube
kubeadm.x86_64 1.6.2-0 #kubernetes
kubectl.x86_64 1.6.2-0 #kubernetes
kubelet.x86_64 1.6.2-0 #kubernetes
kubernetes-cni.x86_64 0.5.1-0 #kubernetes
cockpit-kubernetes.x86_64 135-4.el7.centos extras
kubernetes.x86_64 1.5.2-0.5.gita552679.el7 extras
kubernetes-client.x86_64 1.5.2-0.5.gita552679.el7 extras
kubernetes-master.x86_64 1.5.2-0.5.gita552679.el7 extras
kubernetes-node.x86_64 1.5.2-0.5.gita552679.el7 extras
kubernetes-unit-test.x86_64 1.5.2-0.5.gita552679.el7 extras
rkt.x86_64 1.25.0-1 kubernetes
here is the report for api server.
# yum provides kube-apiserver
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.dallas-tx.riverfrontnetworks.com
* extras: cosmos.illinois.edu
* updates: mirror.solarvps.com
kubernetes-master-1.3.0-0.3.git86dc49a.el7.x86_64 : Kubernetes services for master host
Repo : extras
Matched from:
Filename : /usr/bin/kube-apiserver
kubernetes-master-1.4.0-0.1.git87d9d8d.el7.x86_64 : Kubernetes services for master host
Repo : extras
Matched from:
Filename : /usr/bin/kube-apiserver
kubernetes-master-1.5.2-0.2.gitc55cf2b.el7.x86_64 : Kubernetes services for master host
Repo : extras
Matched from:
Filename : /usr/bin/kube-apiserver
kubernetes-master-1.5.2-0.5.gita552679.el7.x86_64 : Kubernetes services for master host
Repo : extras
Matched from:
Filename : /usr/bin/kube-apiserver
repo added.
# cat kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
how can I install 1.6 version. here is the error message.
yum install kubernetes
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.dallas-tx.riverfrontnetworks.com
* extras: cosmos.illinois.edu
* updates: mirror.solarvps.com
Resolving Dependencies
--> Running transaction check
---> Package kubernetes.x86_64 0:1.5.2-0.5.gita552679.el7 will be installed
--> Processing Dependency: kubernetes-node = 1.5.2-0.5.gita552679.el7 for package: kubernetes-1.5.2-0.5.gita552679.el7.x86_64
--> Processing Dependency: kubernetes-master = 1.5.2-0.5.gita552679.el7 for package: kubernetes-1.5.2-0.5.gita552679.el7.x86_64
--> Running transaction check
---> Package kubernetes-master.x86_64 0:1.5.2-0.5.gita552679.el7 will be installed
--> Processing Dependency: kubernetes-client = 1.5.2-0.5.gita552679.el7 for package: kubernetes-master-1.5.2-0.5.gita552679.el7.x86_64
---> Package kubernetes-node.x86_64 0:1.5.2-0.5.gita552679.el7 will be installed
--> Running transaction check
---> Package kubernetes-client.x86_64 0:1.5.2-0.5.gita552679.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================================
Installing:
kubernetes x86_64 1.5.2-0.5.gita552679.el7 extras 36 k
Installing for dependencies:
kubernetes-client x86_64 1.5.2-0.5.gita552679.el7 extras 14 M
kubernetes-master x86_64 1.5.2-0.5.gita552679.el7 extras 25 M
kubernetes-node x86_64 1.5.2-0.5.gita552679.el7 extras 14 M
Transaction Summary
===============================================================================================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 53 M
Installed size: 302 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): kubernetes-1.5.2-0.5.gita552679.el7.x86_64.rpm | 36 kB 00:00:00
(2/4): kubernetes-client-1.5.2-0.5.gita552679.el7.x86_64.rpm | 14 MB 00:00:07
(3/4): kubernetes-master-1.5.2-0.5.gita552679.el7.x86_64.rpm | 25 MB 00:00:12
(4/4): kubernetes-node-1.5.2-0.5.gita552679.el7.x86_64.rpm | 14 MB 00:00:06
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.8 MB/s | 53 MB 00:00:14
Running transaction check
Running transaction test
Transaction check error:
file /usr/bin/kubectl from install of kubernetes-client-1.5.2-0.5.gita552679.el7.x86_64 conflicts with file from package kubectl-1.6.2-0.x86_64
file /usr/bin/kubelet from install of kubernetes-node-1.5.2-0.5.gita552679.el7.x86_64 conflicts with file from package kubelet-1.6.2-0.x86_64
Thanks
SR
For kubernetes 1.6.2 we need only these rpms. when we run the
kubeadm init
command. it starts other process automatically.
# rpm -qa |grep kube
kubelet-1.6.2-0.x86_64
kubeadm-1.6.2-0.x86_64
kubernetes-cni-0.5.1-0.x86_64
kubectl-1.6.2-0.x86_64
More info here:
https://kubernetes.io/docs/getting-started-guides/kubeadm/
Thanks
SR
You seem to have installed kubelet & kubectl 1.5.2 already.You can uninstall 1.5.2 and retry the install of 1.6.x.
Yum normally installs the latest version of a package, regardless of which repository provides it.In this case it has a conflicting package already installed.
Edit: Removed the Centos extras reference as it was out of context.

yum installation manager not working in centos 6.6

I'm facing a problem with yum installation manager in centos 6.6
root#mmopuru:~ # cat /etc/*release
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
root#mmopuru:~ # uname -a
Linux mmopuru.puppetlabs.vm 2.6.32-504.el6.i686 #1 SMP Wed Oct 15 03:02:07 UTC 2014 i686 i686 i386 GNU/Linux
Its throwing following err. I tried clean all but no use.
root#mmopuru:~ # yum install python-pip
Loaded plugins: fastestmirror, security
Setting up Install Process
Repository 'updates' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
* epel: ftp.cuhk.edu.hk
* ius: ftp.neowiz.com
* remi-safe: mirror.innosol.asia
* update: mirror.nbrc.ac.in
http://mirror.centos.org/centos/6/addons/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
How to resolve this?
When I run yum repolist
root#mmopuru:~ # yum repolist
Loaded plugins: fastestmirror, security
Repository 'updates' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
epel/metalink | 4.0 kB 00:00
* epel: ftp.cuhk.edu.hk
* ius: mirror.amsiohosting.net
* remi-safe: mirrors.thzhost.com
* update: mirror.nbrc.ac.in
http://mirror.centos.org/centos/6/addons/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.centos.org/centos/6/addons/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
epel | 4.3 kB 00:00
epel/primary_db | 4.9 MB 00:05
ius | 2.2 kB 00:00
ius/primary_db | 194 kB 00:01
remi-safe | 2.9 kB 00:00
remi-safe/primary_db | 22 kB 00:00
update | 3.4 kB 00:00
update/primary_db | 3.7 MB 00:01
repo id repo name status
addons CentOS-6 - Addons 0
*epel Extra Packages for Enterprise Linux 6 - i386 9,857
ius IUS Community Packages for Enterprise Linux 6 - i386 356
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - i386 32
update CentOS-6 - Updates 989
repolist: 11,234
The content of /etc/yum.repos.d/centos-internal.repo is
root#mmopuru:~ # cat /etc/yum.repos.d/centos-internal.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/PM-GPG-KEY-CentOS-6
#released updates
enabled=0
[update]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/PM-GPG-KEY-CentOS-6
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/PM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/PM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
enabled=0
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/PM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/PM-GPG-KEY-CentOS-6
Remove the "addons" repository definition, which doesn't exists for CentOS 6 (it only exists for CentOS 5, but is empty).
I have just answered a similar question i.e. same error but for EPEL repo. I am answering here, may be it can come helpful for some future SO user.
Solution: The quick fix is to update your SSL certificates:
yum -y upgrade ca-certificates
Chances are the above error may also occur while certificate update, if so, just disable the repo i.e. addons which is causing the error, use the following command:
yum -y upgrade ca-certificates --disablerepo=addons
In case you're getting this same error for a different repo, just put it's name against the --disablerepo=<repo-name> flag.
Note: use sudo if you're not the root user.