Page 1 of 2

Can't install any program

Posted: 2019/11/07 18:25:31
by Rover
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

Re: Can't install any program

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

Did you try

Code: Select all

yum -v clean all
?

Re: Can't install any program

Posted: 2019/11/07 20:06:19
by BShT

Re: Can't install any program

Posted: 2019/11/07 21:28:48
by scottro
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.

Re: Can't install any program

Posted: 2019/11/08 17:07:12
by Rover
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

Re: Can't install any program

Posted: 2019/11/08 17:11:04
by Rover
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

Re: Can't install any program

Posted: 2019/11/08 17:22:56
by Rover
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"?

Re: Can't install any program

Posted: 2019/11/08 17:24:51
by tunk
How did you install mineos?
Something may not be compatible with CentOS 8.
What's the output from this: yum repolist

Re: Can't install any program

Posted: 2019/11/08 17:41:45
by Rover
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)

Re: Can't install any program

Posted: 2019/11/08 19:01:09
by TrevorH
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.