hp-setup does not find usb printer P1102

Bug #795015 reported by Hans W. Schreuder
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

OS: openSUSE 11.4 (64b) +KDE 4.6.0
hplip version 3.11.5-1.3.1

Output from hp-check -t indicates missing dependencies:
libusb-1_0-devel and libusb-1_0-0,
however:
hws@oS114:~> zypper se libusb-1_0-devel libusb-1_0-0
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+------------------------+-------------+--------
i | libusb-1_0-0 | USB Library | package
  | libusb-1_0-0-32bit | USB Library | package
i | libusb-1_0-devel | USB Library | package
  | libusb-1_0-devel-32bit | USB Library | package
hws@oS114:~>

Steps to reproduce problem:
- remove printer using Yast
- as su: hp-setup
- in HP Device Manager: select USB then NEXT,
- in terminal: "error: No devices found on bus: usb"
  in HP device manager: "No devives found, Click 'Back'to change discovery options .." action: click 'Back'.
- in HP Device Maanger: click "Show Advanced Options", then"Manual Discovery" then "Manual Discovery"
- in (another) terminal: type lsusb to find printerś USB address
  result: "Bus 002 Device 002: ID 03f0:002a Hewlett-Packard LaserJet P1102
- in HP Device Manager: type "002:002" and press "Next"
- HP Device Manager step 2 now: "1 device found"
  "Model HP LaserJet Professional p1102"and "Device URI hp:/usb?HP_LaserJet_Professinal_P1102?
  serial = 000000000Q8078F7Sl1c"
  On terminal: Found device: hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q8078F7SI1c

 - In HP Device Manager: click "Next" to continue:
- HP Device Manager step 3: selec t"Send test page to printer" and "Add printer"
 result in HP Device Manager: message "Unable to print to printer, please check device and try again."
- result on terminal: "/error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q8078F7SI1c
error: Unable to print to printer. Please check device and try again.
(Nothing is printed)

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :
Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Looks like you have installed the hplip-3.11.5 package that is shipped in OpenSUSE 11.4 distro which enables both hpcups and hpijs.
Can you try installing hplip-3.11.5.run file. You can download the same from http://hplipopensource.com/hplip-web/gethplip.html.
Run the command "sh hplip-3.11.5.run" in terminal.
Let us know if the issue is same after installing that. Please post the out-put of "hp-check -t" command.

Sorry for inconvenience caused.

Thanks & Regards,
Goutam Kodu

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote : Re: [Bug 795015] Re: hp-setup does not find usb printer P1102

Hello !
Thank you for your reply.
I have downloaded the file and have issued the command to run it.
There is a strange problem: it complains that "libusb" is missing, however
zypper finds it as shown here:

start quote
RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'libusb (libusb - USB library)' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.
hws@oS114:~/bin> zypper se libusb
Loading repository data...
Reading installed packages...

S | Name | Summary
| Type
--+------------------------+---------------------------------------------------------------------------+--------
i | libusb-0_1-4 | libusb-1.0 Compatibility Library for libusb-0.1
| package
  | libusb-0_1-4-32bit | libusb-1.0 Compatibility Library for libusb-0.1
| package
i | libusb-1_0-0 | USB Library
| package
  | libusb-1_0-0-32bit | USB Library
| package
i | libusb-1_0-devel | USB Library
| package
  | libusb-1_0-devel-32bit | USB Library
| package
  | libusb-compat-devel | libusb-1.0 Compatibility Layer for libusb-0.1
| package
  | libusbmuxd-devel | Development files for libusbmuxd
| package
i | libusbmuxd1 | A library to abstract socket/protocol
communication to the usbmuxd daemon | package
  | libusbprog0 | USBprog Library
| package
hws@oS114:~/bin>
end of quote

Would it be helpful to send you all of the terminal session?
What else can you suggest me to do?

Thanks in advance,

Hans Schreuder.

=========================================
Op vrijdag 10 juni 2011 10:33:53 schreef u:
> Hi,
>
> Looks like you have installed the hplip-3.11.5 package that is shipped in
> OpenSUSE 11.4 distro which enables both hpcups and hpijs. Can you try
> installing hplip-3.11.5.run file. You can download the same from
> http://hplipopensource.com/hplip-web/gethplip.html. Run the command "sh
> hplip-3.11.5.run" in terminal.
> Let us know if the issue is same after installing that. Please post the
> out-put of "hp-check -t" command.
>
> Sorry for inconvenience caused.
>
> Thanks & Regards,
> Goutam Kodu

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Can you run the commands;

