{"id":1517,"date":"2022-02-20T21:33:02","date_gmt":"2022-02-20T12:33:02","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=1517"},"modified":"2022-02-20T21:59:51","modified_gmt":"2022-02-20T12:59:51","slug":"centos-stream-release-8-golang-install","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=1517","title":{"rendered":"<small>CentOS Stream release 8 : golang install\u3067error\u304c\u51fa\u308b<\/small>"},"content":{"rendered":"<p>\uff11\uff0eError<\/p>\n<pre>\r\n[root@localhost ~]# yum install -y golang\r\nLast metadata expiration check: 1:31:16 ago on Sun 20 Feb 2022 08:56:04 PM JST.\r\nError:\r\n Problem: package golang-bin-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64 requires \/usr\/bin\/gcc, but none of the providers can be installed\r\n  - package gcc-8.5.0-3.el8.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed\r\n  - package gcc-8.5.0-4.el8_5.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libm.so.6, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libpthread.so.0, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libdl.so.2, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires librt.so.1, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libutil.so.1, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libresolv.so.2, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libanl.so.1, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libBrokenLocale.so.1, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.i686 requires libthread_db.so.1, but none of the providers can be installed\r\n  - package glibc-devel-2.28-164.el8.x86_64 requires glibc = 2.28-164.el8, but none of the providers can be installed\r\n  - glibc-2.28-164.el8.i686 has inferior architecture\r\n  - cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-174.el8.x86_64\r\n  - package golang-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64 requires golang-bin = 1.16.12-1.module_el8.5.0+1051+7eeb051e, but none of the providers can be installed\r\n  - package glibc-gconv-extra-2.28-174.el8.x86_64 requires glibc(x86-64) = 2.28-174.el8, but none of the providers can be installed\r\n  - cannot install the best candidate for the job\r\n  - problem with installed package glibc-gconv-extra-2.28-174.el8.x86_64\r\n(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)\r\n<\/pre>\n<p>\uff12\uff0eyum install -y golang &#8211;allowerasing &#8211;nobest<\/p>\n<pre>\r\n[root@localhost ~]# yum install -y golang --allowerasing --nobest\r\n\u30fb\u30fb\u30fb\r\n\r\nDowngraded:\r\n  glibc-2.28-164.el8.x86_64                 glibc-common-2.28-164.el8.x86_64\r\n  glibc-langpack-en-2.28-164.el8.x86_64     libgomp-8.5.0-4.el8_5.x86_64\r\nInstalled:\r\n  binutils-2.30-108.el8_5.1.x86_64\r\n  cpp-8.5.0-4.el8_5.x86_64\r\n  gcc-8.5.0-4.el8_5.x86_64\r\n  glibc-devel-2.28-164.el8.x86_64\r\n  glibc-headers-2.28-164.el8.x86_64\r\n  golang-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64\r\n  golang-bin-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64\r\n  golang-src-1.16.12-1.module_el8.5.0+1051+7eeb051e.noarch\r\n  isl-0.16.1-6.el8.x86_64\r\n  kernel-headers-4.18.0-348.7.1.el8_5.x86_64\r\n  keyutils-libs-devel-1.5.10-9.el8.x86_64\r\n  krb5-devel-1.18.2-14.el8.x86_64\r\n  libcom_err-devel-1.45.6-2.el8.x86_64\r\n  libkadm5-1.18.2-14.el8.x86_64\r\n  libmpc-1.1.0-9.1.el8.x86_64\r\n  libselinux-devel-2.9-5.el8.x86_64\r\n  libsepol-devel-2.9-3.el8.x86_64\r\n  libverto-devel-0.3.0-5.el8.x86_64\r\n  libxcrypt-devel-4.1.1-6.el8.x86_64\r\n  openssl-devel-1:1.1.1k-5.el8_5.x86_64\r\n  pcre2-devel-10.32-2.el8.x86_64\r\n  pcre2-utf16-10.32-2.el8.x86_64\r\n  pcre2-utf32-10.32-2.el8.x86_64\r\n  zlib-devel-1.2.11-17.el8.x86_64\r\nRemoved:\r\n  glibc-gconv-extra-2.28-174.el8.x86_64\r\n\r\nComplete!\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0eError [root@localhost ~]# yum install -y golang Last metadata expiration check: 1:31:16 ago on Sun 20 Feb 20&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/1517"}],"collection":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1517"}],"version-history":[{"count":3,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/1517\/revisions"}],"predecessor-version":[{"id":1521,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/1517\/revisions\/1521"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}