LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   CUPS problems with brother dcp7010 in lenny (http://www.linuxquestions.org/questions/debian-26/cups-problems-with-brother-dcp7010-in-lenny-783705/)

ericdanc 01-21-2010 05:03 AM

CUPS problems with brother dcp7010 in lenny
 
installed lenny and am trying to install brother dcp7010 again:

1) i can't start CUPS server with /etc/init.d/cups restart
"file not found", there is a cups@ link in /etc/init.d.

2) when i install dcp7010 cupswrapper
dpkg -i cupswrapperDCP7010-2.0.1-2.i386.de
it ends with
" lpinfo: Verbindung zum Server nicht möglich: Verbindungsaufbau abgelehnt
lpadmin: Verbindung zum Server nicht möglich: Verbindungsaufbau abgelehnt"
(connection to server not possible, refused)

3)http://localhost:631 doesn't work.

4)foomatic-gui can't find the installed dcp7010 lpr-driver
brdcp7010lpr-2.0.1-1.i386.deb, (a couple of days ago it did)

This is frustrating because it worked in etch and worked for awhile in lenny. The dcp7010-scanner does work.

EricTRA 01-21-2010 05:09 AM

Hello,

Where does the cups link point to? Can you confirm that the cups server is not running with
Code:

ps -ef | grep cups
and where it is installed with:
Code:

whereis cups
All the times I installed CUPS on Debian servers, the startup script got created without problems in /etc/init.d/. If you have CUPS installed in the same (default) place I'd be happy to post the startup script here if that helps you out.

Kind regards,

Eric

ericdanc 01-21-2010 06:58 AM

c# ls -l /etc/init.d/cups
lrwxrwxrwx 1 root root 18 21. Jan 09:52 /etc/init.d/cups -> /etc/init.d/cupsys

but

# li /etc/init.d/cupsys
ls: Zugriff auf /etc/init.d/cupsys nicht möglich: Datei oder Verzeichnis nicht gefunden
(no such file)

i did the link, it worked in etch and at first in lenny.

# ps -ef | grep cups
root 3303 3239 0 13:52 pts/1 00:00:00 grep cups

c# whereis cups
cups: /etc/cups /usr/lib/cups /usr/include/cups /usr/share/cups

Ok, please post your script, Eric. Maybe i should reinstall CUPS? I tried, but no effect. CUPS is screwed up somehow...

On other PC here, same lenny install, CUPS seems to be ok.

EricTRA 01-21-2010 07:10 AM

Hello,

Did you remove CUPS before trying the install again? That would be the cleanest option. Anyway, I'm attaching my cups init script. Copy it to your server, rename it to delete the txt extension, and set the permissions like this:
Code:

-rwxr-xr-x  1 root root  2526 2009-05-25 16:43 cups
Then try to start CUPS using the startup script. If that doesn't work, uninstall CUPS (with the purge option to delete all configs) and try reinstalling from scratch.

Kind regards,

Eric

ericdanc 01-21-2010 07:20 AM

dpkg -r --purge cups ??

ericdanc 01-21-2010 07:22 AM

c# dpkg --purge cups
dpkg: Abhängigkeitsprobleme verhindern Entfernen von cups:
hplip hängt ab von cups (>= 1.1.20).
cupsys hängt ab von cups.
dpkg: Fehler beim Bearbeiten von cups (--purge):
Abhängigkeitsprobleme - entferne nicht
Fehler traten auf beim Bearbeiten von:
cups

ericdanc 01-21-2010 07:23 AM

aptitude remove cups
ok

ericdanc 01-21-2010 07:24 AM

now what?
aptitude install cups ?

ericdanc 01-21-2010 07:32 AM

apt-get install cupsys cupsys-bsd a2ps foomatic-bin foomatic-filters-ppds

EricTRA 01-21-2010 09:38 AM

Hi,

Sorry, I was busy for some time at work and didn't have the possibility to answer. At what point are you now? Were you able to uninstall CUPS? For installing just:
Code:

apt-get install cups
should do the trick. Apt should take care of all dependencies.

Kind regards,

Eric

ericdanc 01-21-2010 11:32 AM

i did:
#aptitude remove cups
#apt-get install cupsys cupsys-bsd a2ps foomatic-bin foomatic-filters-ppds

but cups script still not there. i copied cups fom my other PC. now,
http://localhost:631 works

and

# /etc/init.d/cups restart
Restarting Common Unix Printing System: cupsd.

thanks, i'll try to get the printer installed now...

Eric
yesterday we were at the abyss. today we're one step further.

EricTRA 01-21-2010 11:37 AM

Hello,

It's always good practice to stick with one package manager to avoid confusion. I always use apt. If you're used to working with aptitude then you should use it also to install your applications. That way you'll always have package manager that's aware of everything. If you switch between them, tracks might get lost, resulting in the strangest errors.

Great if you got it working, let's hope all functions are available. I hope that by one step further you don't mean more down into the abyss :)

Kind regards,

Eric

ericdanc 01-21-2010 11:56 AM

[QUOTE=EricTRA;3835280]Hello,

It's always good practice to stick with one package manager to avoid confusion. I always use apt. If you're used to working with aptitude then you should use it also to install your applications. That way you'll always have package manager that's aware of everything. If you switch between them, tracks might get lost, resulting in the strangest errors.

Great if you got it working, let's hope all functions are available. I hope that by one step further you don't mean more down into the abyss :)
--------------------
just added printer thru the CUPS-GUI and scanner still works.

You're right, i like aptitude the best, but in the hectic...

One last question, how does one "thank" someone here?

eric

EricTRA 01-21-2010 12:00 PM

Hi,

That's good news that you got it working. You can thank someone by clicking on the Thanks button on the post in question. You can also indicate if a particular post has been helpful by indicating so next to the question under the Thanks button.

If you consider your problem/question solved then please mark it as such using the Thread Tools.

Kind regards,

Eric


All times are GMT -5. The time now is 06:55 AM.