You are not logged in.

#1 2009-04-18 23:15:06

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

[SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Hi,
after the last update of cups to 1.3.10-1 I am no  longer able to print pdf files from the commandline or epdfview. Result from commandline is:

$ lp assignment_01.pdf
lp: unsupported format 'application.pdf'

Rolling back to 1.3.9-4 and everything works ok again. Is anyone else getting errors when printing pdf files?

System is x86_64 and printer is a Kyocera FS-1030D.

Last edited by mikesd (2009-04-25 07:32:31)

Offline

#2 2009-04-18 23:47:56

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

I'm also having this problem. I've found a bit more information on it. It seems that the port and host options for cups have been changed somehow. With the web interface, the option to print the test page, for example, goes to the url "http://::1/printers/i860---CUPS+Gutenprint-v5%2E2%2E3?op=print-test-page". If this is changed to "http://localhost:631/printers/i860---CUPS+Gutenprint-v5%2E2%2E3?op=print-test-page", which is the same hostname and port that the working navigation links at the top of the page use, the test page prints. If it isn't change, nothing prints (and Firefox gives me an error page, but that's irrelevant.).

I downgraded as well, and printing now works. However, the problem with the links is still there, so it looks like it could be unrelated.

Last edited by SamC (2009-04-18 23:52:18)

Offline

#3 2009-04-18 23:54:50

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Yes I saw that too. Looks like an ipv6 issue. Hadn't noticed that before. Maybe a firefox update changed its behaviour with ipv6? Looks like it is reading ::1 as port 1 maybe?

Maybe there is a setting in the config file that has changed. I'll reinstall 1.3.10-1 at some point and compare configs. For the moment I need my printer so will stay on 1.3.9-4 until I have a chance to look at it or someone else figures it out.

Last edited by mikesd (2009-04-18 23:57:41)

Offline

#4 2009-04-19 00:37:50

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

There are changes in /etc/cups/cupsd.conf that are causing printing problems. Check out /etc/cups/cupsd.conf.default. Since my setup is fairly vanilla, I simply overwrote the old file with the new one and I can print everything that I've tried again.

Offline

#5 2009-04-19 00:53:53

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Thank you. This fixes it for me, as well. It even fixes the problems with the links.

Offline

#6 2009-04-19 01:39:36

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Hmmm, bugger. Copying cupsd.conf.defaults over cupsd.conf doesn't work for me. Gives the same error. Fixed the links though. Still have to use 1.3.9 to get pdf printing to work.

Last edited by mikesd (2009-04-19 01:40:08)

Offline

#7 2009-04-19 01:42:11

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

mikesd wrote:

Hmmm, bugger. Copying cupsd.conf.defaults over cupsd.conf doesn't work for me. Gives the same error. Fixed the links though. Still have to use 1.3.9 to get pdf printing to work.

I couldn't print PDF files either before I did this. The error that I was receiving was a complaint about the file being empty. After I changed the config file it was necessary to restart the CUPS daemon.

Offline

#8 2009-04-19 01:48:27

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Yeah. Have restarted cups a couple of times and even tried a reboot. Also tried removing cups all together and re-installing. My error is still the same:

lp: unsupported format 'application.pdf'

It's puzzling. I can stay on 1.3.9 until I can work it out.

Thanks skottish.

Offline

#9 2009-04-19 15:26:56

portix
Member
Registered: 2009-01-13
Posts: 757

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

I had the same Problem, compiling cups with the option --enable-pdftops worked
for me.
bugreport

Offline

#10 2009-04-19 17:31:28

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Recompiling with "--enable-pdftops" option set in the PKGBUILD does help.

There has been a bugreport filed: http://bugs.archlinux.org/task/14372
(Please vote for it.)


To know or not to know ...
... the questions remain forever.

Offline

#11 2009-04-19 22:22:16

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

bernarcher wrote:

Recompiling with "--enable-pdftops" option set in the PKGBUILD does help.

There has been a bugreport filed: http://bugs.archlinux.org/task/14372
(Please vote for it.)

Voted for! Will recompile cups when I get home. Thanks guys for the help.

Offline

#12 2009-04-21 08:37:48

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

skottish wrote:

There are changes in /etc/cups/cupsd.conf that are causing printing problems. Check out /etc/cups/cupsd.conf.default. Since my setup is fairly vanilla, I simply overwrote the old file with the new one and I can print everything that I've tried again.

Hi, same problem here: the command "Print" is just grey and not usable. I already

 cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf

and restarted cups but that didn't solve the problem.

Last edited by Barghest (2009-04-21 08:38:04)

Offline

#13 2009-04-21 13:29:18

Vieira
Member
From: Lisbon, Portugal
Registered: 2007-08-16
Posts: 45

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Barghest wrote:
skottish wrote:

There are changes in /etc/cups/cupsd.conf that are causing printing problems. Check out /etc/cups/cupsd.conf.default. Since my setup is fairly vanilla, I simply overwrote the old file with the new one and I can print everything that I've tried again.

Hi, same problem here: the command "Print" is just grey and not usable. I already

 cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf

and restarted cups but that didn't solve the problem.

Same problem here. Moving cupds.conf.default to cupds.conf solved the problem with links in localhost:631 but didn't solve the problem with the print option being grey and not usable.

Recompiling with --enable-pdftops solves the problem.

Last edited by Vieira (2009-04-21 13:49:54)

Offline

#14 2009-04-23 13:23:55

