Problem with certificates

I’m with problems with ca-certificates. Every site that I try to access ask me for a confirmation of the certification and my update is not working 100% too

$ sudo rm -rf /etc/ssl/certs/*
$ sudo update-ca-certificates Updating certificates in /etc/ssl/certs... 152 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
$ sudo apt-get update
Err precise/main amd64 Packages              
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt    CRLfile: none
Err precise/main i386 Packages
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Ign precise/main Translation-en_US
Ign precise/main Translation-en
Fetched 1,118 kB in 44s (24.9 kB/s)

E: Some index files failed to download. They have been ignored, or old ones used instead.

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

You removed all certificates yourself when you ran sudo rm -rf /etc/ssl/certs/*. That broke your system. One thing you can do to fix this is to reinstall the package they come from:

sudo apt-get install --reinstall ca-certificates

This should be relatively safe. If that doesn’t work, you may need to purge the package out and reinstall it but don’t attempt this if you currently have broken packages.

sudo apt-get -f install
# stop if you saw any errors

sudo dpkg --purge --force-depends ca-certificates
sudo apt-get -f install

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply