Error message "cups-pki-invalid"  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Pete19.
Posts: 3
Joined: Sat Sep 23, 2023 8:58 am

Error message "cups-pki-invalid"

#1 Post by Pete19. »

Hi all,
I have recently had a new router supplied By Virgin Media , a V5 hub replacing the older V3 version and now cannot print with my HP 5000 all in one printer. I get the above error message and the trouble shooter doesn't have a solution. I get the same error running MX21.3 and also Linux Mint 21.1 xfce and Kubuntu 22.04 .I can print from a live USB with no problems so do not suspect the printer is faulty. I would be grateful for any assistance you can offer (i am something of a newbie to Linux problems so the simpler the better if possible.



Code: Select all

Snapshot created on: 20220315_1001
System:    Kernel: 5.10.0-25-amd64 [5.10.191-1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-25-amd64 root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower October 20  2021 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: ASUSTeK product: CM6630_CM6730_CM6830. v: N/A serial: <filter> 
           Mobo: ASUSTeK model: CM6330_CM6630_CM6730_CM6830 v: Rev x.0x serial: <filter> 
           UEFI: American Megatrends v: 4101 date: 09/04/2012 
CPU:       Info: Quad Core model: Intel Core i5-2320 bits: 64 type: MCP arch: Sandy Bridge 
           family: 6 model-id: 2A (42) stepping: 7 microcode: 2F cache: L2: 6 MiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 23944 
           Speed: 1696 MHz min/max: 1600/3300 MHz Core speeds (MHz): 1: 1696 2: 1683 3: 1696 

User avatar
CharlesV
Global Moderator
Posts: 7574
Joined: Sun Jul 07, 2019 5:11 pm

Re: Error message "cups-pki-invalid"

#2 Post by CharlesV »

Welcome in!

Assuming your printer is setup as wifi or network, try removing and recreating the printer.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
j2mcgreg
Global Moderator
Posts: 6939
Joined: Tue Oct 23, 2007 12:04 pm

Re: Error message "cups-pki-invalid"

#3 Post by j2mcgreg »

@Pete19.
In future, please post your complete QSI report.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
Pete19.
Posts: 3
Joined: Sat Sep 23, 2023 8:58 am

Re: Error message "cups-pki-invalid"

#4 Post by Pete19. »

Thanks for the advice ,sadly removing the printer doesn't resolve the issue I guess that the new router's SSID may have changed something and cups doesn't change with it.

User avatar
CharlesV
Global Moderator
Posts: 7574
Joined: Sun Jul 07, 2019 5:11 pm

Re: Error message "cups-pki-invalid"

#5 Post by CharlesV »

Some devices dont like the change to SSID's, and will need to 'forget' the network and then reconnect.

Try pinging the printer ip from your computer, (not the live usb) and verify it is answering. And also delete the printer and see if you can auto connect to it... ( ie verify the computer can find it online.)
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7574
Joined: Sun Jul 07, 2019 5:11 pm

Re: Error message "cups-pki-invalid"

#6 Post by CharlesV »

And, when you recreated the printer, you did that through the cups web interface ? http://localhost:631

That error message means that the printer is known, but not answering at the address assigned to it, so if you removed the printer and then added it, then cups * still * thinks it is at some other address or space.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7574
Joined: Sun Jul 07, 2019 5:11 pm

Re: Error message "cups-pki-invalid"  [Solved]

#7 Post by CharlesV »

It also appears that the error can occur if there is a bad / incorrect cert on the printer. Look in /etc/cups/ssl/ and see if there is a printer .crt file there. If so, then delete it and then recreate the printer.

As I recall, using the cups web interface and removing the printer there, will delete any invalid cert and then recreating there will create a new one. Not sure if doing that same thing in 'printers' will resolve it if the issue is the cert.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Pete19.
Posts: 3
Joined: Sat Sep 23, 2023 8:58 am

Re: Error message "cups-pki-invalid"

#8 Post by Pete19. »

All good now, thanks for all the help.

User avatar
CharlesV
Global Moderator
Posts: 7574
Joined: Sun Jul 07, 2019 5:11 pm

Re: Error message "cups-pki-invalid"

#9 Post by CharlesV »

Excellent! If you would please mark as solved using the check mark on the top right of the post that resolved it.

And if you found something different resolved it, it might help others to post the fix.

Thank you!
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Sigi
Posts: 132
Joined: Thu Mar 12, 2020 9:46 am

Re: Error message "cups-pki-invalid"

#10 Post by Sigi »

CharlesV wrote: Sat Sep 23, 2023 11:38 am It also appears that the error can occur if there is a bad / incorrect cert on the printer. Look in /etc/cups/ssl/ and see if there is a printer .crt file there. If so, then delete it and then recreate the printer.

As I recall, using the cups web interface and removing the printer there, will delete any invalid cert and then recreating there will create a new one. Not sure if doing that same thing in 'printers' will resolve it if the issue is the cert.
Thank you, I had exact the same issue today, curiously enough on two of my MX machines. Removing the *.crt in /etc/cups/ssl (needs root), solved id. :happy:

Post Reply

Return to “MX Help”