$su -c "rpm -qa libusb-1_0-0-1.0.8-4.1.x86_64"
$su -c "rpm -qa libusb-1_0-devel-1.0.8-4.1.x86_64"

and check whether these packages are installed in your system. Post the out-put if you can.

If you did not find them installed, please find the below links to download these packages.
http://rpm.pbone.net/index.php3/stat/4/idpl/15624963/dir/opensuse/com/libusb-1_0-devel-1.0.8-4.1.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/15624961/dir/opensuse/com/libusb-1_0-0-1.0.8-4.1.x86_64.rpm.html

Run the below commands to install them,
$su -c"rpm -Uvh libusb-1_0-0-1.0.8-4.1.x86_64"
$su -c"rpm -Uvh libusb-1_0-devel-1.0.8-4.1.x86_64"

Let us know on the same.

Thanks & Regards,
Goutam Kodu

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :

Hi,
You are fast!

Here is the requested output:
start quote
oS114:/home/hws # rpm -qa libusb-1_0-0-1.0.8-4.1.x86_64
oS114:/home/hws # rpm -Uvh libusb-1_0-devel-1.0.8-4.1.x86_64
error: open of libusb-1_0-devel-1.0.8-4.1.x86_64 failed: No such file or
directory
oS114:/home/hws #
end quote

I downloaded and installed the missing development rpm.

So, the next step is to run hplip-3.11.5.run again?

Regards,

Hans Schreuder

==================================================

Op vrijdag 10 juni 2011 12:06:43 schreef u:
> Hi,
>
> Can you run the commands;
>
> $su -c "rpm -qa libusb-1_0-0-1.0.8-4.1.x86_64"
> $su -c "rpm -qa libusb-1_0-devel-1.0.8-4.1.x86_64"
>
> and check whether these packages are installed in your system. Post the
> out-put if you can.
>
> If you did not find them installed, please find the below links to download
> these packages.
> http://rpm.pbone.net/index.php3/stat/4/idpl/15624963/dir/opensuse/com/libu
> sb-1_0-devel-1.0.8-4.1.x86_64.rpm.html
> http://rpm.pbone.net/index.php3/stat/4/idpl/15624961/dir/opensuse/com/libu
> sb-1_0-0-1.0.8-4.1.x86_64.rpm.html
>
> Run the below commands to install them,
> $su -c"rpm -Uvh libusb-1_0-0-1.0.8-4.1.x86_64"
> $su -c"rpm -Uvh libusb-1_0-devel-1.0.8-4.1.x86_64"
>
> Let us know on the same.
>
> Thanks & Regards,
> Goutam Kodu

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :

Hi,

After installing libusb-1_0-devel, I have again done "sh hplip-3.11.5.run"
from the terminal.
This gave an error message:
Error message on re-checking dependencies: "...libusb is still missing".

I then checked with Yast and with rpm:
Yast : both libusb and libusb-devel ( the correct versions) seem are shown as
installed.
rpm -qa : libusb is ok, libusb-devel is not found by rpm.(Same as reported
previously).

I am too ignorant of Linux to understand how all of these 3 statements can be
true.

Regards,

Hans Schreuder

Op vrijdag 10 juni 2011 12:06:43 schreef u:
> Hi,
>
> Can you run the commands;
>
> $su -c "rpm -qa libusb-1_0-0-1.0.8-4.1.x86_64"
> $su -c "rpm -qa libusb-1_0-devel-1.0.8-4.1.x86_64"
>
> and check whether these packages are installed in your system. Post the
> out-put if you can.
>
> If you did not find them installed, please find the below links to download
> these packages.
> http://rpm.pbone.net/index.php3/stat/4/idpl/15624963/dir/opensuse/com/libu
> sb-1_0-devel-1.0.8-4.1.x86_64.rpm.html
> http://rpm.pbone.net/index.php3/stat/4/idpl/15624961/dir/opensuse/com/libu
> sb-1_0-0-1.0.8-4.1.x86_64.rpm.html
>
> Run the below commands to install them,
> $su -c"rpm -Uvh libusb-1_0-0-1.0.8-4.1.x86_64"
> $su -c"rpm -Uvh libusb-1_0-devel-1.0.8-4.1.x86_64"
>
> Let us know on the same.
>
> Thanks & Regards,
> Goutam Kodu

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :

