No certs?update fail

Hello guys having issues updating…
Err splynx/main amd64 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Fetched 1,929 B in 22s (87 B/s)
CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
are the errors im getting any idea??

did you try?

apt-get install ca-certificates

solution is:
On old releases : Ubuntu 14.04 etc, you can receive this error in case of don’t updated ca-certificates , better is update system.

but if you want to stay on old one you need to add our cert to your cert db.

please don’t use this in other cases.

echo $(echo -n | openssl s_client -showcerts -connect 2>/dev/null  | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p') >> /etc/ssl/certs/ca-certificates.crt

apt update