Rosiberto
Rosiberto

Reputation: 83

Error downloading and installing Java JDK in CentOS (FIWARE)

I am trying to configure Cygnus in my FIWARE instance. Following the readthedocs tutorial I execute the following command:

yum install java-1.7.0-openjdk-devel

And the following error is listed:

Loaded plugins: fastestmirror, presto

Setting up Install Process

Loading mirror speeds from cached hostfile

  *base: mirror.gadix.com

  *epel: mirror.airenetworks.es

  *extras: mirror.gadix.com

  *updates: mirror.airenetworks.es


http://repositories.lab.fiware.org/repo/rpm/6/repodata/repomd.xml: 

[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.

Error: Can not retrieve repository metadata (repomd.xml) for repository: fiware. Please verify your path and try again

Anyone have any idea what it can be and how to solve it? I'm new to Linux environment.

Upvotes: 1

Views: 2011

Answers (2)

fgalan
fgalan

Reputation: 12294

Java version was changes in the past and newest Cygnus version (1.12.0 by the time being) uses Java 1.8, so probably you should run:

yum install java-1.8.0-openjdk-devel

I'd recommend to have a look to the RUN statement in Dockerfile. The same procedure used to build the docker container can be done to do local installations of Cygnus.

Upvotes: 1

thebluemagician
thebluemagician

Reputation: 183

It is working fine for me, please refer to this answer to clean the metadata and try installing again. RHEL documentation mentions similar commands for OpenJdk devel installation.

or run the following commands and try installing it again:

yum clean all
yum makecache
yum update

Upvotes: 1

Related Questions