Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2016 11:08:34 -0800
From:      Patrick Mahan <mahan@mahan.org>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Having trouble printing to my HP OJ Pro 8600 all-in-one
Message-ID:  <6ff9e537-e2db-e6f3-39aa-4267ec7400c1@mahan.org>
In-Reply-To: <20161126150145.5bf8773c@kalimero.tijl.coosemans.org>
References:  <b63c46fd-b586-bab9-f053-13fbc2e515cc@mahan.org> <31b7b3c7-326f-87e2-2986-f06280057c46@dreamchaser.org> <bb10ba5e-7850-a87e-ba08-015911f7d679@mahan.org> <98dafc2e-0584-2521-d766-8fb3da449c2b@dreamchaser.org> <686b9894-f67c-d459-4a72-16df5641a887@mahan.org> <a50412f9-8b89-e98b-5b1a-d77d8b1711a5@dreamchaser.org> <a98b9011-67df-ce50-15d1-bef2b62ea897@mahan.org> <20161126150145.5bf8773c@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/26/16 6:01 AM, Tijl Coosemans wrote:
> On Fri, 25 Nov 2016 22:12:13 -0800 Patrick Mahan <mahan@mahan.org> wrote:
>> On 11/25/16 8:07 PM, Gary Aitken wrote:
>>> On 11/25/16 20:24, Patrick Mahan wrote:  
>>>> On 11/25/16 6:40 PM, Gary Aitken wrote:  
>>>>> On 11/25/16 16:46, Patrick Mahan wrote:  
>>>>>> On 11/23/16 8:50 PM, Gary Aitken wrote:  
>>>>>>> On 11/22/16 21:22, Patrick Mahan wrote:  
>>>>>>>> All,  
>>> ...  
>>>>>>>> I just update my binary packages (after much much pain) since they were
>>>>>>>> so out of date.  One of the items that seemed to drastically was CUPS.
>>>>>>>> I had CUPS-2.0.1 and now have CUPS-2.2.1, but it seems I have lost all
>>>>>>>> printing ability.  I re-installed all available cups packages (except client,
>>>>>>>> can't see where that exists) along with gutenprint and hplip.  I see on
>>>>>>>> the ports page that there a secondary package called hplip-plugins but
>>>>>>>> pkg will not install it as it says it cannot find any package matching
>>>>>>>> that name.
>>>>>>>>
>>>>>>>> Cups sees the printer, it seems up, but when I attempt to print a test
>>>>>>>> page, I get the following error:
>>>>>>>>
>>>>>>>>    Unable to print test page:
>>>>>>>>
>>>>>>>>           Unsupported format "text/plain".
>>>>>>>>
>>>>>>>> Looking in /usr/local/etc/cups and I don't see any definition for
>>>>>>>> "text/plain".  Also, the cups filter in the .ppd for the printer
>>>>>>>> is set to "application/vnd.cups-raster 0 hpcups", but I can find
>>>>>>>> no definition of vnd.cups-raster nor hpcups.  
>>>
>>> Are you saying you have a mime.types under /usr/local/etc/cups?
>>> These should be in /usr/local/share/cups/mime/mime.types
>>> What are the permissions on it?
>>> $ ls -l /usr/local/share/cups/mime/mime.types
>>> -r--r--r--  1 root  wheel  6743 Nov  7 08:40 /usr/local/share/cups/mime/mime.types
>>>   
>>
>> Um, no...
>>
>> From my earlier email -
>>
>> mahan@gypsy-new-~ 6 > grep "text/plain" /usr/local/share/cups/mime/*.types
>> /usr/local/share/cups/mime/mime.types:text/plain                        txt
>> printable(0,1024)
>>
>> The location of mime.types is where it should be.
>>
>> The permissions are -
>>
>> gypsy-new# ls -l /usr/local/share/cups/mime/mime.types
>> -r--r--r--  1 root  wheel  6743 Nov 19 18:08 /usr/local/share/cups/mime/mime.types
>>
>> Here are the *.types in /usr/local/etc/cups/
>>
>> gypsy-new# find /usr/local/etc/cups -name "*.types"
>> /usr/local/etc/cups/apple.types
>> /usr/local/etc/cups/command.types
>>
>> So I'm still not sure why this is broken now.  Is there someway to enable
>> debugging in the filter handling?
> 
> What is the output of 'pkg which /usr/local/etc/cups/apple.types'?  If it
> says not found in database, remove the file.  If /usr/local/etc/cups/mime.*
> exist, remove them.  You can also remove the following packages:
>

I believe that was added as part of the avahi stuff that I installed to
support apple devices needing "AirPrint" support.

The apple.types contains:

gypsy-new# cat /usr/local/etc/cups/apple.types
#
# "$Id:$"
#
# Airprint type
image/urf urf string(0,UNIRAST<00>)
#
# End of "$Id:$".
#

There is no /usr/local/etc/cups/mime.types (as you can from the 'find' command).
> foomatic-db-20161105
> foomatic-db-engine-4.0.12_1,2
> foomatic-db-hpijs-1.4
> gimp-gutenprint-5.2.10_3
> gutenprint-base-5.2.10_2
> gutenprint-cups-5.2.10_3
> gutenprint-foomatic-5.2.10_2
> hplip-plugin-3.16.10
> 

Okay, they are removed.

> Then restart cupsd with 'service cupsd restart'.
> 

Done.

Well, look at that, it's printing.

What do you think was the blockage?

Thanks,

Patrick




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6ff9e537-e2db-e6f3-39aa-4267ec7400c1>