yum update or another command not working in Centos 8.2

Issues related to applications and software problems and general support
Post Reply
nithin
Posts: 2
Joined: 2020/11/18 09:25:35

yum update or another command not working in Centos 8.2

Post by nithin » 2020/11/18 10:07:25

Hi,

Installed centos-release-8.2-2.2004.0.2.el8.x86_64 in Dell ServerPC
When im executing the below command its giving error as shown below:

[root@localhost ~]# yum update
Extra Packages for Enterprise Linux Modular 8 - 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'epel-modular':
- Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... ent=centos [Failed to connect to mirrors.fedoraproject.org port 443: Connection refused]
Error: Failed to download metadata for repo 'epel-modular': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... ent=centos [Failed to connect to mirrors.fedoraproject.org port 443: Connection refused]

For many commands to download some softwares, i am facing same error. Please tell me solution to solve this

User avatar
TrevorH
Forum Moderator
Posts: 30559
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update or another command not working in Centos 8.2

Post by TrevorH » 2020/11/18 10:12:30

The problem is with the EPEL Modular repo which is not supplied by CentOS. You need to ask them why it is not working but in the meantime you can disable the repo by editing its file in /etc/yum.repos.d and changing enabled=1 to 0. Or override it per command using yum --disablerepo=epel-modular ...
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

nithin
Posts: 2
Joined: 2020/11/18 09:25:35

Re: yum update or another command not working in Centos 8.2

Post by nithin » 2020/11/18 11:29:41

- You need to ask them why it is not working >>> to whom i need to contact??
- Meanwhile i have modified conf for repo epel-modular by changing enabled from 1 to 0 now error is coming for repo epel
and again modified epel repo conf file, now its working

- When i m executing this command sudo yum -y install dkms i m getting error as
No match for argument: dkms
Error: Unable to find a match: dkms
Please tell me solution for this

Hachi-ait
Posts: 5
Joined: 2020/06/14 18:18:10

Re: yum update or another command not working in Centos 8.2

Post by Hachi-ait » 2021/01/22 08:33:14

Dear nithin,

Could you please share if you are able to fix this error? Thank you
I got the same problem with you when

Code: Select all

yum install nco
I changed enable from 1 to 0 in both epel-modular.repo and epel.repo
Then got the same error with you

Code: Select all

Error: Unable to find a match: nco
Best
Ha Chi

sml
Posts: 246
Joined: 2020/01/17 09:01:44

Re: yum update or another command not working in Centos 8.2

Post by sml » 2021/01/22 09:05:21

Hachi-ait wrote:
2021/01/22 08:33:14
I changed enable from 1 to 0 in both epel-modular.repo and epel.repo
Enable epel.repo again. nco is provided by EPEL.

Hachi-ait
Posts: 5
Joined: 2020/06/14 18:18:10

Re: yum update or another command not working in Centos 8.2

Post by Hachi-ait » 2021/01/22 09:23:30

Hi,
If I enable the epel.repo,
the message error like this:

Code: Select all

[root@localhost ~]# sudo yum install nco
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                       0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'epel':
  - Curl error (1): Unsupported protocol for https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=stock&content=centos [Protocol "https" not supported or disabled in libcurl]
Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (1): Unsupported protocol for https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=stock&content=centos [Protocol "https" not supported or disabled in libcurl]

sml
Posts: 246
Joined: 2020/01/17 09:01:44

Re: yum update or another command not working in Centos 8.2

Post by sml » 2021/01/22 10:57:54

Hachi-ait wrote:
2021/01/22 09:23:30

Code: Select all

  - Curl error (1): Unsupported protocol for https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=stock&content=centos [Protocol "https" not supported or disabled in libcurl]
The error says it all. Replace https with http.

User avatar
jlehtone
Posts: 3419
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum update or another command not working in Centos 8.2

Post by jlehtone » 2021/01/22 12:05:19

@Hachi-ait: Your error is different from nithin's. You have hijacked old thread unnecessarily.

Code: Select all

$ rpm -qf /etc/yum.repos.d/epel.repo
epel-release-8-10.el8.noarch

$ sudo dnf -q list --showduplicates epel-release
Installed Packages
epel-release.noarch  8-10.el8  @epel 
Available Packages
epel-release.noarch  8-8.el8    extras

$ grep metalink /etc/yum.repos.d/epel.repo
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
The URL in 8-8.el8 (package from 'extras') is identical; both use HTTPS. The 'curl' should support HTTPS just fine.

Why does curl give that error?

Does it say the same, when used directly?

Code: Select all

$ curl 'https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=stock&content=centos'

desertcat
Posts: 821
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: yum update or another command not working in Centos 8.2

Post by desertcat » 2021/01/22 17:12:45

nithin wrote:
2020/11/18 10:07:25
Hi,

Installed centos-release-8.2-2.2004.0.2.el8.x86_64 in Dell ServerPC
When im executing the below command its giving error as shown below:

[root@localhost ~]# yum update
Extra Packages for Enterprise Linux Modular 8 - 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'epel-modular':
- Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... ent=centos [Failed to connect to mirrors.fedoraproject.org port 443: Connection refused]
Error: Failed to download metadata for repo 'epel-modular': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... ent=centos [Failed to connect to mirrors.fedoraproject.org port 443: Connection refused]

For many commands to download some softwares, i am facing same error. Please tell me solution to solve this
Hummmmmm. This is not that big a mystery. First you are using CentOS 8.2 which is HORRIBLE!! Upgrade to 8.3 -- yes 8.3 is BAD but it is usable, as right now I am kicking its tires. I am fully expecting it will be 8.5 that we will see a fully polished OS with only a few rough edges.

Second you are using DELL the computer I love to hate. My sister has had many and I have worked on all of them. Dell is God's joke on computer users. There has never been a more cheaply made, with parts as cheap as they could find, yet sold for a kings ransom, computer. DELL computers are the Frankenstein's Monster of computers. I can see them running around crying, "It's ALIVE!!! It's ALIVE!!!"

D'Cat

Post Reply

Return to “CentOS 8 - General Support”