View Single Post
Posts: 172 | Thanked: 27 times | Joined on Oct 2009 @ San Francisco, CA
#49
Originally Posted by Graham Cobb View Post
You may need to install the cups-client package (apt-get install cups-client).



/etc/cups is a directory, with several important control files and has nothing to do with the initialisation script which should be at /etc/init.d/cups! I suggest you move it back again.

If /etc/init.d/cups is not present, either it got deleted or the cups installation didn't work. After moving the config directory back in to /etc I would suggest:

apt-get install --reinstall cups cups-client cups-common

Graham
On your advice Graham, I moved /cups back to /etc, and ran apt-get install --reinstall cups cups-client cups-common. Unfortunately, this did not work so after enabling Extras-Devel (don't think that was necessary though) I ran:

Code:
apt-get update
apt-get update --fix-missing
apt-get install -f
apt-get install --reinstall cups cups-client cups-common
I can't remember if that was the exact order of things or not (other than the last step), nor know if any or all were necessary steps but it did finally work.

So now running lpstat -a works and lists the attached network printers. Two issues I now have though are:

1.) cups stops running after a while prompting me to run /etc/init.d/cups restart (lpstat -a returns the message "connection refused" before I restart cups). I guess I can live with this unless there is a workaround.

2.) The Excel file that I was printing (finally, after deleting and re-adding my printer on the network) was not formatted at all correctly. Can this be fixed? Otherwise this potentially exciting function is useless.

Thank you (anyone) for your help.