Score:0

apt update "Certificate verification failed: The certificate is NOT trusted"

cn flag

I have an Ubuntu server running an old istance of OpenERP 7.0

Ubuntu 18.04 with Postgresql 10.10

When i type "apt update" i give an error on certificate trust i don't know to solve

maybe related to recent update of LetEncrypt?

root@ODOO:/etc/apt# apt update
Hit:1 http://mirror.hetzner.de/ubuntu/packages bionic InRelease
Hit:2 http://mirror.hetzner.de/ubuntu/packages bionic-updates InRelease                                                                                                                                                         
Hit:3 http://mirror.hetzner.de/ubuntu/packages bionic-backports InRelease                                                                                                                                                       
Hit:4 http://mirror.hetzner.de/ubuntu/packages bionic-security InRelease                                                                                                                                                        
Hit:5 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease                                                                                                                                                             
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                                             
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                                                               
Ign:8 https://apt.postgresql.org/pub/repos/apt trusty-pgdg InRelease                                                                                                    
Hit:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                                       
Err:10 https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release                                                                                                      
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 217.196.149.55 443]
Hit:11 http://cz.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                              
Hit:12 http://security.ubuntu.com/ubuntu bionic-security InRelease                                      
Reading package lists... Done                     
E: The repository 'https://apt.postgresql.org/pub/repos/apt trusty-pgdg Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
guiverc avatar
cn flag
Ubuntu 14.04 LTS has ended it's *standard* support life, and 3rd party sources are free to *drop* the release. That site doesn't provide support for Ubuntu 14.04 (*trusty*)
cn flag
Ok thanks, can i comment the string on sources.list to avoid update Postgres? I want to update to rest of system packages.
guiverc avatar
cn flag
Yes, making it a comment has the effect of disabling it (if you look at your repositories, it'll still show but won't be used/updated due to being disabled)
ChanganAuto avatar
us flag
Or even better change "trusty" to "bionic". Thee error is because the repository maintainers removed support for "trusty".
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.