Can't install any program

Issues related to applications and software problems and general support
Rover
Posts: 5
Joined: 2019/11/07 18:02:34

Can't install any program

Post by Rover » 2019/11/07 18:25:31

Simplify: When I try to install something i get greeted with Failed to synchronize cache for repo 'nodesource' And I can't find a solution

Hello everyone, so a couple of days ago I had trouble with my Ubuntu-Servermachine installing linuxgsm, and a guy convinced me into installing centos and even helped me to set it up, and im really enjoying the VM performance. Though when I wanted to install mineos (a minecraft web based server manager) "i know i know"

I got greeted with a kind: Failed to synchronize cache for repo 'nodesource'

And later i realized that i got it on everything i wanted to install.

Am I missing something? I've searched around on the internet desperate (not really) to find an answer though I was greeted with no luck it seems.

I'm still pretty new to linux so excuse me if im coming of as annoying :(

OS: CentOS Linux release 8.0.1905 (Core)

Image below

https://prnt.sc/ptvft8

MakeTopSite
Posts: 21
Joined: 2019/10/11 09:13:47

Re: Can't install any program

Post by MakeTopSite » 2019/11/07 20:04:12

Hello, welcome.

Did you try

Code: Select all

yum -v clean all
?


scottro
Forum Moderator
Posts: 2430
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Can't install any program

Post by scottro » 2019/11/07 21:28:48

Just a quick note that CentOS & RH-8.x are using dnf rather than yum. (Though you can still install with yum). Many commands are identical, e.g., dnf clean all

It looks like the discussion that BShT linked to may have the solution.
New users should check the FAQ and Read Me First pages

Rover
Posts: 5
Joined: 2019/11/07 18:02:34

Re: Can't install any program

Post by Rover » 2019/11/08 17:07:12

MakeTopSite wrote:
2019/11/07 20:04:12
Hello, welcome.

Did you try

Code: Select all

yum -v clean all
?
no i dont think so? I will do it now

Rover
Posts: 5
Joined: 2019/11/07 18:02:34

Re: Can't install any program

Post by Rover » 2019/11/08 17:11:04

nope, didn't work. For example i wanted to install git. And when it reached "Node.js Packages for Enterprise Linux 8 - x86_6" it said "Error: Failed to synchronize cache for repo 'nodesource'"

Outputsudo yum install git
CentOS-8 - AppStream 1.7 MB/s | 6.3 MB 00:03
CentOS-8 - Base 2.4 MB/s | 7.9 MB 00:03
CentOS-8 - Extras 682 B/s | 2.1 kB 00:03
Extra Packages for Enterprise Linux 8 - x86_64 808 kB/s | 3.3 MB 00:04
Node.js Packages for Enterprise Linux 8 - x86_6 134 B/s | 162 B 00:01
Error: Failed to synchronize cache for repo 'nodesource'
[root@HM-KVMNODE-00 ~]# Node.js Packages for Enterprise Linux 8 - x86_6Error: Failed to synchronize cache for repo 'nodesource'

Yes im logged in as root and i did a sudo command on root xd

Rover
Posts: 5
Joined: 2019/11/07 18:02:34

Re: Can't install any program

Post by Rover » 2019/11/08 17:22:56

scottro wrote:
2019/11/07 21:28:48
Just a quick note that CentOS & RH-8.x are using dnf rather than yum. (Though you can still install with yum). Many commands are identical, e.g., dnf clean all

It looks like the discussion that BShT linked to may have the solution.
Well, yeah it seems to have no diffrence using yum or dnf. And how the flip do I "Refresh my manifest"?

tunk
Posts: 611
Joined: 2017/02/22 15:08:17

Re: Can't install any program

Post by tunk » 2019/11/08 17:24:51

How did you install mineos?
Something may not be compatible with CentOS 8.
What's the output from this: yum repolist

Rover
Posts: 5
Joined: 2019/11/07 18:02:34

Re: Can't install any program

Post by Rover » 2019/11/08 17:41:45

tunk wrote:
2019/11/08 17:24:51
How did you install mineos?
Something may not be compatible with CentOS 8.
What's the output from this: yum repolist
Never installed it. Since I got the error message when I wanted to install nodejs (node.js)

I went to the official wiki to install btw. https://minecraft.codeemo.com/mineoswik ... node_(yum)

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

Re: Can't install any program

Post by TrevorH » 2019/11/08 19:01:09

Well I looked at this and the reason you are receiving this error is because there is no repodata for that repo on the node url. They take you to https://rpm.nodesource.com/pub_8.x/el/8/ but there is no repodata directory under that (or anywhere else). That means it is not a functional yum repo. You need to report this to the nodesource people and in the meantime you will need to use e.g. yum --disablerepo=nodesource ... whatever each time you run yum or edit the /etc/yum.repos.d/ .repo file and disable it there.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”