Minggu, 14 Mei 2023

ERROR ADD REPO-sertifikat

 In my case it was my company's man-in-the-middle fake SSL certificate that caused this misleading error. If you are on corporate internet, you may need to install your company's SSL cert at /usr/local/share/ca-certificates/yourcompany.crt and run sudo apt-get update && sudo apt-get install ca-certificates -y && sudo update-ca-certificates

===================

ubuntu@ubuntu:~$ sudo -E add-apt-repository ppa:mapopa/firebird3.0
Traceback (most recent call last):
 File "/usr/lib/python3.5/urllib/request.py", line 1261, in do_open
   h.request(req.get_method(), req.selector, req.data, headers)
 File "/usr/lib/python3.5/http/client.py", line 1151, in request
   self._send_request(method, url, body, headers)
 File "/usr/lib/python3.5/http/client.py", line 1196, in _send_request
   self.endheaders(body)
 File "/usr/lib/python3.5/http/client.py", line 1147, in endheaders
   self._send_output(message_body)
 File "/usr/lib/python3.5/http/client.py", line 950, in _send_output
   self.send(msg)
 File "/usr/lib/python3.5/http/client.py", line 893, in send
   self.connect()
 File "/usr/lib/python3.5/http/client.py", line 1305, in connect
   server_hostname=server_hostname)
 File "/usr/lib/python3.5/ssl.py", line 377, in wrap_socket
   _context=self)
 File "/usr/lib/python3.5/ssl.py", line 752, in __init__
   self.do_handshake()
 File "/usr/lib/python3.5/ssl.py", line 988, in do_handshake
   self._sslobj.do_handshake()
 File "/usr/lib/python3.5/ssl.py", line 633, in do_handshake
   self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)
ubuntu@ubuntu:~$ sudo apt-get update && sudo apt-get install ca-certificates -y && sudo update-ca-certificates
Hit:1 http://id.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://id.archive.ubuntu.com/ubuntu xenial-updates InRelease                                      
Hit:3 http://id.archive.ubuntu.com/ubuntu xenial-backports InRelease                                    
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [99.8 kB]
Fetched 99.8 kB in 1s (95.6 kB/s)                               
Reading package lists... Done
Reading package lists... Done
Building dependency tree        
Reading state information... Done
The following packages will be upgraded:
 ca-certificates
1 upgraded, 0 newly installed, 0 to remove and 237 not upgraded.
Need to get 148 kB of archives.
After this operation, 108 kB disk space will be freed.
Get:1 http://id.archive.ubuntu.com/ubuntu xenial-updates/main i386 ca-certificates all 20210119~16.04.1 [148 kB]
Fetched 148 kB in 0s (876 kB/s)           
Preconfiguring packages ...
(Reading database ... 67242 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20210119~16.04.1_all.deb ...
Unpacking ca-certificates (20210119~16.04.1) over (20160104ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up ca-certificates (20210119~16.04.1) ...
Processing triggers for ca-certificates (20210119~16.04.1) ...
Updating certificates in /etc/ssl/certs...
42 added, 86 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
ubuntu@ubuntu:~$ sudo add-apt-repository ppa:mapopa/firebird3.0                                                
This is the ppa for Firebird 3.0 uploaded from debian archive  
http://packages.qa.debian.org/f/firebird3.0.html

Here is the guide for using it
https://help.ubuntu.com/community/Firebird3.0


More info: https://launchpad.net/~mapopa/+archive/ubuntu/firebird3.0
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpkkdi7sx9/secring.gpg' created
gpg: keyring `/tmp/tmpkkdi7sx9/pubring.gpg' created
gpg: requesting key EF648708 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpkkdi7sx9/trustdb.gpg: trustdb created
gpg: key EF648708: public key "Launchpad PPA for Mariuz" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
ubuntu@ubuntu:~$

Tidak ada komentar:

Posting Komentar