You are not logged in.

#1 2015-02-12 04:35:32

Rayonant
Member
From: Bogotá,Colombia
Registered: 2013-02-26
Posts: 10

[SOLVED]Can not add Cups PDF Printer

Hi

I've been trying to add the pdf printer for cups without success. A search in the forum brought up several threads related to cups but nothing like this one. I tried using both system-config-printer and the web interface, when executing the first one on a terminal there was no output, however checking the wiki I found the location of the logs, so here is the output of /var/log/cups/error_log.

E [11/Feb/2015:22:37:43 -0500] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [11/Feb/2015:22:45:40 -0500] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!

On  /var/log/cups/cups-pdf_log there was nothing meaningful, just

Wed Feb 11 23:20:54 2015  [STATUS] identification string sent

Any hint on where to look next or what else to do?

Last edited by Rayonant (2015-02-13 02:34:14)

Offline

#2 2015-02-12 05:41:42

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED]Can not add Cups PDF Printer

Have you installed cups-pdf yet?


Knute

Offline

#3 2015-02-12 06:52:32

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: [SOLVED]Can not add Cups PDF Printer

I found a similar situation with a friend of mine.
That file is giving same error.


do it good first, it will be faster than do it twice the saint wink

Offline

#4 2015-02-12 06:56:49

Rayonant
Member
From: Bogotá,Colombia
Registered: 2013-02-26
Posts: 10

Re: [SOLVED]Can not add Cups PDF Printer

Knute wrote:

Have you installed cups-pdf yet?

Yes, I have cups-pdf installed

Offline

#5 2015-02-12 07:06:40

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED]Can not add Cups PDF Printer

After installing it did you restart cups?
Does it show up in the printers tab of the web interface?

I'm not trying to be insulting here, just trying to cover all the bases.  You'ld be surprised at how often the problem is something "obvious" that can so easily be overlooked.

[edit]Uhhhh.... Why are you trying to load webpages as printer drivers???

Look at the error message that you posted.  Take those out of your configuration, and you will probably be ok.
[/edit]

Last edited by Knute (2015-02-12 07:10:04)


Knute

Offline

#6 2015-02-12 11:34:52

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,394

Re: [SOLVED]Can not add Cups PDF Printer

Knute, that error message has to do with how foomatic creates ppd files.

Rayonant, please state the exact errormessage you got.

I do have a hunch what the problem might be, but don't like guessing.

Last edited by Lone_Wolf (2015-02-12 11:35:16)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#7 2015-02-12 13:23:41

Rayonant
Member
From: Bogotá,Colombia
Registered: 2013-02-26
Posts: 10

Re: [SOLVED]Can not add Cups PDF Printer

When adding it trough system-config-printer the error is:

 CUPS server error
There was an error during the CUPS operation: 'Success'.

While doing it trough the web interface states:

Error on Virtual_PDF_Printer
Could not get the list of printer drivers
Success

PS: Notice that in the web interface that is the rough translation since the message appears in Spanish (which is my locale) since I do not know how to launch it with LC_ALL=C as I did with system-config-printer.

Last edited by Rayonant (2015-04-29 06:27:12)

Offline

#8 2015-02-12 13:57:28

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,394

Re: [SOLVED]Can not add Cups PDF Printer

that is the message i expected, your translation skills are good.

You are facing FS #43708 .

Try removing all foomatic* packages and then adding the pdf-printer again.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#9 2015-02-12 13:57:45

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: [SOLVED]Can not add Cups PDF Printer

Rayonant wrote:

since I do not know how to launch it with LC_ALL=C .

export LC_ALL=C; <your_command>

I don't know how I revert to locale later sad
Maybe leave the session and re-login.


do it good first, it will be faster than do it twice the saint wink

Offline

#10 2015-02-12 19:31:37

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED]Can not add Cups PDF Printer

There is an alternative if you just want to print from common gui programs -  as root, create the /etc/gtk-2.0/gtkrc text file with the following contents...

gtk-print-backends = "cups,lpr,file"

after which, selecting the print dialog from your gui program gives you "Print to LPR" and "Print to File": the latter of which has "PDF" and "Postscript" as output format options.

If you also have cups-pdf installed, you will also have that listed in your printer dialog.

Cheers
Paul.

Offline

#11 2015-02-13 02:31:06

Rayonant
Member
From: Bogotá,Colombia
Registered: 2013-02-26
Posts: 10

Re: [SOLVED]Can not add Cups PDF Printer

Lone_Wolf wrote:

that is the message i expected, your translation skills are good.

You are facing FS #43708 .

Try removing all foomatic* packages and then adding the pdf-printer again.

Thank you that worked!


TheSaint wrote:
Rayonant wrote:

since I do not know how to launch it with LC_ALL=C .

export LC_ALL=C; <your_command>

I don't know how I revert to locale later sad
Maybe leave the session and re-login.

You didn't read my message correctly, I said "since I do not know how to launch it with LC_ALL=C as I did with system-config-printer." Which means that I do know how to do that, but for a web interface that does not apply. In addition to that, you are doing it the  wrong way, because if you export the variable it makes it persistent, you just need to append  LC_ALL=C before the command

LC_ALL=C system-config-printer

Offline

#12 2015-02-13 07:46:58

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: [SOLVED]Can not add Cups PDF Printer

Rayonant wrote:

You didn't read my message correctly

OK, sorry wrong help sad
But now, are running without foomatic stuffs ?


do it good first, it will be faster than do it twice the saint wink

Offline

#13 2015-04-20 18:51:47

parades
Member
From: Michigan
Registered: 2015-03-02
Posts: 23
Website

Re: [SOLVED]Can not add Cups PDF Printer

Not OP, but had almost the exact same problem and error messages. Uninstalling foomatic packages fixed it for me.

Offline

#14 2015-08-19 16:28:31

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 607

Re: [SOLVED]Can not add Cups PDF Printer

Is this issue still being investigated? I had the same problem today and uninstalling all foomatic packages solved it for me, but it should be fixed at some point imho and the bug report linked by Lone_Wolf is closed...


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#15 2020-10-05 18:22:35

thewickerman666
Member
Registered: 2020-09-03
Posts: 2

Re: [SOLVED]Can not add Cups PDF Printer

Also, make sure prior to adding  at http://localhost:631/ , edit conf file '/etc/cups/cups-pdf.conf' and add under 'Out' key some other folder, say under user's home

Out /home/${USER}/Documents

else, it prints the file to default folder '/var/spool/cups-pdf/${USER}'

Offline

#16 2020-10-05 18:55:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,365

Re: [SOLVED]Can not add Cups PDF Printer

Please don't bump 5 year old solved threads.

Closing.

Offline

Board footer

Powered by FluxBB