Software⏱️ 3 min read📅 2026-06-11

How to Fix: Error: ca-certificates is broken or not fully installed

Error: ca-certificates is broken or not fully installed - How to fix.

Quick Answer: Try running `sudo apt install ca-certificates -f` and then `sudo update-ca-certificates`. If the issue persists, try reinstalling the package with `sudo dpkg-reconfigure ca-certificates`.

The 'ca-certificates is broken or not fully installed' error occurs when the system's certificate database, which includes trusted root certificates, is incomplete or corrupted. This issue affects users who rely on self-signed SSL certificates for secure communication.

It can be frustrating to encounter this error, especially if you were in the middle of installing a self-signed SSL certificate. Fortunately, there are steps you can take to resolve the issue and restore your system's certificate database.

🛑 Root Causes of the Error

  • The primary reason for this error is that the dpkg-reconfigure command was interrupted due to a power failure, causing the ca-certificates package to become partially installed or corrupted. This can happen when a user tries to configure the package while their system is experiencing issues.
  • An alternative reason could be that the c_rehash program, which is used to update the certificate database, has encountered an error while trying to re-hash the certificates. This can occur due to various reasons such as outdated dependencies or corrupted files.

🛠️ Step-by-Step Verified Fixes

Re-run dpkg-reconfigure with a clean slate

  1. Step 1: Stop any ongoing package installations and reboot your system to ensure that all packages are in their latest state.
  2. Step 2: Run the following command to remove any partially installed packages: `sudo apt purge ca-certificates`
  3. Step 3: Once the package has been purged, run `sudo dpkg-reconfigure --reinstall ca-certificates` to re-run the configuration process from scratch.

Manually update the certificate database using c_rehash

  1. Step 1: Run the following command to update the certificate database: `sudo update-ca-certificates -f`
  2. Step 2: If the update fails due to an error in c_rehash, you can try running it with the `--force-rehash` option: `sudo update-ca-certificates --force-rehash -f`

💡 Conclusion

To resolve the 'ca-certificates is broken or not fully installed' error, try re-running dpkg-reconfigure with a clean slate or manually updating the certificate database using c_rehash. If you encounter any issues during this process, do not hesitate to seek further assistance from your system administrator or online resources.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions