LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2024, 06:00 AM   #1
lq_win
Member
 
Registered: Jul 2015
Posts: 71

Rep: Reputation: Disabled
How to yum install samba in CentOS 8


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?

Last edited by lq_win; 05-26-2024 at 06:07 AM.
 
Old 05-26-2024, 10:12 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,182

Rep: Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394Reputation: 7394
what OS do you have? How did you install it at all? Your yum repositories are not configured properly. Or the host mirrors.cloud.aliyuncs.com is down or just unavailable. For me it is unavailable.
 
1 members found this post helpful.
Old 05-26-2024, 10:18 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,846

Rep: Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009
Quote:
Originally Posted by lq_win View Post
Hi,
I'm new with Linux, I want to learn samba and want to install it,
You're 'new with Linux', but have been here and posting since 2015??? You're "new" after *NINE YEARS*, and asking about things like dovecot, etc.???
Quote:
I have tried to run: yum install samba* but it failed:
Code:
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:
Code:
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?
You need to post things like this in CODE tags, and did you read what you posted??? Very clearly tells you that one of your mirrors can't be reached...and gave you hints on what to do. Did you read/follow that advice?? And if you're using CentOS 8, why do you have a CentOS 7 repositories enabled?? You need to revisit what repositories you have enabled, and why....CentOS 7 isn't CentOS 8, so that needs to be corrected first.
 
Old 05-26-2024, 09:45 PM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,177

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
check if you have:
- internet
- dns (/etc/resolv.conf)
- repositories config
 
Old 05-29-2024, 01:17 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,377

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
As TBOne said
Quote:
if you're using CentOS 8, why do you have a CentOS 7 repositories enabled??
Sounds like a franken-machine ie someone tried to update Centos 7 to Centos 8 in-place - that will NOT work.

Frankly I'd backup any important stuff, then do clean fresh install of Centos-Stream 9 or Rocky 9 or ... 9 & start from there.
 
Old 05-29-2024, 01:17 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,377

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
Accidental dupe of prev reply

Last edited by chrism01; 05-29-2024 at 11:48 PM. Reason: Accidental dupe of prev reply :(
 
Old 05-29-2024, 08:48 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,845

Rep: Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977Reputation: 5977
Until the OP responds I would assume 8 versus 7 is just a typo. Although the OP appears to have made a bit of a mess with installing more recent versions of postgresql and not deleting the old stuff. Since Signalwire acquired Freeswitch back in 2018 that repo link might have broken for awhile now. I can not find mirrors.cloud.aliyuncs.com in the CentOS mirror list so updates entirely might have been broken for awhile and the OP should change it. However, CentOS 7 ( I assume ) support is ending in a month so it is time to migrate to something else. Alma or Rocky linux would be the successors to CentOS.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum Install samba "No package samba available" "No package samba-client available." young redhat Linux - Software 8 04-16-2019 08:05 PM
LXer: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 05:12 PM
yum install lib getting fails yum install lib* leads to install 1050 dependency pkg LittleMaster Linux - Server 3 10-29-2012 01:14 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration