Prolem with HP f4240 printer.

Asked by Wesley

I My operation system is Edubuntu Ver. 8.04,. Added HP f4240 printer/scanner. Did the NEW PRINTER bit ad t shows f4100 series for drivers. I used APT-GET to install HPLIP-2.8.5. Got same results. With Ubuntu HELP drop down got the folowing dump:

{'cups_dest': <cups.Dest object at 0x98096c0>,
 'cups_instance': None,
 'cups_queue': 'Deskjet_F4200_series',
 'cups_queue_listed': True}
Page 2 (Check printer sanity):
{'cups_device_uri_scheme': u'usb',
 'cups_printer_dict': {'device-uri': u'usb://HP/Deskjet%20F4200%20series?serial=CN8373G1PD052D',
                       'printer-info': u'',
                       'printer-is-shared': True,
                       'printer-location': u'wesley3',
                       'printer-make-and-model': u'HP DeskJet F4100 Foomatic/hpijs, hpijs 2.8.2',
                       'printer-state': 3,
                       'printer-state-message': u'',
                       'printer-state-reasons': [u'none'],
                       'printer-type': 135180,
                       'printer-uri-supported': u'ipp://localhost:631/printers/Deskjet_F4200_series'},
 'is_cups_class': False}
Page 3 (Printer state reasons):
{'printer-state-message': '', 'printer-state-reasons': 'none'}
Page 4 (Print test page):
{'test_page_job_status': [], 'test_page_successful': False}
Page 5 (Printer state reasons):
{'printer-state-message': '', 'printer-state-reasons': 'none'}

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Albright
Solved:
Last query:
Last reply:
Revision history for this message
Best Aaron Albright (albrigha-deactivatedaccount) said :
#1

The printer is not using the hp:// backend.

Try running:

sudo apt-get install python-qt3

and then to configure the printer:

sudo hp-setup

Hope this helps.

Aaron

Revision history for this message
Wesley (wrlovell2) said :
#2

Aaron, I tried that and the sudo ...python-qt3 said it already installed. The sudo hp-setup says NO DEVICE FOUND PLEASE MAKE SURE YOUR PRINTER IS CONNECTED OR POWERED ON. But I have a Cannon printer/scanner and it works fine on the same USB port and cable. Also I have a window p.c. and I can print to the HP 4240 no problem. Any help is appreciated and thanks again.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

With the printer connected run

hp-check -t

and post the output.

Thanks!

A

Revision history for this message
Wesley (wrlovell2) said :
#4

Aaron, sorry for the delay in getting back to you. If I read this dump correctly I need to install 11 depencies. If you concur, I will do so. The question I have if that so, why didn't if install them automatically? This is the dump:

wesley@wesley3:~$ hp-check -t

HP Linux Imaging and Printing System (ver. 2.8.2)
Dependency/Version Check Utility ver. 13.0

Copyright (c) 2001-7 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...
warning: Invalid drv_dir value: /usr/share/cups/drv/hp/

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux wesley3 2.6.24-19-generic #1 SMP Wed Jun 4 16:35:01 UTC 2008 i686 GNU/Linux

Distribution:
ubuntu 8.04

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

Checking Python version...
OK, version 2.5.2 installed

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

Checking SIP version...
error: SIP not installed or version not found.

Checking for CUPS...
Status: scheduler is running
error: Version: (Not available. CUPS may not be installed or not running.)

------------------------------------
| 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...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes libcupsys2-dev cupsys-bsd

Checking for dependency: gcc - GNU Project C and C++ Compiler...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes build-essential

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

Checking for dependency: libcrypto - OpenSSL cryptographic library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes openssl

Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes libjpeg62-dev

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes libsnmp-dev

Checking for dependency: libpthread - POSIX threads library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes build-essential

Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes libtool

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes libusb-dev

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 - Qt interface for Python...
OK, found.

Checking for dependency: python-devel - Python development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes python2.5-dev

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...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes libsane-dev

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
sudo apt-get install --yes --force-yes sane-utils

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

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

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

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

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.8.2

[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
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.2.10

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

No devices found.

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

No devices found.

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

DESKJET_720C
------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: parallel:/dev/lp0
PPD: /etc/cups/ppd/DESKJET_720C.ppd
PPD Description: HP DeskJet 722C Foomatic/pnm2ppa (recommended)
Printer status: printer DESKJET_720C is idle. enabled since Fri 06 Jun 2008 08:05:42 PM CDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
Deskjet_F4200_series
--------------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: usb://HP/Deskjet%20F4200%20series?serial=CN8373G1PD052D
PPD: /etc/cups/ppd/Deskjet_F4200_series.ppd
PPD Description: HP DeskJet F4100 Foomatic/hpijs, hpijs 2.8.2
Printer status: printer Deskjet_F4200_series is idle. enabled since Sun 22 Jun 2008 07:15:46 PM CDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
MP500
-----
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: usb://Canon/MP500
PPD: /etc/cups/ppd/MP500.ppd
PPD Description: Canon PIXMA MP500 - CUPS+Gutenprint v5.0.2 Simplified
Printer status: printer MP500 is idle. enabled since Fri 06 Jun 2008 08:21:13 PM CDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
PDF
---
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: cups-pdf:/
PPD: /etc/cups/ppd/PDF.ppd
PPD Description: Generic PDF file generator
Printer status: printer PDF is idle. enabled since Tue 22 Apr 2008 12:54:42 PM CDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

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

'hpaio' in '/etc/sane.d/dll.conf'...
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).

