C5180 ethernet imaging

Asked by bobkil on 2008-01-09

C5180 connected to a local (home) ethernet, with Windows I can print and scan with no problem usint third party software. With HPLIP I can print but not scan. Using the recommended commands the output is as follows:

bobkil@KFFL-5:~$ dpkg -l hplip
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii hplip 2.7.7.dfsg.1-0 HP Linux Printing and Imaging System (HPLIP)

bobkil@KFFL-5:~$ sudo hp-setup
[sudo] password for bobkil:

HP Linux Imaging and Printing System (ver. 2.7.7)
Printer/Fax Setup Utility ver. 4.5

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.

error: PyQt not installed. GUI not available. Exiting.
warning: PyQt init failed. Reverting to interactive mode.

HP Linux Imaging and Printing System (ver. 2.7.7)
Services and Status Daemon ver. 9.2

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.

error: No devices found.
error: Error occured during interactive mode. Exiting.
bobkil@KFFL-5:~$ sudo hp-check -t
sudo: hp-check: command not found

Can I use the scaner with HPLIP over an ethernet????

bob
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Albright
Solved:
2008-01-11
Last query:
2008-01-11
Last reply:
2008-01-10

Network support and scanning are supported.

Most likely you will want to install the latest release of hplip from http://hplip.sf.net.

Sometimes the distros will included hplip but remove parts of it. If you install the latest you will probably not have any problems. and if you should have problems the tools will be available for me to better troubleshoot the problem (ie hp-check)

Thanks for your support.

A

bobkil (bob-kilgore) said : #2

On Wed, 2008-01-09 at 18:01 +0000, Aaron Albright wrote:
> Your question #21824 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/21824
>
> Status: Open => Answered
>
> Aaron Albright proposed the following answer:
> Network support and scanning are supported.
>
> Most likely you will want to install the latest release of hplip from
> http://hplip.sf.net.
>
> Sometimes the distros will included hplip but remove parts of it. If
> you install the latest you will probably not have any problems. and if
> you should have problems the tools will be available for me to better
> troubleshoot the problem (ie hp-check)
>
> Thanks for your support.
>
> A
>

Hello Mr. Albright;

There is some information about my system that I failed to include in
the original request for assistance. The OS is Ubuntu 7.10 “Gutsy” 64
Bit, The kernel is 2.6.22-14-server, the processor is an Intel core 2
duo on an Intel 965 motherboard with 2G of memory and a great deal of
disk space.

Downloaded the self install version and got the following array of error
messages.

root@KFFL-5:/home/bobkil/Temp# sh hplip-2.7.12.run
Creating directory hplip-2.7.12
Verifying archive integrity... All good.
Uncompressing HPLIP 2.7.12 Self Extracting
Archive.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 2.7.12)
HPLIP Installer ver. 3.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.

Installer log saved in: hplip-install_Thu-10-Jan-2008_10:41:13.log

|error: You are running the installer as root. It is highly recommended
that you run the installer as
error: a regular (non-root) user. Do you still wish to continue?
Continue with installation (y=yes, n=no*, q=quit) ? y

note: Defaults for each question are maked with a '*'. Press <enter> to
accept the default.

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common
options.
Custom mode allows you to chose installation options to fit specific
requirements.

Please choose the installation mode (a=automatic*, c=custom, w=web
installer, q=quit) : a

Initializing. Please wait...

