r/voidlinux • u/DistinctDot5131 • Oct 19 '26
solved Struggling with CUPS
I have a Canon MG5300 printer, however I cant print anything. I always get the Error "filter failed" on every Document I try to print.
I made sure that I use the correct Paper format, installed required pakcages like the "pixma"-driver from the nonfree repo.
I can only set up my printer -- which I use over WiFi -- with CUPS+Gutenprint+IPP everywhere. I cant use the other options.
Has anyone else epxerienced the same problem?
3
Upvotes
4
u/DistinctDot5131 Oct 21 '26
Solved.
so basically check this Issue out: https://github.com/void-linux/void-packages/issues/40289
It's almost the same problem as I had.
Here are the steps I did to solve it:
Installed BJNP from a (hopefully not so fishy) site. I don't want to post a link here, because I'm not sure how many backdoors i now have, but you have to install BJNP which is a proprietary driver that canon printers use to communicate wirelessly. I used a sourceforge link.
anyways, when that is installed you need to build it:
Then I needed to fix the guteprint module path:
Check beforehand if bjnp is correctly set up
Now it works. At least for me.
The issue from above also mentioned an incorrect file path. There was also an attempt to update gutenprint, but the PR was discarded a while ago. Rip.
Also: If a job shows "completed" but nothing prints, check `lpstat -v MG5300`. It must show your `bjnp://` address, not `/dev/null`.
4
u/explaindeleuze2me420 Oct 19 '26
set the cups error log to debug, and watch while you try to print (sudo tail -f /var/log/cups/error_log). do you have the other cups-filters package installed? gs?
printing on Linux is such a pain the the ass, but that's on the printer industry, not Linux. I always think about how the entire free software movement was started because of how much proprietary printer drivers pissed Richard Stallman off (and I can relate, they piss me off as well)
1
u/benbcdm Oct 21 '26
I have a canon printer and getting cups / printing to work was one of the least challenging things I did on void.
But perhaps using plasma as desktop also helps here?
In any case, if that can help, here is what I did:
- tweaked ufw firewall rules to allow network discovery
- installed print-manager and system-config-printer (these are plasma-related I believe)
- added my user to groups lp and lp-admin
- installed cups package and activated cupsd service
- installed cups-filters (which pulled in other packages such as ghostscript)
- installed avahi and activated avahi-daemon service
- installed nss-mdns package
With all this it works just fine, my printer shows up in any app, I did not need to install a driver or anything.
1
u/Training_Concert_171 Oct 21 '26
Yeah, for some reason my Brother printer aswell has problems on void. The only distro that works is MXlinux. Not even debian 13 works, which is odd.
I believe the solution is trying to compile older cups-filters package. But I haven’t gotten to do that yet…
-3
u/Simple_Hamster_4096 Oct 20 '26
Perhaps move back to Cachy or other Arch derivative... or get a cheap HP printer, HP printers are never a hassle, especially if you install HPLIP...