Hello,

Please find below the last part of hplip-install.log
Note that libusb-devel as well as libusb are found to be present and that no
newer versins are available.
Yes, on the final re-checking of dependencies, usblib is declared missing.

Regards,

Hans Schreuder

Here follows the exerpt of the log:

======================================
[skipped many lines]

hplip-install[10069]: info: :[01mDEPENDENCY AND CONFLICT RESOLUTION[0m
hplip-install[10069]: info: :[01m----------------------------------[0m
hplip-install[10069]: info: :Running 'su -c "zypper --non-interactive --no-
gpg-checks in --auto-agree-with-licenses libusb-1_0-devel"'
Please wait, this may take several minutes...
:
Loading repository data...
Reading installed packages...

: 'libusb-1_0-devel' is already installed.
No update candidate for 'libusb-1_0-devel-1.0.8-4.1.x86_64'. The highest
available version is already installed.
Resolving package dependencies...

Nothing to do.

hplip-install[10069]: info: :Running 'su -c "zypper --non-interactive --no-
gpg-checks in --auto-agree-with-licenses libusb-1_0-0"'
Please wait, this may take several minutes...
:
Loading repository data...
Reading installed packages...

: 'libusb-1_0-0' is already installed.
No update candidate for 'libusb-1_0-0-1.0.8-4.1.x86_64'. The highest available
version is already installed.
Resolving package dependencies...

Nothing to do.

warning: A previous install of HPLIP is installed and/or running.
hplip-install[10069]: info: :su -c "zypper --non-interactive rm hplip"
(Removing old HPLIP version)
:
Loading repository data...
Reading installed packages...
Resolving package dependencies...

:
The following package is going to be REMOVED:
  hplip

1 package to remove.
After the operation, 9.8 MiB will be freed.
[2K
? [y/n/?] (y): y
[2K
Removing hplip-3.11.5-1.3.1 [0%]YES[2K
Removing hplip-3.11.5-1.3.1 [done]

warning: HPLIP removal failed. The previous install may have been installed
using a tarball or this installer.
warning: Continuing to run installer - this installation should overwrite the
previous one.
hplip-install[10069]: info: :
hplip-install[10069]: info: :
hplip-install[10069]: info: :[01mRUNNING POST-PACKAGE COMMANDS[0m
hplip-install[10069]: info: :[01m-----------------------------[0m
hplip-install[10069]: info: :OK
hplip-install[10069]: info: :
hplip-install[10069]: info: :
hplip-install[10069]: info: :[01mRE-CHECKING DEPENDENCIES[0m
hplip-install[10069]: info: :[01m------------------------[0m
scheduler is running

error: A required dependency 'libusb (libusb - USB library)' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.
=========================================================

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Thanks for all the posts and out-puts.
To check on the detailed list of dependencies installed ,please post me the out-put "hp-check -t" command.

Thanks,
Goutam Kodu

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :

Hi,

Good to see you back :-)
Problem: when I try to run hp-check -t, I get the following message:
"If 'hp-check' is not a typo you can use command-not-found to lookup the
package that contains it, like this: cnf hp-check"

And when I follow up on this suggestion:
hws@oS114:~> cnf hp-check

The program 'hp-check' can be found in following packages:
  * hplip [ path: /usr/bin/hp-check, repository: zypp (Updates-for-
openSUSE-11.4-11.4-0) ]
  * hplip [ path: /usr/bin/hp-check, repository: zypp (repo-oss) ]

Try installing with:
    sudo zypper install hplip

hws@oS114:~>

So, (probaly unsurprisingly) hpcheck is not available before installing hplip.
But installing hplip via "sh hplip-3.11.5.run" ends in failure as
demonstrated in a previous email.

Of course I can send you the complete output resulting from "sh
hplip-3.11.5.run" if you like.

Thank you for your efforts and for your time!

Regards,

Hans Schreuder.

=================================

Op maandag 13 juni 2011 11:53:25 schreef u:
> Hi,
>
> Thanks for all the posts and out-puts.
> To check on the detailed list of dependencies installed ,please post me the
> out-put "hp-check -t" command.
>
> Thanks,
> Goutam Kodu

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Lets do the manual installation of hplip-3.11.5.

When you run the command "sh hplip-3.11.5.run" file. A folder by name "hplip-3.11.5" gets created at the same location where hplip-3.11.5.run file is present.

Follow the instructions provided below to do manual installation;

1. Change to the directory hplip-3.11.5
    $ cd hplip-3.11.5

2. Run the below ./configure command after changing directory to hplip-3.11.5

    $ ./configure --with-hpppddir=/usr/share/cups/model/HP --libdir=/usr/lib64 --prefix=/usr --with-cupsbackenddir=/usr/lib64/cups/backend --with-cupsfilterdir=/usr/lib64/cups/filter --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

3.Run make
   $ make

4. Run make install
    $su -c " make install"

For more help on manual installation you can find this link http://hplipopensource.com/hplip-web/install/manual/distros/novell.html

If all above steps goes fine. Please post me the out-put of "hp-check -t" command.

Let us know if you are finding any difficulty in doing the same.

Sorry for the inconvenience caused.

Thanks & Regards,
Goutam Kodu

Changed in hplip:
status: New → In Progress
Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :

Hello Goutam Kodu,

Thank you for your suggestions.
There was an error message on execution of the ./configure comand, so I went
to the instructions in the link mentioned by you:
  http://hplipopensource.com/hplip-web/install/manual/distros/novell.htmlin

And this worked !
The printer was properly recognised, the test page printed, as well as a one-
page file produced by LibreOffice. Strange that hplip had to be
compiled/linked locally.

Anyway, I am very very grateful for your advice, guidance and patience.

One last (I hope!) question: is membership of the group 'sys' really
necessary for being allowed to print?

Thank you again,
sincerely,

Hans Schreuder.

====================================

Op maandag 13 juni 2011 13:00:35 schreef u:
> Hi,
>
> Lets do the manual installation of hplip-3.11.5.
>
> When you run the command "sh hplip-3.11.5.run" file. A folder by
> name "hplip-3.11.5" gets created at the same location where
> hplip-3.11.5.run file is present.
>
> Follow the instructions provided below to do manual installation;
>
> 1. Change to the directory hplip-3.11.5
> $ cd hplip-3.11.5
>
> 2. Run the below ./configure command after changing directory to
> hplip-3.11.5
>
> $ ./configure --with-hpppddir=/usr/share/cups/model/HP
> --libdir=/usr/lib64 --prefix=/usr --with-
> cupsbackenddir=/usr/lib64/cups/backend --with-
> cupsfilterdir=/usr/lib64/cups/filter --enable-qt4 --enable-doc-build
> --disable-cups-ppd-install --disable-foomatic-drv-install --disable-
> foomatic-ppd-install --disable-hpijs-install --disable-policykit
> --enable-cups-drv-install --enable-hpcups-install --enable-network-build
> --enable-dbus-build --enable-scan-build --enable-fax-build
>
> 3.Run make
> $ make
>
> 4. Run make install
> $su -c " make install"
>
> For more help on manual installation you can find this link
> http://hplipopensource.com/hplip-web/install/manual/distros/novell.html
>
> If all above steps goes fine. Please post me the out-put of "hp-check
> -t" command.
>
> Let us know if you are finding any difficulty in doing the same.
>
> Sorry for the inconvenience caused.
>
> Thanks & Regards,
> Goutam Kodu
>
> ** Changed in: hplip
> Status: New => In Progress

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Thanks Hans Schreuder for doing all the work and letting me know on the same. That makes me feel good. Sorry for have you to do lot of work.

Just for more info and to answer your doubts:
 We provide hplip-3.11.5.run at http://hplipopensource.com/hplip-web/gethplip.html for OpenSUSE and for other distros. This is an archive file containing the hplip source files. Inside the archive there is script called install.py which does the auto installation of hplip when you run the command "sh hplip-3.11.5.run". This script takes the help of zypper package manager( a package manager provided in OpenSUSE distro) to install all the dependencies that are required by the hplip package to install. Then, it does the configuring the hplip based on the 32 or 64 bit operating system. Next it run the "make" script to compile the code and do "make install" to install the compiled code of hplip.
    In your case, zypper package manager was not able to figure out and install the "libusb" and "libusb-devel" packages. Iam not very sure whether these packages were contained in the package manager. Since the zypper package manager was failing to install the "libusb" and "libusb-devel" the install.py script was failing to install the hplip. Hence the auto installation was failing for your case.
    Later you manually installed libusb and libusb-devel rpm's as these two packages were causing the problem and now when they were installed it was easy to configure , compile and install the HPLIP.
    We do a lot of testing on installations and package checking. We did not face any problem as such in our testing with OpenSUSE 11.4 64 bit.

    And hplip package depends on the cups package for creating print queues and fax queues. During device set-up hplip communicates with cups package to create print queues and fax queues for hp printers. Creating queue requires certain permissions and hence we add the user to the "sys" group to get the permissions to create the print queues. This adding the user to "sys" and "lp" group is taken care by the auto-installation script during installation. During manual installation the user has to add to "lp" and "sys" group manually.

     Although Iam not an expert. With my little knowledge i hope i have answered your doubts . :)

Hoping that this has solved you problem and marking it as invalid as there required no code change as of now to fix this issue.

Sorry for the inconvenience caused.

Thanks for supporting hplip.

Thanks & Regards,
Goutam Kodu

Changed in hplip:
status: In Progress → Invalid
Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote :
Download full text (3.7 KiB)

Hello again,

1. First of all: I very much appreciated your input and your suggestions. I
experienced the (very agreeable) feeling of working together to get rid of a
problem.

2. Thanks for your scenario "after the fact" of the procedure. From it, I
have learned that libusb and libusb-devel are not part of the openSUSE distro,
at least not in the versions required. However, I am somewhat surprised that
a "devel" version should be required for installing a printer. But I happily
accept this as a fact.

3. Thanks also for explaining the need for membership of the 'sys' and 'lp'
groups.

4. Contrary to your opinion you are, in comparison with me, most certainly an
expert !

5. You have caused to inconvenience at all. On the contrary, you have
eliminated an inconvenience that has kept me thinking and trying (off and on)
for three months.

Finally, I want to thank you again for your expert help and the the speed of
your responses.

Sincerely,

Hans Schreuder.

==========================================

Op maandag 13 juni 2011 21:26:18 schreef u:
> Hi,
>
> Thanks Hans Schreuder for doing all the work and letting me know on the
> same. That makes me feel good. Sorry for have you to do lot of work.
>
> Just for more info and to answer your doubts:
> We provide hplip-3.11.5.run at
> http://hplipopensource.com/hplip-web/gethplip.html for OpenSUSE and for
> other distros. This is an archive file containing the hplip source files.
> Inside the archive there is script called install.py which does the auto
> installation of hplip when you run the command "sh hplip-3.11.5.run".
> This script takes the help of zypper package manager( a package manager
> provided in OpenSUSE distro) to install all the dependencies that are
> required by the hplip package to install. Then, it does the configuring
> the hplip based on the 32 or 64 bit operating system. Next it run the
> "make" script to compile the code and do "make install" to install the
> compiled code of hplip. In your case, zypper package manager was not able
> to figure out and install the "libusb" and "libusb-devel" packages. Iam
> not very sure whether these packages were contained in the package
> manager. Since the zypper package manager was failing to install the
> "libusb" and "libusb-devel" the install.py script was failing to install
> the hplip. Hence the auto installation was failing for your case. Later
> you manually installed libusb and libusb-devel rpm's as these two packages
> were causing the problem and now when they were installed it was easy to
> configure , compile and install the HPLIP. We do a lot of testing on
> installations and package checking. We did not face any problem as such in
> our testing with OpenSUSE 11.4 64 bit.
>
> And hplip package depends on the cups package for creating print
> queues and fax queues. During device set-up hplip communicates with cups
> package to create print queues and fax queues for hp printers. Creating
> queue requires certain permissions and hence we add the user to the
> "sys" group to get the permissions to create the print queues. This
> adding the user to "sys" and "lp" group is taken care by the auto-
> inst...

Read more...

Revision history for this message
Hans W. Schreuder (h-w-schreuder) wrote : Hp printer p1102

Hello again.

Just for information only:
Yesterday, the printer functioned perfectly.
Today it does not; CUPS exits with error message
"/usr/lib/CUPS/backend/hp-failed".

I give up.

Regards,

Hans Schreuder.

Revision history for this message
Eva C. (naceira) wrote :

Found the solution!

bahman.kahinpour posts here: http://foo2zjs.rkkda.com/forum/read.php?68,2877
his solution for this issue in FreeBSD but I think the distro doesn't matter almost at all.
After days of searching for the answer finally the headache is gone!!!

You have to disable the printer's "Smart Install". Use the file stored in the original driver-cd named SIUtility.exe in UTIL folder and choose "printer disable".

When I came back to ubuntu, it just installed all by itself just as I plugged in the usb...

Hope this works for you.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Aivis (aivis-1990)
Changed in hplip:
status: Invalid → Confirmed
Revision history for this message
Aivis (aivis-1990) wrote :

Hi! I have same problem here on Debian 6.0.2 32-bit using original 3.11.7 driver package from http://hplipopensource.com/

HP Device Manager does not recognize P1102

HP Linux Imaging and Printing System (ver. 3.11.7)
Printer/Fax Setup Utility ver. 9.0

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

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

Revision history for this message
Aivis (aivis-1990) wrote :

My hp-check -t output.

Revision history for this message
Aivis (aivis-1990) wrote :

I tried solution with disabling Smart Install provided by Eva C. (naceira), but it also not helped for me.

Revision history for this message
Aivis (aivis-1990) wrote :

Do I need to open new bug report with steps for reproducing my case or it is not necessary?

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Aivis,

Sorry for the late response. Are you able to print in Linux using HPLIP after disabling Smart Install feature from Windows. Please try with the latest HPLIP release (HPLIP-3.11.10).

Thanks,
Sanjay

Changed in hplip:
assignee: nobody → Sanjay Kumar (sanjay-kumar14)
Revision history for this message
Aivis (aivis-1990) wrote :

Hello Sanjay Kumar,

Yes, it is working. But installation was not clearly, beause by default were errors such as

E [02/Nov/2011:21:21:51 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: No such file or directory
E [02/Nov/2011:21:21:51 +0500] [Job 2] Unable to start filter "foomatic-rip-hplip" - Success.
E [02/Nov/2011:21:21:51 +0500] [Job 2] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:31:26 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100751)
E [02/Nov/2011:21:31:26 +0500] [Job 4] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:31:26 +0500] [Job 4] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:32:14 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100644)
E [02/Nov/2011:21:32:14 +0500] [Job 5] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:32:14 +0500] [Job 5] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:32:50 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100444)
E [02/Nov/2011:21:32:50 +0500] [Job 6] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:32:50 +0500] [Job 6] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:33:28 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100400)
E [02/Nov/2011:21:33:28 +0500] [Job 7] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:33:28 +0500] [Job 7] Stopping job because the scheduler could not execute a filter.

It was necessary to go to /usr/lib/cups/filter/foomatic-rip-hplip and make symlink foomatic-rip-hplip to foomatic-rip file. After that it's works. Debian 6.0.3

Revision history for this message
Aivis (aivis-1990) wrote :

Full log

E [02/Nov/2011:20:32:42 +0500] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [02/Nov/2011:21:16:30 +0500] Returning HTTP Forbidden for CUPS-Add-Modify-Printer (ipp://localhost/printers/HP_LaserJet_Professional_P1102) from localhost
E [02/Nov/2011:21:16:51 +0500] Returning HTTP Forbidden for CUPS-Add-Modify-Printer (ipp://localhost/printers/HP_LaserJet_Professional_P1102) from localhost
E [02/Nov/2011:21:19:07 +0500] Filter "/usr/lib/cups/filter/foomatic-rip-hplip" for printer "HP_LaserJet_Professional_P1102" not available: No such file or directory
E [02/Nov/2011:21:19:07 +0500] Filter "/usr/lib/cups/filter/foomatic-rip-hplip" for printer "HP_LaserJet_Professional_P1102" not available: No such file or directory
E [02/Nov/2011:21:21:33 +0500] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [02/Nov/2011:21:21:35 +0500] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [02/Nov/2011:21:21:43 +0500] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [02/Nov/2011:21:21:45 +0500] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [02/Nov/2011:21:21:51 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: No such file or directory
E [02/Nov/2011:21:21:51 +0500] [Job 2] Unable to start filter "foomatic-rip-hplip" - Success.
E [02/Nov/2011:21:21:51 +0500] [Job 2] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:31:26 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100751)
E [02/Nov/2011:21:31:26 +0500] [Job 4] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:31:26 +0500] [Job 4] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:32:14 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100644)
E [02/Nov/2011:21:32:14 +0500] [Job 5] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:32:14 +0500] [Job 5] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:32:50 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100444)
E [02/Nov/2011:21:32:50 +0500] [Job 6] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:32:50 +0500] [Job 6] Stopping job because the scheduler could not execute a filter.
E [02/Nov/2011:21:33:28 +0500] Unable to execute /usr/lib/cups/filter/foomatic-rip-hplip: insecure file permissions (0100400)
E [02/Nov/2011:21:33:28 +0500] [Job 7] Unable to start filter "foomatic-rip-hplip" - Operation not permitted.
E [02/Nov/2011:21:33:28 +0500] [Job 7] Stopping job because the scheduler could not execute a filter.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Thanks for the reply Avis. Looks like you are not using hpcups ppd. PLease install latest HPLIP release (HPLIP 3.11.10) and use hpcups ppd. If issues are not resolved then please let me know.

Thanks,
Sanjay

Revision history for this message
Aivis (aivis-1990) wrote :

Okay. To perform the clean installation, I made these steps

1. root@aivis:~# rm -rf /usr/share/hplip
root@aivis:~# rm -rf /etc/hp
root@aivis:~# rm -rf ~/.hplip
root@aivis:~# rm -rf /var/lib/hp
root@aivis:~# rm -rf /usr/share/hplip
root@aivis:~# rm -rf /etc/hp
root@aivis:~# rm -rf ~/.hplip
root@aivis:~# rm -rf /var/lib/hp

I made manualy, because old source was deleted.

2. Removed printer from Gnome Printing Panel

3. Removed CUPS with all dependencies

root@aivis:~# aptitude purge cups

(The following packages will be REMOVED:
  cups{p} cups-driver-gutenprint{u} cups-ppdc{u} foomatic-db{u} foomatic-db-engine{u} foomatic-filters{u} foomatic-filters-ppds{u} ghostscript-cups{u} hpijs{u} libcupsppdc1{u} libhpmud0{u} min12xxw{u} pnm2ppa{u} )

And manualy deleted /usr/lib/cups

4. Turn On Printer

5. Executed hplip-3.11.10.run as root

6. Installation Mode - Automatic

7. Confirmed that my Distro appears to be Debian 6.0.3.

8. Repluged USB

9. hp-setup gui was automatically executed

10. I selected my device

11. At the driver plugin installation step selected Download and Install the plugin from HP authorized server, as recommended

12. Selected HP 1102 PPD but this error appeared...

Searching... (bus=usb, search=(None), desc=0)
/warning: No PPD found for model laserjet_professional_p1102 using new algorithm. Trying old algorithm...
error: No PPD found for model laserjet_professional_p1102 using old algorithm.
error: No appropriate print PPD file found for model hp_laserjet_professional_p1102
|warning: No PPD found for model laserjet_professional_p1102 using new algorithm. Trying old algorithm...
error: No PPD found for model laserjet_professional_p1102 using old algorithm.
error: No appropriate print PPD file found for model hp_laserjet_professional_p1102

Revision history for this message
Aivis (aivis-1990) wrote :

At step 12, there was error message - (Not found. Click browse button to select a PPD file.), so I selected manualy the /usr/share/ppd/HP/hp-laserjet_professional_p1102-hpijs.ppd.gz file, that was downloaded by hp-setup.

Revision history for this message
Aivis (aivis-1990) wrote :
Revision history for this message
Aivis (aivis-1990) wrote :
Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Avis,

Thanks for the update. In order to install hpcups, cups should be preinstalled and the service should be running while installing from the auto installer. PLease install cups from the repositery and the run following commands.

1) Remove hplip and hplip-hpijs (if present) from distro repositery
2) Add cups from repositery and make sure cups service is running.
3) Now run the installer in automatic mode and follow on screen instructions. If problem still exists then please send me the installer file (.run file) log again.