thho
Member
From: Switzerland
Registered: 2008-09-28
Posts: 14

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Hi

The problem with the grey print button can be solved with the following procedure:

Add this line to your /etc/cups/cupsd.conf

HostNameLookups Double

and restart the deamon with

/etc/rc.d/cups restart

I hope I could help
Thomas

Offline

#15 2009-04-23 17:42:14

Janusz11
Member
Registered: 2007-05-16
Posts: 87

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Vieira wrote:

Recompiling with --enable-pdftops solves the problem.

I have the same problem that I can't print .pdf files. I tried to recompile cups with the above option. However, I get the following error message. Anyone knows what is missing?

Compiling Annot.cxx...
Annot.cxx:1: error: bad value (-march=core2) for -march= switch
Annot.cxx:1: error: bad value (-march=core2) for -mtune= switch
make[1]: *** [Annot.o] Error 1
make: *** [all] Error 1
==> ERROR: Build Failed.
    Aborting...

I've already changed the CFLAGS. But that didn't help.

Offline

#16 2009-04-24 04:31:50

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

use "native" for march and mtune wink

@all: i'm working on cups. a fixed version should be soon available.

Offline

#17 2009-04-24 12:47:47

nstoyanov
Member
Registered: 2009-04-24
Posts: 26

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Wow guys, I feel very dumb. I am pretty new to Arch Linux and yesterday I ran into the same cups issues as described here. I spent 2 hours trying to diagnose them (I just started using cups about a month ago) and finally just downgraded. I could have just looked in the forums and my problem would have been solved in no time... The same happened to me a few times when the Wiki contained everything I needed to know during installation and yet I did not know to look and spent too much time. Now I have learned -- when a problem occurs, first look around. Arch Linux is superb in that respect and I thank all of you guys for being so useful, mature, and fun.

Offline

#18 2009-04-24 17:04:59

Janusz11
Member
Registered: 2007-05-16
Posts: 87

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

AndyRTR wrote:

use "native" for march and mtune wink

Danke Andy. But unfortunately its not working.

Compiling Annot.cxx...
Annot.cxx:1: error: bad value (-march=native) for -march= switch
Annot.cxx:1: error: bad value (-march=native) for -mtune= switch
make[1]: *** [Annot.o] Error 1
make: *** [all] Error 1
==> ERROR: Build Failed.
    Aborting...

Offline

#19 2009-04-26 13:02:48

mélodie
Member
From: France
Registered: 2006-12-31
Posts: 18
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Hi,

Not solved for me alas !

Here I posted:
http://forums.archlinux.fr/topic3640.html

I just tried the post n° http://forums.archlinux.fr/post31430.html#p31430 advice :
added this in /etc/modprobe.conf

# disable autoload of ipv6
alias net-pf-10 off

(I don't know how this disables ipv6, I didn't ask at the french forum yet, as you can see. I tried it and it worked : the url in cups web interface are  back to normal too, instead of having some:

http://::1/etc.... it's ok again, thought it registers my printing tries and does not print, be it pdf or odt with OpenOffice.org, for example).

and it has solved one part : the button to print in Evince is not greyd anymore, and all the usual tabs to configure printing are back (only 3 were left, whereas usually there are 6 tabs)

Then I tried to move /etc/cups/cupsd.conf.default to /etc/cups/cupsd.conf but I didn't get more results about printing : my printer stays silent.

My printer is a 3 in one Brother DCP330C, I restarted cups in between each step with the cupswrapper "cupswrapperdcp330c" that stands under /usr/local/Brother/Printer/dcp330c/cupswrapper.

Now I'm going to try to downgrade to preceeding cups version.

/Edit : I downgraded and nothing new happened. I had restored the preceeding cupsd.conf file before doing so, and restarted the cupswrapper just after, so that the downgraded package be taken in account.

I don't know what to do else, next. (I'll wait and see ?)

Last edited by mélodie (2009-04-26 13:11:15)

Offline

#20 2009-04-26 13:46:01

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Upgrade cups. There is a new package version. It works here now.


To know or not to know ...
... the questions remain forever.

Offline

#21 2009-04-26 19:50:35

mélodie
Member
From: France
Registered: 2006-12-31
Posts: 18
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

bernarcher wrote:

Upgrade cups. There is a new package version. It works here now.

Hi,

I had done before, without success, but I tried again just now, and the result is that it prints *only* the test page !

I had to comment out the 'net-pf-10 off' line I had added to /etc/modprobe.conf too, for it to make the test page of cups being printed. For the rest : back to beginning, only 2 tabs left in printing section of Evince, again in the cups web interface with the http://::1/ URL's, and no pdf or other type of files printable.

:-(

/Edit : I put 'net-pf-10 off' back in modprobe.conf, and after a night rest the machine rebooted and decided it could print the pdf files !  \o/ !


Anyone knows how it could also print the odt files from Openoffice.org as well ? (printer all in one Brother DCP-330C, for an idea what it's about)

Otherwise I can post a separate thread somewhere. smile

Last edited by mélodie (2009-04-27 06:18:47)

Offline

#22 2009-04-27 19:37:14

nblock
Member
From: Austria
Registered: 2008-08-06
Posts: 123
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

it works here too - thanks!

Offline

#23 2009-04-28 22:29:33

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] CUPS error: lp: unsupported format 'application.pdf'

Worked for me! Is this a bug?

Offline

Board footer

Powered by FluxBB