HELP - Error in ca-certificates don't allow update or install any package

The principal error is:

installed ca-certificates package post-installation script subprocess returned error exit status 132

I have tried to install Kicksecure 4 times yet. All time I get the same issue. Just after installation, I reboot, then select the second option of the grub, check for updates and then install updates.

In the process of upgrade certificates module throw errors in certifications of a lots packets, for example:

W: tor+https://deb.debian.org/debian/pool/main/m/miscfiles/miscfiles_1.5%2bdfsg-4_all.deb: No system certificates available. Try installing ca-certificates.
E: Failed to fetch tor+https://deb.debian.org/debian/pool/main/libh/libhttp-date-perl/libhttp-date-perl_6.05-2_all.deb  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 127.0.0.1 9050]

I have tried to reinstall ca-certificates, reconfigure dpkg, fix broken dependencies, install ca-certificates manually from debian website.

Nothing works…

I don’t have an old PC, I have been using Ubuntu in the same PC with the same hardware for 2 years.

I have tried to debug the issue and reinstall some packages but I can’t for the problem with certificates…

sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311+deb12u1).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up ca-certificates (20230311+deb12u1) ...
Updating certificates in /etc/ssl/certs...
Illegal instruction (core dumped)
dpkg: error processing package ca-certificates (--configure):
 installed ca-certificates package post-installation script subprocess returned 
error exit status 132
Errors were encountered while processing:
 ca-certificates
E: Sub-process /usr/bin/dpkg returned an error code (1)
zsh: exit 100   sudo apt install ca-certificates

Anyone know which could be the problem?

What hardware are you attempting to run Kicksecure on? Also, are you sure that the OS image you downloaded is good? It might be worth doing GPG signature checks to make very sure the image you’re using is not corrupted.

“Illegal instruction” means that something in the system tried to tell the CPU to do something it doesn’t understand how to do. This should in theory never happen.

1 Like

Probably same issue as this:

I have downloaded the image from kicksecure official site, and I have tried both, stable and tester: Kicksecure Live ISO (via USB) and Installation.

The hardware I’m running shouldn’t be a problem:

  • Intel i7 6700K
  • Mother board Z270
  • Nvidia RTX 3060
  • RAM 32GB ddr4
  • Nvme last generation

Refer to my previous post. Probably solution there and no further information required.

Resolved for me at the moment, I did the following steps to assure a clean installation:

  1. Resintalled kicksecure
  2. In the first boot, enter in persistent mode and remove gather_data_sampling=force with the command below:
sudo str_replace 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX gather_data_sampling=force"' '#GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX gather_data_sampling=force"' /etc/default/grub.d/40_cpu_mitigations.cfg
  1. update-grub
  2. Reboot
  3. Purge ca-certificates
  4. Install ca-certificates successfully
  5. Open System Maintenance Panel and execute update, upagrade and purge of unused packages, in this orden
  6. And finally other reboot for verify all is correct in boot.

Thanks! A few more steps required indeed.

No need.

Boot into sysmaint mode.

sudo update-grub

Yes. Very much needed.

sudo apt install --reinstall ca-certificates