Print job stuck on pending🔗

Can't you print to your network discovered printer? Is the job stuck on pending?

Did you find out you had to enable the printer in its policies, only to find out that your computer is now frozen?

Yeah, me too.

Nothing wrong with your computer, it appears to be CUPS (Common UNIX Printing System) that is messing with you.

If you open Settings → Printers → Additional Printer Settings..., double click the printer you want to use, and click Ink/Toner Levels, you might see the message Printer 'PRINTER_NAME':'cups-pki-invalid.

This means that CUPS' certificate has expired.

Unfortunately, there's no real GUI guide for this, so terminal it is!

Open your terminal and run below command:

sudo rm -rf /etc/cups/ssl/*

This deletes the certificate for cups, which is the cause for all our printer issues.

Then restart the cups service (below assumes you use systemd):

systemctl restart cups

Now you should be able to print again.