Bug#879171: cups: failed to recognize a driver of CP310dm
Hi Brian, On Mon, 30 Oct 2017 08:59:48 +, Brian Potkin wrote: >> But when I try to add printer CP310 it failed because >> cups claimed "can't copy PPD file". > > This is usually an indication that cups cannot find that PPD. But it > should be installed in /usr/libcups/driver by printer-driver-fujixerox > as fujixerox with a datestamp of Dec 11 2016. Is it? Yes, but it looked cups couldn't find it. $ LANG=C ls -l /usr/lib/cups/driver/fujixerox -rwxr-xr-x 1 root root 9948 Dec 12 2016 /usr/lib/cups/driver/fujixerox > Atsuhito, let's stick with testing using cups 2.2.5-2. I assume the Okay. > printer is connected by USB. Fing its URI with 'lpinfo -v'. It begins > with "usb://". Now locate the PPD with 'lpinfo -m | grep fujixerox' > Then set up the printer with > > lpadmin -p fuji -v usb://. -E -m fujixerox:/0/cups/model..ppd It is connected with WiFi (is this correct english? Wireless network?). But I know it is something like "socket://id numbers" (For security reason, I stopped to open WSD and Bonjour port of the printer.) > cupsfilter -p /etc/cups/ppd/fuji.ppd -m printer/foo -e --list-filters > /etc/nsswitch > > Or use any other text or image file or a PDF instead of nsswitch. If It looked okay perhaps $ LANG=C sudo cupsfilter -p /etc/cups/ppd/fuji.ppd -m printer/foo -e --list-filters /etc/nsswitch cupsfilter: File "/usr/lib/cups/filter/pdftopjlfx" permissions OK (040755/uid=0/gid=0). cupsfilter: File "/usr/lib/cups/filter/pstopdffx" permissions OK (040755/uid=0/gid=0). cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK (040755/uid=0/gid=0). cupsfilter: Unable to determine MIME type of "/etc/nsswitch". (but the last line again) However with another test file, $ LANG=C sudo cupsfilter -p /etc/cups/ppd/fuji.ppd -m printer/foo -e --list-filters ./test.html cupsfilter: File "/usr/lib/cups/filter/pdftopjlfx" permissions OK (040755/uid=0/gid=0). cupsfilter: File "/usr/lib/cups/filter/pstopdffx" permissions OK (040755/uid=0/gid=0). cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK (040755/uid=0/gid=0). texttopdf pdftopdf pdftopdffx pdftopjlfx > that is without error, try printing with > > lp -d fuji /etc/nsswitch I test with web interface and print test page, it works fine! Thanks for your valuable help and advice. I don't know why web interface didn't work correctly (for me?) and there is really no problem with cups 2.2.5 but, at least, my problem is fixed in fact now. Thanks again Best regards, 2017-10-31(Tue) -- ** Atsuhito Kohda Math. Meth. in Sci., Tokushima Univ. atsuhito_k AT tokushima-u.ac.jp
Bug#879171: cups: failed to recognize a driver of CP310dm
On Mon 30 Oct 2017 at 13:10:05 +0900, Atsuhito Kohda wrote: > Hi Brian, > > On Fri, 27 Oct 2017 11:07:07 +0100, Brian Potkin wrote: > > > There is something wrong with your CUPS installation (or the file > > itself). I've never seen this in normal operation. It indicates that > > a simple text file will not be printed. Try to rectify this with > > > > apt-get --reinstall install cups-daemon > > apt-get --reinstall install cups-core-drivers > > > > to install the package versions of mime.types and mime.convs in > > /usr/share/cups/mime. > > > Remove the .deb you downloaded from fujixerox and install the package > > printer-driver-fujixerox from the Debian archives. It also comes from > > fujixerox but it puts files in the right places on the system. Set up > > the printer as before. This works for me to get a printable version > > of nsswitch. > > I did reinstall cups-daemon and cups-core-drivers (2.2.5-2), > then removed (purged in fact) fxlinuxprint and then installed > printer-driver-fujixerox. > But when I try to add printer CP310 it failed because > cups claimed "can't copy PPD file". This is usually an indication that cups cannot find that PPD. But it should be installed in /usr/libcups/driver by printer-driver-fujixerox as fujixerox with a datestamp of Dec 11 2016. Is it? > > So I removed printer-driver-fujixerox then installed > fxlinuxprint. Then cups added a printer CP310 but > its printer driver was show as "Local Raw Printer" wrongly. > > But if I downgraded cups to 2.2.4-7, then cups can add > a printer CP310 and its printer driver is correctly > "FX Printer Driver for Linux". > > Further, under this situation, the command > cupsfilter -p /etc/cups/ppd/CP310.ppd -m printer/CP310 -e /etc/nsswitch > 2>log.stretch > produced a line: > > cupsfilter: Unable to determine MIME type of "/etc/nsswitch". > > so I doubt this is any problem. I can print a test file > with CP310 (under cups 2.2.4-7). > It looks to me that cups 2.2.5 has some regression. Atsuhito, let's stick with testing using cups 2.2.5-2. I assume the printer is connected by USB. Fing its URI with 'lpinfo -v'. It begins with "usb://". Now locate the PPD with 'lpinfo -m | grep fujixerox' Then set up the printer with lpadmin -p fuji -v usb://. -E -m fujixerox:/0/cups/model..ppd (Replace . with what you get from the two lpinfo commands). Do cupsfilter -p /etc/cups/ppd/fuji.ppd -m printer/foo -e --list-filters /etc/nsswitch Or use any other text or image file or a PDF instead of nsswitch. If that is without error, try printing with lp -d fuji /etc/nsswitch -- Brian.
Bug#879171: cups: failed to recognize a driver of CP310dm
Hi Brian, On Fri, 27 Oct 2017 11:07:07 +0100, Brian Potkin wrote: > There is something wrong with your CUPS installation (or the file > itself). I've never seen this in normal operation. It indicates that > a simple text file will not be printed. Try to rectify this with > > apt-get --reinstall install cups-daemon > apt-get --reinstall install cups-core-drivers > > to install the package versions of mime.types and mime.convs in > /usr/share/cups/mime. > Remove the .deb you downloaded from fujixerox and install the package > printer-driver-fujixerox from the Debian archives. It also comes from > fujixerox but it puts files in the right places on the system. Set up > the printer as before. This works for me to get a printable version > of nsswitch. I did reinstall cups-daemon and cups-core-drivers (2.2.5-2), then removed (purged in fact) fxlinuxprint and then installed printer-driver-fujixerox. But when I try to add printer CP310 it failed because cups claimed "can't copy PPD file". So I removed printer-driver-fujixerox then installed fxlinuxprint. Then cups added a printer CP310 but its printer driver was show as "Local Raw Printer" wrongly. But if I downgraded cups to 2.2.4-7, then cups can add a printer CP310 and its printer driver is correctly "FX Printer Driver for Linux". Further, under this situation, the command cupsfilter -p /etc/cups/ppd/CP310.ppd -m printer/CP310 -e /etc/nsswitch 2>log.stretch produced a line: cupsfilter: Unable to determine MIME type of "/etc/nsswitch". so I doubt this is any problem. I can print a test file with CP310 (under cups 2.2.4-7). It looks to me that cups 2.2.5 has some regression. Thanks for your help and effort. Best regards, 2017-10-30(Mon) -- ** Atsuhito Kohda Math. Meth. in Sci., Tokushima Univ. atsuhito_k AT tokushima-u.ac.jp
Bug#879171: cups: failed to recognize a driver of CP310dm
Hi Brian, On Fri, 27 Oct 2017 11:07:07 +0100, Brian Potkin wrote: > Remove the .deb you downloaded from fujixerox and install the package > printer-driver-fujixerox from the Debian archives. It also comes from > fujixerox but it puts files in the right places on the system. Set up > the printer as before. This works for me to get a printable version > of nsswitch. OK, but the printer CP310 and unstable Debian are in my office so please wait until next monday. Thanks for your kind reply and investigation. Best Regards, 2017-10-27(Fri) -- ** Atsuhito Kohda Math. Meth. in Sci., Tokushima Univ. atsuhito_k AT tokushima-u.ac.jp
Bug#879171: cups: failed to recognize a driver of CP310dm
On Fri 27 Oct 2017 at 10:58:37 +0900, Atsuhito Kohda wrote: [...] > > What do you mean by "failed to recognize driver of CP310dm"? > > I got printer driver (fxlinuxprint_1.1.2-1_amd64.deb) > from FujiXerox site; http://www.fujixerox.co.jp/download/eng/ > (in fact, I accessed a Japanese page of it). > It installed /usr/share/ppd/FujiXerox/fxlinuxprint.ppd.gz Thanks. There is a .deb which appears to be ok (but see below). > When I installed CP310 with cups (web interface), I selected > PPD and a file fxlinuxprint.ppd.gz. But after installation, > cups shows a printer driver of CP310 as "Local Raw Printer". > And, of course, I can't print with CP310. Which is why there isn't any PPD in /etc/cups/ppd. I haven't looked closely at the cause. > > > There is a PPD for your printer in /etc/cups/ppd. Please run the > > commands (as root) > > > > cupsfilter -p -m printer/foo -e /etc/nsswitch > > 2>log.stretch > > cupsfilter -p -m printer/foo -e /etc/nsswitch > > 2>log.unstable > > > > on stretch and an updated unstable. For stretch: cupsfilter: Unable to determine MIME type of "/etc/nsswitch". There is something wrong with your CUPS installation (or the file itself). I've never seen this in normal operation. It indicates that a simple text file will not be printed. Try to rectify this with apt-get --reinstall install cups-daemon apt-get --reinstall install cups-core-drivers to install the package versions of mime.types and mime.convs in /usr/share/cups/mime. > > Attach log.stretch and log.unstable to your next mail to the bug > > report. > > I update cups 2.2.5-2 and set CP310 but it seems there is > no corresponding PPD in /etc/cups/ppd/ > > $ LANG=C ls -l /etc/cups/ppd/ > total 80 > -rw-r- 1 root lp 24814 Oct 17 08:59 CP310_dw.ppd > -rw-r- 1 root lp 24814 Oct 17 08:59 CP310_dw.ppd.O > -rw-r- 1 root lp 10713 Oct 13 06:52 ipsio.ppd > -rw-r- 1 root lp 10705 Jul 24 07:12 ipsio.ppd.O > > I guess CP310_dw is a PPD when I installed cups 2.2.4-7. > So I can't generate log.unstable and attatch only log.stretch. > If I misunderstand anything, please let me know. You could have used CP310_dw.ppd; the PPDs on stretch and unstable are identical. Remove the .deb you downloaded from fujixerox and install the package printer-driver-fujixerox from the Debian archives. It also comes from fujixerox but it puts files in the right places on the system. Set up the printer as before. This works for me to get a printable version of nsswitch. Cheers, Brian.
Bug#879171: cups: failed to recognize a driver of CP310dm
Hi Brian, On Thu, 26 Oct 2017 12:01:00 +0100, Brian Potkin wrote: > Do you mean "CP310 dw"? This printer: > > http://news.fujixerox.com/image_library/detail/_imgid_000316/ Yes, sorry for my inaccuracy. > What do you mean by "failed to recognize driver of CP310dm"? I got printer driver (fxlinuxprint_1.1.2-1_amd64.deb) from FujiXerox site; http://www.fujixerox.co.jp/download/eng/ (in fact, I accessed a Japanese page of it). It installed /usr/share/ppd/FujiXerox/fxlinuxprint.ppd.gz When I installed CP310 with cups (web interface), I selected PPD and a file fxlinuxprint.ppd.gz. But after installation, cups shows a printer driver of CP310 as "Local Raw Printer". And, of course, I can't print with CP310. > There is a PPD for your printer in /etc/cups/ppd. Please run the > commands (as root) > > cupsfilter -p -m printer/foo -e /etc/nsswitch 2>log.stretch > cupsfilter -p -m printer/foo -e /etc/nsswitch 2>log.unstable > > on stretch and an updated unstable. > > Attach log.stretch and log.unstable to your next mail to the bug > report. I update cups 2.2.5-2 and set CP310 but it seems there is no corresponding PPD in /etc/cups/ppd/ $ LANG=C ls -l /etc/cups/ppd/ total 80 -rw-r- 1 root lp 24814 Oct 17 08:59 CP310_dw.ppd -rw-r- 1 root lp 24814 Oct 17 08:59 CP310_dw.ppd.O -rw-r- 1 root lp 10713 Oct 13 06:52 ipsio.ppd -rw-r- 1 root lp 10705 Jul 24 07:12 ipsio.ppd.O I guess CP310_dw is a PPD when I installed cups 2.2.4-7. So I can't generate log.unstable and attatch only log.stretch. If I misunderstand anything, please let me know. Thanks for your response. 2017-10-27(Fri) -- ** Atsuhito Kohda Math. Meth. in Sci., Tokushima Univ. atsuhito_k AT tokushima-u.ac.jp
Bug#879171: cups: failed to recognize a driver of CP310dm
Hi Brian, Sorry, I forgot to attach log.stretch. Here it is. Best regards, 2017-10-27(Fri) -- ** Atsuhito Kohda Math. Meth. in Sci., Tokushima Univ. atsuhito_k AT tokushima-u.ac.jp cupsfilter: File "/usr/lib/cups/filter/pdftopjlfx" permissions OK (040755/uid=0/gid=0). cupsfilter: File "/usr/lib/cups/filter/pstopdffx" permissions OK (040755/uid=0/gid=0). cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK (040755/uid=0/gid=0). cupsfilter: Unable to determine MIME type of "/etc/nsswitch".
Bug#879171: cups: failed to recognize a driver of CP310dm
Hello Atsuhito. Thank you for your report. On Fri 20 Oct 2017 at 09:30:09 +0900, Atsuhito Kohda wrote: > Package: cups > Version: 2.2.5-2 > Severity: normal > > Dear Maintainer, > >* What led up to the situation? > After upgrading to 2.2.5, I can't set up a printer with > cups because cups failed to recognize driver of CP310dm. > CP310dm is a (japanese model,perhaps) printer of FujiXerox. Do you mean "CP310 dw"? This printer: http://news.fujixerox.com/image_library/detail/_imgid_000316/ What do you mean by "failed to recognize driver of CP310dm"? > >* What exactly did you do (or not do) that was effective (or > ineffective)? > Downgrading to 2.2.4-7 fixed the problem. > >* What was the outcome of this action? >* What outcome did you expect instead? > I expect cups 2.2.5 should recognize CP310dm. > > Thanks for your maintenance. There is a PPD for your printer in /etc/cups/ppd. Please run the commands (as root) cupsfilter -p -m printer/foo -e /etc/nsswitch 2>log.stretch cupsfilter -p -m printer/foo -e /etc/nsswitch 2>log.unstable on stretch and an updated unstable. Attach log.stretch and log.unstable to your next mail to the bug report. Regards, Brian.
Bug#879171: cups: failed to recognize a driver of CP310dm
Package: cups Version: 2.2.5-2 Severity: normal Dear Maintainer, * What led up to the situation? After upgrading to 2.2.5, I can't set up a printer with cups because cups failed to recognize driver of CP310dm. CP310dm is a (japanese model,perhaps) printer of FujiXerox. * What exactly did you do (or not do) that was effective (or ineffective)? Downgrading to 2.2.4-7 fixed the problem. * What was the outcome of this action? * What outcome did you expect instead? I expect cups 2.2.5 should recognize CP310dm. Thanks for your maintenance. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages cups depends on: ii cups-client2.2.5-2 ii cups-common2.2.5-2 ii cups-core-drivers 2.2.5-2 ii cups-daemon2.2.5-2 ii cups-filters 1.17.9-1 ii cups-ppdc 2.2.5-2 ii cups-server-common 2.2.5-2 ii debconf [debconf-2.0] 1.5.64 ii ghostscript9.22~dfsg-1 ii libavahi-client3 0.7-3 ii libavahi-common3 0.7-3 ii libc-bin 2.24-17 ii libc6 2.24-17 ii libcups2 2.2.5-2 ii libcupscgi12.2.5-2 ii libcupsimage2 2.2.5-2 ii libcupsmime1 2.2.5-2 ii libcupsppdc1 2.2.5-2 ii libgcc11:7.2.0-11 ii libstdc++6 7.2.0-11 ii libusb-1.0-0 2:1.0.21-2 ii poppler-utils 0.57.0-2 ii procps 2:3.3.12-3 Versions of packages cups recommends: ii avahi-daemon 0.7-3 ii colord 1.3.3-2 ii cups-filters [ghostscript-cups] 1.17.9-1 ii printer-driver-gutenprint5.2.13-1 Versions of packages cups suggests: ii cups-bsd 2.2.5-2 pn cups-pdf ii foomatic-db20171012-1 pn hplip pn printer-driver-hpcups ii smbclient 2:4.6.7+dfsg-2 ii udev 235-2 -- debconf information: cupsys/backend: lpd, socket, usb, snmp, dnssd cupsys/raw-print: true