Checking output of 'scanimage -L'...
error: scanimage not found.

---------------------
| 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 0x2504 at 005:002:
    Device URI: hp:/usb/Deskjet_F4200_series?serial=CN8373G1PD052D
    Device node: /dev/bus/usb/005/002
    Mode: 0660
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/005/002
# owner: lp
# group: scanner
user::rw-
user:wesley:rw-
group::rw-
mask::rw-
other::---

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

error: 18 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
sudo apt-get install --yes --force-yes libcupsys2-dev cupsys-bsd
sudo apt-get install --yes --force-yes build-essential
sudo apt-get install --yes --force-yes openssl
sudo apt-get install --yes --force-yes libjpeg62-dev
sudo apt-get install --yes --force-yes libsnmp-dev
sudo apt-get install --yes --force-yes build-essential
sudo apt-get install --yes --force-yes libtool
sudo apt-get install --yes --force-yes libusb-dev
sudo apt-get install --yes --force-yes python2.5-dev
sudo apt-get install --yes --force-yes libsane-dev
sudo apt-get install --yes --force-yes sane-utils

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

wesley@wesley3:~$

Revision history for this message
John Hosszu (john-hosszu) said :
#5

Good Day

Could you post the output to the following commands...

$ hp-probe

and

$ /usr/lib/cups/backend/hp

Thanks

jh

Revision history for this message
Wesley (wrlovell2) said :
#6

John, here the info. I have already ran the 11 commands that it suggested above and gotten updates for the dependencies that it downloaded.

wesley@wesley3:~$ hp-probe

HP Linux Imaging and Printing System (ver. 2.8.2)
Printer Discovery Utility ver. 4.0

Copyright (c) 2001-7 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.

--------------------------
| CHOOSE CONNECTION TYPE |
--------------------------

  Num. Connection Connection Type Description
              Type
  ---------- ---------- ----------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct
                          connection or JetDirect)
  2 par Parallel Port (LPT:)

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0

--------------------
| DEVICE DISCOVERY |
--------------------

warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
warning: check to make sure your devices are properly connected and powered on.
wesley@wesley3:~$ /usr/lib/cups/backend/hp
direct hp "Unknown" "HP Printer (HPLIP)"
wesley@wesley3:~$

Revision history for this message
John Hosszu (john-hosszu) said :
#7

could you run

$ lsusb

Revision history for this message
Wesley (wrlovell2) said :
#8

Thanks Aaron Albright, that solved my question.

Revision history for this message
bombshelter (emoatgdub) said :
#9

Wesley, what was the answer that actually solved your problem? I'm having what seems to be the same issue, right up to hp-probe output and the /usr/lib/cups/backend/hp output. My lsusb output is:

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 008: ID 03f0:2504 Hewlett-Packard
Bus 001 Device 001: ID 0000:0000
Bus 008 Device 001: ID 0000:0000
Bus 005 Device 003: ID 058f:9330 Alcor Micro Corp. SD Reader
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 003: ID 046d:c312 Logitech, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000

But for some reason hp-toolbox can't see the printer there.

Revision history for this message
Wesley (wrlovell2) said :
#10

What I finally figured out is that I did not have the lastest hplib. So I downloaded it and did the install and everything works. I done it to several other pc's and they work.

Revision history for this message
bombshelter (emoatgdub) said :
#11

Yup, that did it. Ubuntu had version 2.8.2, and when I downloaded and installed 2.8.9 from http://hplipopensource.com/hplip-web/gethplip.html it immediately picked up the printer. Thanks!

Revision history for this message
dgerwin11 (dgerwin11) said :
#12

Yes I get to the point where the printer is recognized. I then configure it and click on print test page. Nothing happens. It now says I have 43 jobs completed, but in actuality not one da****d thing has printed.

Every one else that started with the same problem got it solved. For some reason I can not get it solved. I have tried 43 times, and it does not do any good.

I have a major personal crisis going on involving finding a nursing home for my wife that consumes almost all of my non working hours. Therefore, I am giving up on the idea of ever getting this printer to work on this machine. I like the Ubuntu experience and will stay with it, and just export printing to the Windows machine in another room.

Thank you for all the help and patience you have shown trying to help me solve this