How to yum install samba in CentOS 8
by lq_win from LinuxQuestions.org on (#6N2RJ)
Hi,
I'm new with Linux, I want to learn samba and want to install it, I have tried to run:
yum install samba*
but it failed:
Error downloading packages:
libldb-1.5.4-2.el7.x86_64: [Errno 256] No more mirrors to try.
samba-libs-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
trousers-0.3.14-2.el7.x86_64: [Errno 256] No more mirrors to try.
samba-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
libtdb-1.3.18-1.el7.x86_64: [Errno 256] No more mirrors to try.
libtalloc-2.1.16-1.el7.x86_64: [Errno 256] No more mirrors to try.
nettle-2.7.1-9.el7_9.x86_64: [Errno 256] No more mirrors to try.
pyldb-1.5.4-2.el7.x86_64: [Errno 256] No more mirrors to try.
libtevent-0.9.39-1.el7.x86_64: [Errno 256] No more mirrors to try.
python-tdb-1.3.18-1.el7.x86_64: [Errno 256] No more mirrors to try.
libwbclient-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
pytalloc-2.1.16-1.el7.x86_64: [Errno 256] No more mirrors to try.
samba-common-tools-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
samba-common-4.10.16-25.el7_9.noarch: [Errno 256] No more mirrors to try.
gnutls-3.3.29-9.el7_6.x86_64: [Errno 256] No more mirrors to try.
samba-client-libs-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
samba-common-libs-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
my /etc/yum.conf is:
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
and yum info samba gives me:
root@iZk1aa2qin3uxnqh8agvrmZ yum.repos.d]# yum info samba
Loaded plugins: copr, fastestmirror
Loading mirror speeds from cached hostfile
* remi-php72: ftp.riken.jp
* remi-php74: ftp.riken.jp
* remi-safe: ftp.riken.jp
http://mirrors.cloud.aliyuncs.com/ce...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/ep...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/ce...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
http://files.freeswitch.org/yum-1.6/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
pgdg-common/7/x86_64/signature | 665 B 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pgdg-common/7/x86_64/signature | 2.9 kB 00:00:00 !!!
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg-common
Trying other mirror.
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
pgdg12/7/x86_64/signature | 665 B 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pgdg12/7/x86_64/signature | 3.6 kB 00:00:00 !!!
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg12
Trying other mirror.
pgdg13/7/x86_64/signature | 665 B 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pgdg13/7/x86_64/signature | 3.6 kB 00:00:00 !!!
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg13
Trying other mirror.
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/ce...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
Available Packages
Name : samba
Arch : x86_64
Version : 4.10.16
Release : 25.el7_9
Size : 720 k
Repo : updates/7/x86_64
Summary : Server and Client software to interoperate with Windows machines
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : Samba is the standard Windows interoperability suite of programs for Linux and
: Unix.
what should I do?
I'm new with Linux, I want to learn samba and want to install it, I have tried to run:
yum install samba*
but it failed:
Error downloading packages:
libldb-1.5.4-2.el7.x86_64: [Errno 256] No more mirrors to try.
samba-libs-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
trousers-0.3.14-2.el7.x86_64: [Errno 256] No more mirrors to try.
samba-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
libtdb-1.3.18-1.el7.x86_64: [Errno 256] No more mirrors to try.
libtalloc-2.1.16-1.el7.x86_64: [Errno 256] No more mirrors to try.
nettle-2.7.1-9.el7_9.x86_64: [Errno 256] No more mirrors to try.
pyldb-1.5.4-2.el7.x86_64: [Errno 256] No more mirrors to try.
libtevent-0.9.39-1.el7.x86_64: [Errno 256] No more mirrors to try.
python-tdb-1.3.18-1.el7.x86_64: [Errno 256] No more mirrors to try.
libwbclient-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
pytalloc-2.1.16-1.el7.x86_64: [Errno 256] No more mirrors to try.
samba-common-tools-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
samba-common-4.10.16-25.el7_9.noarch: [Errno 256] No more mirrors to try.
gnutls-3.3.29-9.el7_6.x86_64: [Errno 256] No more mirrors to try.
samba-client-libs-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
samba-common-libs-4.10.16-25.el7_9.x86_64: [Errno 256] No more mirrors to try.
my /etc/yum.conf is:
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
and yum info samba gives me:
root@iZk1aa2qin3uxnqh8agvrmZ yum.repos.d]# yum info samba
Loaded plugins: copr, fastestmirror
Loading mirror speeds from cached hostfile
* remi-php72: ftp.riken.jp
* remi-php74: ftp.riken.jp
* remi-safe: ftp.riken.jp
http://mirrors.cloud.aliyuncs.com/ce...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/ep...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/ce...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
http://files.freeswitch.org/yum-1.6/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
pgdg-common/7/x86_64/signature | 665 B 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pgdg-common/7/x86_64/signature | 2.9 kB 00:00:00 !!!
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg-common
Trying other mirror.
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
pgdg12/7/x86_64/signature | 665 B 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pgdg12/7/x86_64/signature | 3.6 kB 00:00:00 !!!
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg12
Trying other mirror.
pgdg13/7/x86_64/signature | 665 B 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pgdg13/7/x86_64/signature | 3.6 kB 00:00:00 !!!
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno -1] Gpg Keys not imported, cannot verify repomd.xml for repo pgdg13
Trying other mirror.
https://download.postgresql.org/pub/...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/ce...ta/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
Available Packages
Name : samba
Arch : x86_64
Version : 4.10.16
Release : 25.el7_9
Size : 720 k
Repo : updates/7/x86_64
Summary : Server and Client software to interoperate with Windows machines
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : Samba is the standard Windows interoperability suite of programs for Linux and
: Unix.
what should I do?