zoukankan      html  css  js  c++  java
  • zabbix安装报错Errno 14以及libiksemel解决方法

    zabbix安装报错Errno 14
    [Errno 14] curl#18 - "transfer closed with 2154449 bytes remaining to read" Trying other mirror.
     
    最近安装zabbix软件安装老是出问题,后来测试发现是zabbix的repo库网络问题导致
    具体问题如下:
    1、根据官方提供的安装教程一步步安装
    [root@backup ~]# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm
    Retrieving https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm
    warning: /var/tmp/rpm-tmp.Fa2RtX: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
    Preparing... ################################# [100%]
    Updating / installing...
    1:zabbix-release-4.0-2.el7 ################################# [100%]
    [root@backup ~]# yum clean all
    Loaded plugins: fastestmirror
    Cleaning repos: base epel extras updates zabbix zabbix-non-supported
    Cleaning up list of fastest mirrors
     
    2、安装zabbix相关软件,安装到最后提示“transfer closed with 2898613 bytes remaining to read”
    [root@backup ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent -y
    ....
    (34/40): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:00
    (35/40): net-snmp-libs-5.7.2-43.el7_7.3.x86_64.rpm | 750 kB 00:00:01
    zabbix-server-mysql-4.0.19-1.e FAILED % [================================================- ] 1.0 MB/s | 15 MB 00:00:05 ETA
    http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-server-mysql-4.0.19-1.el7.x86_64.rpm: [Errno 14] curl#18 - "transfer closed with 2154449 bytes remaining to read" 00:00:05 ETA
    Trying other mirror.
    warning: /var/cache/yum/x86_64/7/zabbix-non-supported/packages/iksemel-1.4-2.el7.centos.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY8 kB/s | 15 MB 00:18:54 ETA
    Public key for iksemel-1.4-2.el7.centos.x86_64.rpm is not installed
    (36/40): iksemel-1.4-2.el7.centos.x86_64.rpm | 49 kB 00:00:31
    zabbix-web-4.0.19-1.el7.noarch FAILED % [================================================= ] 4.9 kB/s | 15 MB 00:18:19 ETA
    http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-web-4.0.19-1.el7.noarch.rpm: [Errno 14] curl#18 - "transfer closed with 2898613 bytes remaining to read"| 15 MB 00:18:19 ETA
    Trying other mirror.
    zabbix-agent-4.0.19-1.el7.x86_ FAILED % [================================================- ] 1.5 kB/s | 15 MB 00:58:38 ETA
    http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.19-1.el7.x86_64.rpm: [Errno 14] curl#18 - "transfer closed with 301423 bytes remaining to read" 15 MB 00:58:38 ETA
    Trying other mirror.
    warning: /var/cache/yum/x86_64/7/zabbix/packages/zabbix-web-mysql-4.0.19-1.el7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY ] 0.0 B/s | 15 MB --:--:-- ETA
    Public key for zabbix-web-mysql-4.0.19-1.el7.noarch.rpm is not installed
    (37/40): zabbix-web-mysql-4.0.19-1.el7.noarch.rpm | 9.9 kB 00:00:03
    Error downloading packages:
    zabbix-web-4.0.19-1.el7.noarch: [Errno 256] No more mirrors to try.
    zabbix-agent-4.0.19-1.el7.x86_64: [Errno 256] No more mirrors to try.
    zabbix-server-mysql-4.0.19-1.el7.x86_64: [Errno 256] No more mirrors to try.
     
    解决办法:
    将zabbix的repo库地址更换为aliyun的
    1、查看zabbix的repo库地址
    [root@backup ~]# cat /etc/yum.repos.d/zabbix.repo
    [zabbix]
    name=Zabbix Official Repository - $basearch
    baseurl=http://repo.zabbix.com/zabbix/4.0/rhel/7/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
     
    找到aliyun的zabbix地址
    只需要替换http://repo.zabbix.com为https://mirrors.aliyun.com/zabbix即可解决
     
    [root@backup ~]# sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#g' /etc/yum.repos.d/zabbix.repo
    [root@backup ~]# cat /etc/yum.repos.d/zabbix.repo
    [root@backup ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent -y
    Installed:
    zabbix-agent.x86_64 0:4.0.19-1.el7 zabbix-server-mysql.x86_64 0:4.0.19-1.el7 zabbix-web-mysql.noarch 0:4.0.19-1.el7
     
    Dependency Installed:
    OpenIPMI.x86_64 0:2.0.27-1.el7 OpenIPMI-libs.x86_64 0:2.0.27-1.el7 OpenIPMI-modalias.x86_64 0:2.0.27-1.el7 apr.x86_64 0:1.4.8-5.el7
    apr-util.x86_64 0:1.5.2-6.el7 dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontpackages-filesystem.noarch 0:1.44-8.el7
    fping.x86_64 0:3.10-4.el7 gnutls.x86_64 0:3.3.29-9.el7_6 httpd.x86_64 0:2.4.6-90.el7.centos httpd-tools.x86_64 0:2.4.6-90.el7.centos
    iksemel.x86_64 0:1.4-2.el7.centos libX11.x86_64 0:1.6.7-2.el7 libX11-common.noarch 0:1.6.7-2.el7 libXau.x86_64 0:1.0.8-2.1.el7
    libXpm.x86_64 0:3.5.12-1.el7 libevent.x86_64 0:2.0.21-4.el7 libjpeg-turbo.x86_64 0:1.2.90-8.el7 libxcb.x86_64 0:1.13-1.el7
    libzip.x86_64 0:0.10.1-8.el7 net-snmp-libs.x86_64 1:5.7.2-43.el7_7.3 nettle.x86_64 0:2.7.1-8.el7 php.x86_64 0:5.4.16-46.1.el7_7
    php-bcmath.x86_64 0:5.4.16-46.1.el7_7 php-cli.x86_64 0:5.4.16-46.1.el7_7 php-common.x86_64 0:5.4.16-46.1.el7_7 php-gd.x86_64 0:5.4.16-46.1.el7_7
    php-ldap.x86_64 0:5.4.16-46.1.el7_7 php-mbstring.x86_64 0:5.4.16-46.1.el7_7 php-mysql.x86_64 0:5.4.16-46.1.el7_7 php-pdo.x86_64 0:5.4.16-46.1.el7_7
    php-xml.x86_64 0:5.4.16-46.1.el7_7 t1lib.x86_64 0:5.1.2-14.el7 trousers.x86_64 0:0.3.14-2.el7 unixODBC.x86_64 0:2.3.1-14.el7
    zabbix-web.noarch 0:4.0.19-1.el7
    Complete!
     
     
     
    zabbix安装报错libiksemel解决方法
    报错:
    Error: Package: zabbix-server-mysql-3.4.15-1.el7.x86_64 (zabbix)
    Requires: libiksemel.so.3()(64bit)
    问题应该在于repo.zabbix.com不能正常访问,导致下载不了此rpm包。
    可以使用wget下载或者其他地址下载此rpm包后安装。
    报错解决方法
     
    zabbix官方所需附件包
    fping-3.10-1.el7.x86_64.rpm
    iksemel-1.4-2.el7.centos.x86_64.rpm
     
    第三方附件包
    iksemel-1.4-6.sdl7.x86_64.rpm
     
  • 相关阅读:
    ToString格式化
    [转]vc中socket编程步骤
    [XAML学习资料] 验证用户提供的数据ValidationRule
    VS2008下安装boost
    [ASP.NET用户验证一]Forms验证
    VISTA IIS Worker Process 已停止工作 解决办法
    [MFC入门二]四种不同对象
    删除TFS项目
    [WPF学习资料] WPF简介
    IIS7下配置PHP5
  • 原文地址:https://www.cnblogs.com/osker/p/12653059.html
Copyright © 2011-2022 走看看