0

I'm trying to run the update command with yum:

yum update

I get the follwing message:

[root@commerce-dbs-tes-1 ~]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: centos.brisanet.com.br
 * extras: centos.brisanet.com.br
 * updates: centos.brisanet.com.br
https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: pgdg94. Please verify its path and try again

I know for a fact that there are pending Updates,and it was working until a did:

yum clean all

My system is a CentOS 6.7

Please help

1

Server cannot verify/accept cert data because of following reasons:

  1. Server date/time is invalid
  2. There is a MIM attack - someone is replacing traffic/issuing other certificate, which is invalid/self signed
  3. Certificate is invalid (not the current one, I see that it's valid, signed by trusted CA)
  4. CA certificates on the system are outdated, update ca-certificates package
| improve this answer | |
  • Thanks for the quick reply! I did just solve my problem: did vi /etc/yum.repos.d/pgdg-94-redhat-repo and change the enable=1 to enable=0 as i do not use postgres in this server that solved the issue. Thanks again friend – Jackknife Dec 10 '15 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.