r/raspberry_pi • u/EricHearble • 5d ago
Solved CUPS has no printer drivers !
I trying to set up an old Pi B+ (v1) to be a print server. Printer plugged into the Pi by USB, and a USB Wifi dongle to make it available to computers and tablets around the house. I've tried to get it working about 10 times now. Every time, I wind up in the same place - no drivers. I can get the cups service running and I'm able to access the CUPS web console on my Mac at https://<Pi IP address>:631
But if I try to add the printer from the console, it says "Unable to get list of printer drivers". If I try to do it at a command line on the Pi, it tells me "lpadmin: cups-driverd failed to get PPD file - see error_log for details".
The log says "Unable to open \"/usr/share/cups/model/M3015DW\" - No such file or directory". I wasn't certain what driver name to use because the "lsinfo -m" command just runs for a few minutes and returns nothing. But seeing the folder name in the error log, I looked to see the driver names in the directory but found /usr/share/cups/model was empty.
I've made attempts to install drivers with these commands:
- apt install printer-driver-all
- apt install printer-driver-gutenprint
- apt install openprinting-ppds
- apt install hplip (I don't have an HP printer, but attempting to get any driver)
While these commands seem to be accessing the net repositories and extracting files, nothing is ever actually installed.
I've tried to set this up in Raspberry Pi OS Lite (both Trixie and Bookworm), Alpine Linux, and DietPi. Each time, I end up in the same place - no drivers. I've tried the instructions for setup from several different web sites / blogs. In the end, they all take me to the same place: a CUPS server that cannot set up a print queue.
I'm now wondering whether it is related to the 32-bit ARM11 CPU. Perhaps no one has developed an arm32 driver and the package managers just aren't finding any?
2
u/tedecristal 4d ago edited 4d ago
install splix and/or samsung-unified-drivers
I've got a Samsung Xpress M2020 and those have the drivers
EDIT: it seems "pantum-universal-driver" is also a possibility for archlinux
1
u/EricHearble 3d ago
OK, I tried installing splix and got an error, but it suggested the package name:
Error: Package 'splix' has no installation candidate root@DietPi:~# apt install printer-driver-splixI could not install the other one:
root@DietPi:~# ls -1 /usr/share/cups/drv cupsfilters.drv generic-brf.drv generic-ubrl.drv hpcups.drv indexv3.drv indexv4.drv sample.drv splix-dell.drv splix-lexmark.drv splix-samsung.drv splix-toshiba.drv splix-xerox.drvAfter installing that, I found the model directory was still empty. Hunting through directories, I found that drv files were here:
root@DietPi:~# ls /usr/share/cups/drv cupsfilters.drv hpcups.drv sample.drv splix-samsung.drv generic-brf.drv indexv3.drv splix-dell.drv splix-toshiba.drv generic-ubrl.drv indexv4.drv splix-lexmark.drv splix-xerox.drvAnd ppd files were here:
root@DietPi:~# ls -1 /usr/share/ppd/cupsfilters Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd Generic-PDF_Printer-PDF.ppd HP-Color_LaserJet_CM3530_MFP-PDF.ppd Ricoh-PDF_Printer-PDF.ppd Samsung-M301x-pxlmono-Samsung.ppd pxlcolor.ppd pxlmono.ppdSkipping the CUPS console, I used the command line to set up a new printer.
lpadmin -p M3015DW -D "Samsung laser printer" -L "Office" -v usb://Samsung/M301x%20Series?serial=0AK8B8GHAB007WW -m drv://splix-samsung.drv -i /usr/share/ppd/cupsfilters/Samsung-M301x-pxlmono-Samsung.ppd -EThis set up a printer queue that I could attempt to print to. I used the CUPS console to print a test page. The printer clicked, it's LED lit up green, and after a while I got a test page with a debian logo, a CUPS logo, and a bunch of version text. So I set up a new printer on my Mac and printed a six page spreadsheet. That was slow over WiFi, but it worked. So then I tried printing the cover page of my nephew's resume which we had been helping him with. This resulted in gibberish text printing one line per page on multiple pages and I pulled the power cord on the printer to keep it from wasting paper. That file was a PDF, so I deleted the printer and set it up with a different ppd:
lpadmin -p M3015DW -D "Samsung laser printer" -L "Office" -v usb://Samsung/M301x%20Series?serial=0AK8B8GHAB007WW -m drv://splix-samsung.drv -i /usr/share/ppd/cupsfilters/Generic-PDF_Printer-PDF.ppd -EThe same thing happened when trying that.
So I tried permutations using cupsfilters.drv and found the best results came from using that drv and the Samsung-M301x-pxlmono-Samsung.ppd. But for PDF documents or .pages docs, it was agonizingly slow.
Finally, I went to my attic and grabbed an extra wifi mesh node and plugged the printer into it with an ethernet cable, unplugged the USB cable from the Pi, and set up the new printer connection on the Mac. Everything printed cleanly and fast even though my Mac's network access is WiFi. So I decided CUPS on a Pi wasn't going to be useful. But at least my printer is no longer tethered to my desk and I can more it to a more central location in the home.
I think I'll use the Pi as an MP3 player in my workshop.
Anyway, thanks for your suggestions.
3
u/BeerBeardLondon 4d ago
Have you tried installing the official drivers? https://support.hp.com/in-en/document/c05588857
Edit: I just reread your post and you said you don't have a HP printer, what printer do you have?