Thanks for using HPLIP.

Thanks,
Sanjay

Revision history for this message
Aivis (aivis-1990) wrote :

Thank you. Sorry, I forgot to install cups again after purging.

1. I don't using hplip from distro

2. root@aivis:~# apt-get install cups
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cups-driver-gutenprint cups-ppdc foomatic-db foomatic-db-engine foomatic-filters foomatic-filters-ppds ghostscript-cups hpijs libcupsppdc1 libhpmud0 min12xxw pnm2ppa

3. Printer has successfully installed, but not working. See attach. Situation as I described in https://bugs.launchpad.net/hplip/+bug/795015/comments/23

Best Regards,

Aivis

Revision history for this message
Aivis (aivis-1990) wrote :
Revision history for this message
Aivis (aivis-1990) wrote :
Revision history for this message
Aivis (aivis-1990) wrote :

If I place manually symlink foomatic-rip-hplip to /usr/lib/cups/filter/foomatic-rip printer is working, otherwise not

-rwxr-xr-x 1 0 0 38944 Nov 12 2010 bannertops
-rwxr-xr-x 1 0 0 6992 Aug 15 2010 commandtocanon
-rwxr-xr-x 1 0 0 7264 Aug 15 2010 commandtoepson
-rwxr-xr-x 1 0 0 10160 Nov 12 2010 commandtoescpx
-rwxr-xr-x 1 0 0 10160 Nov 12 2010 commandtopclx
-rwxr-xr-x 1 0 0 10160 Nov 12 2010 commandtops
-rwxr-xr-x 1 0 0 9139 Nov 12 2010 cpdftocps
lrwxrwxrwx 1 0 0 12 Nov 24 08:03 cupsomatic -> foomatic-rip
lrwxrwxrwx 1 0 0 25 Nov 24 08:03 foomatic-rip -> ../../../bin/foomatic-rip
lrwxrwxrwx 1 0 0 33 Nov 25 23:12 foomatic-rip-hplip -> /usr/lib/cups/filter/foomatic-rip
-rwxr-xr-x 1 0 0 10160 Nov 12 2010 gziptoany
-rwxr-xr-x 1 0 0 12777 Nov 24 08:07 hpcac
-rwxr-xr-x 1 0 0 60384 Nov 12 2010 hpgltops
-rwxr-xr-x 1 0 0 16435 Nov 24 08:07 hplipjs
-rwxr-xr-x 1 0 0 21668 Nov 24 08:07 hpps
-rwxr-xr-x 1 0 0 34776 Nov 12 2010 imagetopdf
-rwxr-xr-x 1 0 0 30752 Nov 12 2010 imagetops
-rwxr-xr-x 1 0 0 64832 Nov 12 2010 imagetoraster
-rwxr-xr-x 1 0 0 4316 Nov 12 2010 oopstops
-rwxr-xr-x 1 0 0 22544 Nov 12 2010 pdftoijs
-rwxr-xr-x 1 0 0 158336 Nov 12 2010 pdftoopvp
-rwxr-xr-x 1 0 0 165128 Nov 12 2010 pdftopdf
-rwxr-xr-x 1 0 0 22480 Nov 12 2010 pdftops
-rwxr-xr-x 1 0 0 19496 Jan 26 2011 pdftoraster
-rwxr-xr-x 1 0 0 6402 Nov 12 2010 pstopdf
-rwxr-xr-x 1 0 0 51152 Nov 12 2010 pstops
-rwxr-xr-x 1 0 0 6414 Jan 26 2011 pstopxl
-rwxr-xr-x 1 0 0 1874 Jan 26 2011 pstoraster
-rwxr-xr-x 1 0 0 962 Nov 24 08:07 pstotiff
lrwxrwxrwx 1 0 0 13 Nov 24 08:03 rastertodymo -> rastertolabel
-rwxr-xr-x 1 0 0 18352 Nov 12 2010 rastertoepson
-rwxr-xr-x 1 0 0 34736 Nov 12 2010 rastertoescpx
-rwxr-xr-x 1 0 0 44680 Aug 15 2010 rastertogutenprint.5.2
-rwxr-xr-x 1 0 0 18352 Nov 12 2010 rastertohp
-rwxr-xr-x 1 0 0 22528 Nov 12 2010 rastertolabel
-rwxr-xr-x 1 0 0 34736 Nov 12 2010 rastertopclx
-rwxr-xr-x 1 0 0 3561 Nov 12 2010 textonly
-rwxr-xr-x 1 0 0 91376 Nov 12 2010 texttopdf
-rwxr-xr-x 1 0 0 54512 Nov 12 2010 texttops

Revision history for this message
Aivis (aivis-1990) wrote :

Dear Sanjay. Do you need some additional information for which may help? Thank you.

penalvch (penalvch)
no longer affects: ubuntu
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Hans W. Schreuder, if you have a bug in openSUSE, it's best to report a bug to them directly -> https://en.opensuse.org/openSUSE:Submitting_bug_reports .

If you have a bug in Ubuntu, please file a new report via a terminal:
ubuntu-bug hplip

affects: debian → ubuntu
no longer affects: ubuntu
affects: hplip → ubuntu
Changed in ubuntu:
assignee: Sanjay Kumar (sanjay-kumar14) → nobody
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.