Installing OpenSSL on CentOS vagrant box gives 404 error - networking

I'm running a CentOS 6 vagrant virtual machine under VMWare Fusion. The machine is working well. I need to test LDAP over SSL which requires me to install OpenSSL, so I ran sudo yum install openssl and I get the following errors:
http://mirror5.layerjet.com/remi/enterprise/6/remi/x86_64/repodata/repomd.xml: [
Errno 14] PYCURL ERROR 7 - "Failed to connect to 2a01:4f8:11a:b1f::1: Network is
unreachable"
Trying other mirror.
http://apt.sw.be/redhat/el6/en/x86_64/extras/repodata/repomd.xml: [Errno 14] PYC
URL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repoforg
eextras. Please verify its path and try again
Googling this error led me to try and clear the metadata cache with sudo yum clean metadata and sudo yum clean all, both of which evidently work but when I try and install OpenSSL I get the same errors.

Related

OCS Inventory Agent ERROR -> Failed to send Prolog <HTTP Status Code #404>

My OSC server is not receiving data from agents after a version upgrade. I checked on the logs and the error is <HTTP Status Code #404>.
Looking in URL "/ocsinventory", same error "404 Not Found".
I already tried to run all perl setup commands:
apt reinstall libxml-simple-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libarchive-zip-perl make build-essentialcpan install XML::Entities
apt reinstall php-pclzip make build-essential libdbd-mysql-perl libnet-ip-perl libxml-simple-perl php php-mbstring php-soap php-mysql php-curl php-xml php-zip
apt reinstall php-gd
My disto is Ubuntu 20.04

Unable to install yum-config-manager

While installing ansible I am getting below error -
https://packages.microsoft.com/rhel/7/mssql-server/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
So I tried to run the yum-configure-manager to disable the check however to install yum-utilities I am also getting the same error .
How to install yum-config-manager
Basically any yum install is failing with the above mentioned error
You can try installing the package by disabling the certificate check.
To disable certificate check, add following line in /etc/yum.conf:
sslverify=false
Then try yum install yum-utils

Nginx+Passenger Error - libcurl.so.4: version `CURL_OPENSSL_3' not found

System:
Ubuntu: 18.04 LTS
Passenger: 5.3.1
nginx with libnginx-mod-http-passenger
$ sudo nginx -t
Returns:
PassengerLoggingAgent: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by PassengerLoggingAgent)
2018/06/04 02:28:40 [alert] 10411#0: Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger logging agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)
```
You can install the required version 3 from the bionic repository if you don't depend on other software that already uses version 4:
sudo apt install libcurl3/bionic
This will ask you to remove curl itself, libcurl4, and dependend software. Consider carefully if you need those, before removing them.
You still can roll back by installing libcurl4 and the removed software again.
This fixed my problem:
sudo apt install libcurl4-openssl-dev

jenkins install errorno -3 error performing checksum on RHEL 5.7

I tried to install Jenkins on an RHEL 5.7 server (sudo yum install Jenkins) and I keep getting the error shown below:
http://pkg.jenkins.io/redhat-stable/repodata/a4a18ee2ec13db4b127e320edc4c7b7c9fbf1139a4505278b2c03727d3ca606b-primary.sqlite.bz2:
[Errno -3] Error performing checksum Trying other mirror. Error:
failure:
repodata/a4a18ee2ec13db4b127e320edc4c7b7c9fbf1139a4505278b2c03727d3ca606b-primary.sqlite.bz2
from jenkins: [Errno 256] No more mirrors to try.
I tried
Adding “http_cache=packages” to the yum.conf file
Ran “createrepo –s sha /etc/yum.repos.d”
Ran “sudo yum clean all”
But I still get the error. Any clues as to why this error is occurring?
Thanks,
Ralph.
It's looks like there is allready a ticket regarding this problem:
https://issues.jenkins-ci.org/browse/INFRA-685
In order to upgrade jenkins I download the latest rpm from:
http://pkg.jenkins-ci.org/redhat/
and instaled manualy with
rpm -Uvh jenkins-2.10-1.1.noarch.rpm
This will only upgrade jenkins but on my system, also a CentOS 5.11, yum update still have problems with perfoming checksum for jenkins packages. For me is at the moment acceptable.
Cheers, duderoot.

"No package found" error when installing NGINX on CentOS 5

The command sudo yum install nginx returns the error No package nginx available. I've tried this before and it worked but now it doesn't.
Please help!
nginx isn't in the 'normal' Centos repositories. You can install the EPEL repository to gain access to it. There's a how to guide here - and a more up to date one here.
Once you have added the EPEL repo, you can then install with the yum command you referenced.

Resources