OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1k stars 178 forks source link

Driver from MacOS does not work on Linux, fails with error 'execv failed: Exec format error' #790

Closed draculalaa closed 11 months ago

draculalaa commented 11 months ago

Describe the bug Can't print after adding printer, job state shows "stopped 'Filter failed' ".

To Reproduce Steps to reproduce the behavior:

  1. try to print with lp -d Lenovo-M7208W -o Duplex=DuplexNoTumble Documents/test.pdf, the printer doesn't work and http://127.0.0.1:631/jobs/ shows job state is "stopped 'Filter failed' "
  2. retry and collect log
    $ cupsctl LogLevel=debug2
    $ lp -d Lenovo-M7208W -o Duplex=DuplexNoTumble Documents/test.pdf
    $ sudo cp /var/log/cups/error_log ~/error_log.txt

Expected behavior Print sucessfully.

Screenshots None

System Information:

Additional context

zdohnal commented 11 months ago

Hi,

thank you for all the data! It helps a lot!

From the logs you've provided I see you had problems with running the filter - I see some file not found, permission denied - and lastly execv() is not able to run the filter and ends with error:

D [15/Sep/2023:16:36:54 +0800] [Job 14] execv failed: Exec format error

The source of this error is that the driver you've installed is for MacOS, not Linux.

I searched a little and found this page where they mention some ways what to try to fix it, but I haven't tried any myself. Or ask the manufacturer for Linux driver.

Or you can try whether the printer can work without driver (it is a model from 2012, it could) - how-to

draculalaa commented 11 months ago

@zdohnal Really appreicate your help! I'll try these methods you metioned above later.