INTRODUCTION
------------
This installer will install HPLIP version 2.7.12 on your computer.
Please close any running package management systems now (YaST, Adept,
Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 7.10.

Is "Ubuntu 7.10" your correct distro/OS and version (y=yes*, n=no,
q=quit) ? y

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. See:
https://help.ubuntu.com/community/Repositories/Ubuntu for more
information. Disable the CD-ROM/DVD source if you do not have the
Ubunbtu installation media inserted in the drive.

Please read the installation notes. Press <enter> to continue or 'q' to
quit:

RUNNING PRE-INSTALL COMMANDS
----------------------------

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 7 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet
connection.
warning: Missing REQUIRED dependency: gcc (gcc - GNU Project C and C++
Compiler)
warning: Missing REQUIRED dependency: libpthread (libpthread - POSIX
threads library)
warning: Missing REQUIRED dependency: python-devel (python-devel -
Python development files)
warning: Missing REQUIRED dependency: cups-devel (cups-devel- Common
Unix Printing System development files)
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: libtool (libtool - Library
building support services)
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 7 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet
connection.
warning: Missing REQUIRED dependency for option 'network': libcrypto
(libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency for option 'network':
libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development
files)
warning: Missing REQUIRED dependency for option 'gui': pyqt (PyQt - Qt
interface for Python)
warning: Missing OPTIONAL dependency for option 'fax': reportlab
(Reportlab - PDF library for Python)
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE
- Scanning library development files)
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL -
Python Imaging Library (required for commandline scanning with
hp-scan))
warning: Missing OPTIONAL dependency for option 'scan': scanimage
(scanimage - Shell scanning program)

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --yes --force-yes build-essential
build-essential python2.5-dev libcupsys2-dev cupsys-bsd libusb-dev
libtool libjpeg62-dev openssl libsnmp9-dev python-qt3 python-reportlab
libsane-dev python-imaging libsane'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no,
q=quit) ? y
Running 'sudo apt-get install --yes --force-yes build-essential
build-essential python2.5-dev libcupsys2-dev cupsys-bsd libusb-dev
libtool libjpeg62-dev openssl libsnmp9-dev python-qt3 python-reportlab
libsane-dev python-imaging libsane'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no,
q=quit) ? n
warning: Some HPLIP functionality might not function due to missing
package(s).

RUNNING POST-PACKAGE COMMANDS
-----------------------------

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'gcc (gcc - GNU Project C and C++
Compiler)' is still missing.
error: A required dependency 'libpthread (libpthread - POSIX threads
library)' is still missing.
error: A required dependency 'python-devel (python-devel - Python
development files)' is still missing.
error: A required dependency 'cups-devel (cups-devel- Common Unix
Printing System development files)' is still missing.
error: A required dependency 'libusb (libusb - USB library)' is still
missing.
error: A required dependency 'libtool (libtool - Library building
support services)' is still missing.
error: A required dependency 'libjpeg (libjpeg - JPEG library)' is still
missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this
installer.
root@KFFL-5:/home/bobkil/Temp#

*****************************************************************************************

I then attempted the manual install and received an even greater number
of messages.

By downloading and installing individual packages I was able to reduce
the number of errors. Here are some of the errors without all the
output of the run;

For step 2C, Install the required dependency packages;

Package libsnmp9-dev is a virtual package provided by:
  libsnmp-dev 5.3.1-6ubuntu2.1
You should explicitly select one to install.
E: Package libsnmp9-dev has no installation candidate

Step 4: Configure HPLIP for installation, The last 4 lines of output;

checking for pthread_create in -lpthread... yes
checking for pow in -lm... yes
checking for jpeg_set_defaults in -ljpeg... no
configure: error: "cannot find libjpeg support"

Step 5: Run Make

make: *** No targets specified and no makefile found. Stop.
At this point I saw no reason to continue as nothing was made.
Thanks for your interest and assistance;
bob

There is a problem which I have correct for the future release regarding libsnmp. Run manuall:

sudo apt-get install libsnmp-dev

Which will correct the problem in step 2C. As for the rest if possible just use the automatic installer.

Please do not run the installer as root, run it as user. It's been tested extensively on ubuntu with no problems. The libsnmp is a new change with ubuntu, but is fixed for the next release.

During your first pass the installed stopped at:

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --yes --force-yes build-essential
build-essential python2.5-dev libcupsys2-dev cupsys-bsd libusb-dev
libtool libjpeg62-dev openssl libsnmp9-dev python-qt3 python-reportlab
libsane-dev python-imaging libsane'
Please wait, this may take several minutes...
error: Package install command failed with error code 100

Because of the libsnmp problem. As you are installing it manually (see above), the installer will continue with no problems.

As for your other concerns,

Step 4: Configure HPLIP for installation, The last 4 lines of output;

Did not work because the installer didn't finish installing the rest of the dependencies.

Step 5: Run Make

Did not pass because the configure did not pass and the configure creates the make files.

Installing libsnmp-dev manually and then re-running the installer should work.

All the best,

A

bobkil (bob-kilgore) said : #4

For Aaron Albright;

Thank you very much for your efforts, it is rare that I get a satisfactory solution so quickly. As an old time Unix system manager I have a habit of doing software maintenance as the super user, when I did the load as a regular user it worked a treat. From the output of the previous run I had loaded the libsnmp-dev module previously but attempted to do the install as root. The scanner now operates very well.

Once again Thank you;
bob

Great! I've committed the fix for both Gutsy and Hardy so this will be fixed for the next release.

Thanks for your support!

A