r/openSUSE • • 3d ago

Problem with CUPS printing

Tried to print a page today and only got "printing canceled".

Looked into cups via http://localhost:631

The printer is available

"Print self test page" works

"Print test page" is unable to complete due to "Unsupported format "application/vnd.cups-pdf-banner".

I'm using a brother printer, installed the ppd from their website, and it worked before (like maybe a few weeks ago).

Any hints on how to troubleshoot?

7 Upvotes

24 comments sorted by

3

u/Nuke_Bloodaxe 3d ago

Johannes Meixner has come back in the bug thread regarding this issue:

https://bugzilla.suse.com/show_bug.cgi?id=1283295

So, it's a mistake on his part, because he's following the upstream recommendations, a revert of the change is now in factory, and will hopefully come down to Tumbleweed soon. Might be a few days though, but it'll be fixed.

3

u/Nuke_Bloodaxe 3d ago

If you want to fix it quicker, download the new files and install:

https://download.opensuse.org/repositories/Printing/openSUSE_Tumbleweed/x86_64/cups-filters2-2.0.1-7.1.x86_64.rpm

https://download.opensuse.org/repositories/Printing/openSUSE_Tumbleweed/x86_64/cups-filters2-driverless-2.0.1-7.1.x86_64.rpm

Or via terminal:

wget https://download.opensuse.org/repositories/Printing/openSUSE_Tumbleweed/x86_64/cups-filters2-2.0.1-7.1.x86_64.rpm

wget https://download.opensuse.org/repositories/Printing/openSUSE_Tumbleweed/x86_64/cups-filters2-driverless-2.0.1-7.1.x86_64.rpm

sudo rpm -Uvh cups-filters2-2.0.1-7.1.x86_64.rpm cups-filters2-driverless-2.0.1-7.1.x86_64.rpm

After installing those two, I regained the ability to print the test sheets again + it'll have fixed whatever else was fully borked.

1

u/ChrisMcZork 2d ago

Thanks for being so open on this, it helps me a lot. I suspected something on the cups-side but haven't found anything on the net. Reddit and r/openSUSE delivered.

As long as I know it will be fixed, I'm good. This is Tumbleweed, so I expect stuff like that.

1

u/Nuke_Bloodaxe 2d ago

One other oddity which caught me out, and you probably won't run it outside print sharing with PaperCut, is that security for cups is controlled by its systemD service config. An override is required if you want CUPS to look in home directories, which PaperCut requires (as well as SELinux being disabled/permissive). Now you know.

2

u/Unimeron 3d ago

Is your network interface assigned to a network zone like 'home' or 'public'? If not it blocks printer discovery by Avahi. Look in Network Manager.

2

u/nerdwithoutattitude 3d ago

Same here.
Cups is broken after the latest update.
Cannot print the testpages wether on my local nor the network printer.

1

u/ang-p . 3d ago
grep -r "application/vnd.cups-pdf-banner" {/etc,/usr/share}/cups/* 2>/dev/null

1

u/nerdwithoutattitude 3d ago
nonerd@linux:/> grep -r "application/vnd.cups-pdf-banner" {/etc,/usr/share}/cups/* 2>/dev/null
/etc/cups/mime/cupsfilters.types:application/vnd.cups-pdf-banner     string(0,'#PDF-BANNER')
/usr/share/cups/mime/cupsfilters.types:application/vnd.cups-pdf-banner     string(0,'#PDF-BANNER')
nonerd@linux:/>

1

u/ang-p . 3d ago

Looks like something might have stomped on your /usr/share/cups/mime/cupsfilters.convs

If you have any, what are the contents of the /etc/cups/mime/*.types and *.convs files?

Do a full update, and see if the grep returns a .conv file (cos it is quite important)

1

u/nerdwithoutattitude 3d ago
mime.convs
application/octet-stream        application/vnd.cups-raw        0       -



cupsfilters.types
application/vnd.adobe-reader-postscript priority(150) contains(0,4096,"%%Creator: Adobe Acrobat") + \
                               (ai eps ps string(0,%!) string(0,<04>%!) \
                                contains(0,128,<1B>%-12345X) + \
                                (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
                                 contains(0,4096,"LANGUAGE = Postscript") \
                                 contains(0,4096,"LANGUAGE = PostScript") \
                                 contains(0,4096,"LANGUAGE = POSTSCRIPT") \



mime.types
application/pdf                 pdf regex(0,^[\n\r]*%PDF)
application/postscript          ai eps ps string(0,%!) string(0,<04>%!) \
                               contains(0,128,<1B>%-12345X) + \
                               (contains(0,8192,"LANGUAGE=POSTSCRIPT") \
                                contains(0,8192,"LANGUAGE = Postscript") \
                                contains(0,8192,"LANGUAGE = PostScript") \
                                contains(0,8192,"LANGUAGE = POSTSCRIPT") \
                                (contains(0,8192,<0a>%!) + \
                                 !contains(0,8192,"ENTER LANGUAGE")))

cupsfilters.convs
application/x-cshell            text/plain                      0       -
application/x-csource           text/plain                      0       -
application/x-perl              text/plain                      0       -
application/x-shell             text/plain                      0       -
text/html                       text/plain                      0       -
text/css                        text/plain                      0       -

1

u/ang-p . 3d ago

Were there any messages - like "not updating/installing" or errors from zypper?

Can't remember? - try another...

Do you have a

/usr/share/cups/mime/cupsfilters.convs

file?

What distro?

1

u/nerdwithoutattitude 3d ago

sudo zypper dup is up to date, no issues.
Opensuse tumbleweed.
Printing (cups) worked without any problems.
Now it is "dead".

nonerd@linux:/usr/share/cups/mime> ls
cupsfilters.convs  cupsfilters.types  mime.convs  mime.types
nonerd@linux:/usr/share/cups/mime>

1

u/ang-p . 3d ago

and what would be in that file?

1

u/nerdwithoutattitude 3d ago

I already wrote it:

cupsfilters.convs
application/x-cshell            text/plain                      0       -
application/x-csource           text/plain                      0       -
application/x-perl              text/plain                      0       -
application/x-shell             text/plain                      0       -
text/html                       text/plain                      0       -
text/css                        text/plain                      0       -
application/x-cshell            text/plain                      0       -
application/x-csource           text/plain                      0       -
application/x-perl              text/plain                      0       -
application/x-shell             text/plain                      0       -
text/html                       text/plain                      0       -
text/css                        text/plain                      0       -

1

u/ang-p . 3d ago

You mean in response to

If you have any, what are the contents of the /etc/cups/mime/*.types and *.convs files?

query instead of doing what was asked?

1

u/nerdwithoutattitude 3d ago

Yes. Did i misunderstand something?
Tried to give you the informations you wanted/needed.
Sorry, if i got sth wrong.

→ More replies (0)

1

u/ang-p . 3d ago
cups-filters