LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-12-2009, 10:06 AM   #1
Coviti
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
CUPS 1.3.9-11 with HPLIP 2.8.12-1 prints meaningless garbage (Debian Sid/Exp.)


Dear LQ Peoples,

I'm using an HP DeskJet F300 Series printer with CUPS 1.3.9 and HPLIP 2.8.12 (on Debian Sid/Experimental amd64). When I try to print a document (any document) from any application (even a test page from the HPLIP GUI), the pages print out with this type of output:

Code:
%PDF-1.3
%1234
% This file was generated by pdftopdf
%%PDFTOPDFNumCopies  :  1
%%PDFTOPDFCollate  :  false
1 O Obj
 /Type /Catalog /Pages 2 O R >>
endobj
2 O obj
<< /Type /Pages /Kids  [  3 O R
 ] /Count 1 >>
endobj
4 O Obj
<< /Length 5 O R >>
stream
q 1.OOO000  O.OOOOO 0.OOOOOO 1.OOOOOO  O.OODDOO O.D00000 cm  q O.120000 O O O.12OO0 0 O  c
m /RO gs O O   RG O O O    q 8.333330 O O 8.333330 O   cm  BT /R1  12 Tf 1  O  O 1 239.D4
O000 730.440000  Tm    (S)
-23
(t)
-22
(.)
-82
( )
-42
(P)
7
(e)
-24
(t)
-32
(e)
-44
(r)
-47
(s)
-50
(b)
-64
(u)
-54
(r)
-67
(g)
-204
( )
-42
(c)
-8
(o)
-14
(1)
-28
(1)
-38
(e)
-44
(g)
-44
(e)
556.001000
]  TJ /R2 12 Tf 30.480000 -14.040000  Td [  (s)
-14
(p)
-24
(r)
-27
(i)
-48
Here's the output from hp-check:

Code:
HP Linux Imaging and Printing System (ver. 2.8.12)
Dependency/Version Check Utility ver. 14.1

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                    
2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run.                      
3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
will check both of the above cases (both compile- and run-time dependencies).   

Saving output in log file: hp-check.log

Initializing. Please wait...
 
---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux soma 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 GNU/Linux

Distribution:
debian 5.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt 3.x version...
OK, version 3.17 installed.

Checking PyQt 4.x version...

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9
error_log is set to level: debug

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 2.8.12 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=2.8.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.12.26
restricted-build=no
ui-toolkit=qt3
qt3=yes
qt4=yes




Current contents of '~/.hplip/hplip.conf' file:
[last_used]
printer_name = Deskjet_F300
working_dir = /media/cruzer
device_uri = hp:/usb/Deskjet_F300_series?serial=CN65HF710N04KH

[installation]
version = 2.8.12.26
date_time = 01/12/09 10:34:23



-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                        Model                 
  --------------------------------  ----------------------
  hp:/usb/Deskjet_F300_series?seri  HP Deskjet F300 series
  al=CN65HF710N04KH                                       

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
Deskjet_F380
------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Deskjet_F300_series?serial=CN65HF710N04KH
PPD: /etc/cups/ppd/Deskjet_F380.ppd
PPD Description: HP Deskjet f300 Series Foomatic/hpijs, hpijs 2.8.12
Printer status: printer Deskjet_F380 is idle.  enabled since Mon 12 Jan 2009 10:23:24 AM EST
Communication status: Good


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/Deskjet_F300_series?serial=CN65HF710N04KH' is a Hewlett-Packard Deskjet_F300_series all-in-one


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


-----------------
| USB I/O SETUP |
-----------------


Checking for permissions of USB attached printers...
 
HP Device 0x5511 at 001:003: 
    Device URI: hp:/usb/Deskjet_F300_series?serial=CN65HF710N04KH
    Device node: /dev/bus/usb/001/003
    Mode: 0664

-----------
| SUMMARY |
-----------

No errors or warnings.

Done.
And since the forum software complains about a character limit, here's the CUPS error log in all its unclipped glory: http://pastebin.com/f4d6a8b62

Printing worked fine before upgrading both HPLIP and CUPS (I upgraded both at the same time, so I'm not sure which is the culprit, though I suspect CUPS), and I'd rather avoid the whole mess of downgrading all the packages and their dependents/dependencies to their previous versions, if at all possible. Any solutions are appreciated..

Thanks.
 
Old 01-25-2009, 01:47 PM   #2
Fluxxdog
LQ Newbie
 
Registered: Aug 2005
Distribution: Debain (Testing/Sid/Exp)
Posts: 13

Rep: Reputation: 0
I'm getting getting the same situation with an HP DeskJet 3740. CUPS 1.3.9-12 and HPLIP 2.8.12-1.

I find that downgrading just the cups package (and nothing else, not even its dependencies) to 1.3.8-1lenny4.1 will cause everything to print normally again. So one of the files in that package alone is the cause of this. I'm not sure of anything other than that though.

Update: Found this bug report already filed for cups:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511009

Update mk II: Latest cups package is now 1.3.9-14, yet the bug still exists.

Update v3: The bug has been updated to serious with a temporary workaround. Check out the bug report for it. 1.3.9-15 should see this fixed.

Update part 4: A New Hope... wait, wrong intro... Anyway, 1.3.9-14+b1 works perfectly fine now, no more garbage text on my end. I'm not sure if it's part of test, unstable, or experimental, but check it out. Otherwise, I'd consider it case closed.

Last edited by Fluxxdog; 03-09-2009 at 08:24 AM. Reason: New info
 
Old 02-21-2009, 05:22 PM   #3
bhy
LQ Newbie
 
Registered: Oct 2006
Distribution: debian
Posts: 25

Rep: Reputation: 15
This is the same with HP DeskJet D2460. It was also printing pdf-source-like garbage, and also downgrading cups (only the basic package and nothing else) from 1.3.9-12 to 1.3.8-1lenny4 solved the problem. It may not depend on the type of the printer and may affect all deskjet with this version.
 
Old 07-21-2010, 05:12 PM   #4
m_pahlevanzadeh
Member
 
Registered: Sep 2002
Location: Iran/Tehran
Distribution: Debian
Posts: 94

Rep: Reputation: 26
instead of cups-devel you can install libcupscgi1-dev in debian squeez.
 
  


Reply

Tags
cups, debian, garbage, hplip, print, text


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cups and HPLIP garyg007 Slackware 12 12-23-2008 11:57 AM
Hplip??? ...cups? arfon Linux - Software 1 12-08-2008 04:20 PM
CUPS Printer Problem - prints, but prints gibberish Sparrowhawk Debian 2 06-19-2006 07:32 PM
cups prints poorly, while lpr from command line prints well spindles Linux - Software 2 04-01-2006 04:02 AM
IE doesn't load PDF sometimes and prints garbage siucorn Linux - Software 0 08-29-2003 10:04 PM


All times are GMT -5. The time now is 08:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration