zerotier / zeronsd

A DNS server for ZeroTier users
https://zerotier.com
BSD 3-Clause "New" or "Revised" License
493 stars 56 forks source link

Conflicting dependencies for rpm installation #194

Closed cyluss closed 2 years ago

cyluss commented 2 years ago

Problem

There are dependency conflicts while installing rpm package.

Tried version

0.5.2-1

Environment

[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# openssl version
OpenSSL 1.0.2k-fips  26 Jan 2017
[root@localhost ~]# yum info openssl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
Installed Packages
Name        : openssl
Arch        : x86_64
Epoch       : 1
Version     : 1.0.2k
Release     : 25.el7_9
Size        : 814 k
Repo        : installed
From repo   : updates
Summary     : Utilities from the general purpose cryptography library with TLS implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications between
            : machines. OpenSSL includes a certificate management tool and shared
            : libraries which provide various cryptographic algorithms and
            : protocols.

[root@localhost ~]# ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Steps to reproduce & Actual Result

[root@localhost ~]# yum install -y https://github.com/zerotier/zeronsd/releases/download/v0.5.2/zeronsd-0.5.2-1.x86_64.rpm
Loaded plugins: fastestmirror
zeronsd-0.5.2-1.x86_64.rpm                                                                       | 3.5 MB  00:00:00
Examining /var/tmp/yum-root-CDdtt9/zeronsd-0.5.2-1.x86_64.rpm: zeronsd-0.5.2-1.x86_64
Marking /var/tmp/yum-root-CDdtt9/zeronsd-0.5.2-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package zeronsd.x86_64 0:0.5.2-1 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.18)(64bit) for package: zeronsd-0.5.2-1.x86_64
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
--> Processing Dependency: libc.so.6(GLIBC_2.25)(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_1)(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: zeronsd-0.5.2-1.x86_64
--> Finished Dependency Resolution
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libssl.so.1.1()(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libc.so.6(GLIBC_2.18)(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libcrypto.so.1.1()(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libcrypto.so.1.1(OPENSSL_1_1_1)(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
Error: Package: zeronsd-0.5.2-1.x86_64 (/zeronsd-0.5.2-1.x86_64)
           Requires: libc.so.6(GLIBC_2.25)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@localhost ~]# curl -LO https://github.com/zerotier/zeronsd/releases/download/v0.5.2/zeronsd-0.5.2-1.x86_64.rpm && rpm -ivh zeronsd-0.5.2-1.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 3543k  100 3543k    0     0  1628k      0  0:00:02  0:00:02 --:--:-- 2846k
error: Failed dependencies:
        libc.so.6(GLIBC_2.18)(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libc.so.6(GLIBC_2.25)(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libc.so.6(GLIBC_2.28)(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libcrypto.so.1.1()(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libcrypto.so.1.1(OPENSSL_1_1_1)(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libssl.so.1.1()(64bit) is needed by zeronsd-0:0.5.2-1.x86_64
        libssl.so.1.1(OPENSSL_1_1_0)(64bit) is needed by zeronsd-0:0.5.2-1.x86_64

Expected Result

Zeronsd should be installed without error.

cyluss commented 2 years ago

I guess it is better to switch OS to Rocky Linux, since CentOS 7 has outdated OpenSSL and glibc in their official repository.

erikh commented 2 years ago

We support ubi8, not centos.