Lpd networking printing problems

Bug #91382 reported by 323232
12
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Fix Released
Medium
Till Kamppeter

Bug Description

Binary package hint: cupsys-bsd

Printing by a networkprinter in ubuntu feisty (up to date with updates) gives an error: no lpd in usr libs cups backend.
Made a symlink sudo ln /usr/lib/cups/backend-available/lpd /usr/lib/cups/backend/
Printing through gnome-cups-manager -> print test page works after making a symlink
Printing with other applications does not work. A gscript file is sent to cups -spool but no action from the printer.
Previsiously, using lpd instead of cupsys-bsd worked fine with no problems.
De/re installing all cups packages and printerdrivers was not a solution. Making a new printer definition through gnome-cups-manager did not work at all (als under root). Had to use the old backup file from etc cups printerconf to get back in the state " can only print testpages"
Looks something went wrong with the last 2 cups updates.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you post the output of

ls -l /usr/lib/cups/backend

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you do

sudo dpkg -P --force-depends cupsys

and then install these packages

http://www.linux-foundation.org/~till/tmp/ubuntu/feisty/cupsys/binary/

Are the backends back in /usr/lib/cups/backend now?

Changed in cupsys:
importance: Undecided → Medium
status: Unconfirmed → Fix Committed
Revision history for this message
323232 (323232) wrote :

Thank you very much for your swift response.
With some hickups / workarounds the problem is solved at the end (could be due to lack of indepth knowledge on my side)

The output with original symlink
ls -l /usr/lib/cups/backend
total 116
-rwxr-xr-x 1 root root 7200 2007-02-22 18:31 beh
-rwxr-xr-x 1 root root 12384 2007-02-19 13:41 bluetooth
-rwxr-xr-x 1 root root 15640 2007-03-07 16:06 canon
-rwxr-xr-x 1 root root 16248 2007-03-07 16:06 epson
-rwxr-xr-x 1 root root 28772 2007-02-20 19:56 hp
-rwxr-xr-x 1 root root 7612 2007-02-20 19:56 hpfax
-rws--x--- 2 root lp 17108 2007-03-07 16:01 lpd
lrwxrwxrwx 1 root root 17 2007-03-10 18:41 smb -> /usr/bin/smbspool

removed the link
Did the sudo dpkg -P --force-depends cupsys

Missed the knowledge hot to install the updates right. Got all kind of broken dependencies and could not install downloaded files.
Fixed the broken dependencies in Synaptic (restored original cups)
Updated the new downloaded files (according to your link)
Installed the printer drivers again
Changed the printer by gnome-cups-manager (adding lpd ip adres printer)
Saved
Checked the printer properties
Nothing was changed (May be a seperate bug??)
Copied backup files to /etc/cups/ (printconf's and ppd file)
Now the printer was fine in gnome-cups-manager
error lpd filed after print-command
made the symlink again
printer is working perfectly now.

Best regards and many thanks!

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To get the test done correctly, do the following:

Either wait for the package (1.2.8-0ubuntu4) to hit the mirrors (should be the case in some hours) and do

sudo apt-get update
sudo apt-get dist-upgrade
sudo dpkg -P --force-depends cupsys
sudo apt-get install cupsys

or (i386/32-bit PC only) download the new packages from

http://www.linux-foundation.org/~till/tmp/ubuntu/feisty/cupsys/binary/

and do

sudo dpkg -P --force-depends cupsys
sudo dpkg -i *.deb

Now the backends should be linked and configured correctly.

Changed in cupsys:
status: Fix Committed → Fix Released
Revision history for this message
gosh (jos-plompen) wrote :

I have a HP C3180 attached to a Belkin Printer Server on my wireless network.

I used to print on this printer throught lpd://192.168.2.253/lp1.
I still can ping that server, but cannot print anymore.

When I try to add the printer using the GUI, I come to the point that I selected the ip-adress and port, then select the printer, press forward, add name and location, press Apply and the GUI closes and no printer is added

This is what /var/log/cups/access_log says:
Code:

localhost - - [10/Mar/2007:17:06:43 +0100] "POST / HTTP/1.1" 200 1859 CUPS-Get-Devices -
localhost - - [10/Mar/2007:17:06:46 +0100] "POST / HTTP/1.1" 200 1749073 CUPS-Get-PPDs -
localhost - - [10/Mar/2007:17:07:59 +0100] "POST /admin/ HTTP/1.1" 401 343 CUPS-Add-Modify-Printer successful-ok
localhost - root [10/Mar/2007:17:07:59 +0100] "POST /admin/ HTTP/1.1" 200 343 CUPS-Add-Modify-Printer client-error-not-possible

/var/log/cups/error_log:
Code:

E [10/Mar/2007:17:07:59 +0100] CUPS-Add-Modify-Printer: Unauthorized

EDIT: when I run gnome-cups-manager from a ternimal it shows:
Code:

Selected ppd file = foomatic:HP-PhotoSmart_C3100-hpijs.ppd

** (gnome-cups-add:1456): WARNING **: IPP request failed with status 1028

When I try to connect to the printer using the web-interface LPD isn't even shown as a option.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Have you updated to cups_1.2.8-0ubuntu4? If not, do the test procedure which I have described in my previous posting. If yes, do

ls -l /usr/share/cups/backend
ls -l /usr/share/cups/backend-available

and post the output here.

Revision history for this message
notoriousdbp (david-baird-parker) wrote : Re: *** SPAM *** [Bug 91382] Re: Lpd networking printing problems

It's OK, I re-read your post and did the complete removal and
re-installation of cupsys as you described. Thanks for getting back so
quickly. I really appreciate the help.

On Mon, 2007-03-12 at 21:01 +0000, Till Kamppeter wrote:

> Have you updated to cups_1.2.8-0ubuntu4? If not, do the test procedure
> which I have described in my previous posting. If yes, do
>
> ls -l /usr/share/cups/backend
> ls -l /usr/share/cups/backend-available
>
> and post the output here.
>

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Correction: Must be /usr/lib/cups/backend ...

Have you updated to cups_1.2.8-0ubuntu4? If not, do the test procedure which I have described in my previous posting. If yes, do

ls -l /usr/lib/cups/backend
ls -l /usr/lib/cups/backend-available

and post the output here.

I have seen now that the permissions in /usr/lib/cups/backend get messy. I will put up a fixed cupsys package soon.

What I have fixed in 0ubuntu4 is another bug which is independent of this one.

Changed in cupsys:
status: Fix Released → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

0ubuntu5 is out. Get it at the usual place:

http://www.linux-foundation.org/~till/tmp/ubuntu/feisty/cupsys/binary/

Simply installing it over the old version ("sudo dpkg -i *.deb") should correct the permissions of the lpd backend and so really fix this bug.

The packages are on their way to Feisty.

Changed in cupsys:
status: In Progress → Fix Committed
Tollef Fog Heen (tfheen)
Changed in cupsys:
assignee: nobody → till-kamppeter
Changed in cupsys:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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