LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-13-2005, 05:27 PM   #1
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Rep: Reputation: 16
no printer in debian sarge 2.6 kernel


I followed instructions from deadparrot I found searching this site & that went without errors but a test page produces nothing.

status shows "printer not connected will retry in30 sec,
device URI: parallel:/dev/unknown-parallel0"

the printer is a brother laser hl-5040 & i'm using the recommended driver.
lsmod shows lp, parport,parport_pc loaded

Last edited by Daveb3; 07-13-2005 at 08:14 PM.
 
Old 07-14-2005, 04:24 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Do you have cups installed?
 
Old 07-14-2005, 01:36 PM   #3
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
yes, cups is there. the error msg was from cups status window.
i followed the recs from deadparrot on another thread to install cups with aptitude. I also installed the print server option in the debian base install.
its almost like it cant find the port but i thjink i have all the right modules loaded per lsmod & the printer works in my other distros.
i'll go back in, maybe it just needed a reboot.

more info:
it didnt work on reboot-same msg from cups.
lpq sez 'brotherlaser not ready, no entries'
i do have a /dev/lp0
i dont seem to have lpd installed. do i need it? (locate lpd sez cant find) or is cups supposed to be a replacement? (tho i notice lpr <file> does not give error msg, just doesnt do anything)

even more info:
did some googling & saw tip to change uri to /dev/lp0 (makes sense). did that in /etc/printers.conf & now printer makes noise like its going to print but nothing comes out. Checking jobs show job aborted & trying a restart gives 'client-error-not-possible' msg

trying to do stuff in debian is like pulling teeth. sheesh.

Last edited by Daveb3; 07-14-2005 at 08:43 PM.
 
Old 07-14-2005, 09:30 PM   #4
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
Did you install cupsys-bsd? I had the same problem originally with my HP 932C. I installed cupsys-bsd, and it started working:

#apt-get install cupsys-bsd

When it asks if you want to install it, say yes. Hopefully this will help you the way it did for me.

 
Old 07-15-2005, 12:00 AM   #5
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
it sez cupsys-bsd is already the newest version so guess its installed.

i tried removing/reinstalling printer but ended up with that same idiotic /dev/unknown-parallel thing. changed it back to /dev/lp0 & now am back to it making noise & not printing & aborting jobs.

also tried removing cups with apt-get but that bombed.

what i originally did was:
aptitude --with-recommends install foomatic-bin
stole that from another thread, advice from deadparrot. I get the cups interface & can install/remove/admin printers like crazy just no print output.
 
Old 07-15-2005, 01:44 AM   #6
tompravi
Member
 
Registered: Jun 2004
Posts: 37

Rep: Reputation: 15
kernel-2.4 or kernel-2.6

I had a vary nice experience with my printer when I installed Sarge using kernel-2.4. Everything worked fine. After, I installed kernel-2.6 package, I rebooted and the printer worked fine.
I made an experimental installation. I made a clear installation using kernel-2.6 ( linux26 at the prompt of debian installer ). I could not make my printer to work. Everything configured fine but the prinnter was idle. Even when I installed the package kernel-2.4 and reboot the system with it.
It's an old printer ( HP 710C ).
This is my experience.
 
Old 07-15-2005, 01:32 PM   #7
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
Evidently, I've got bigger problems.
see my 'is apt-get buggy...' post.
 
Old 07-15-2005, 02:47 PM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Have gone through the gui install process: http://localhost:631 and installed the printer with the correct drivers and then done a test print?
 
Old 07-15-2005, 04:31 PM   #9
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
For tompravi and other with HP Deskjet printer problems, follow my instructions found on this link: http://www.hanklambert.com/Tutorial%...s/printer.html

I finally figured out how to get the HP printers working.

Good luck, and let me know if the tutorial helped.

 
Old 07-15-2005, 07:52 PM   #10
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
yes, I went thru the gui localhost:631 (got it bookmarked).

prior to that I did aptitude --with-recommends install foomatic-bin. that installed foomatic, cupsys-bsd & i or 2 other things.

However, now the aptitude gui sez there are broken dependencies with cupsys-bsd, not to mention just about everything else I've install with apt-get, so I'm now looking into that. don't know which one to trust, apt-get or the aptitude gui. Screwy cause I've read that aptitude is just a front end for apt-get.
 
Old 07-16-2005, 01:46 AM   #11
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Try running aptitude --fix-broken install
 
Old 07-16-2005, 08:10 PM   #12
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
Say TigerOC, you sound like an aptitude expert, I'm looking for one of those.
What would tou say about the following situation:

Script started on Sat 16 Jul 2005 11:58:28 AM AKDT

debian:~# aptitude -f install

Reading Package Lists... Done

Building Dependency Tree... 50%

Building Dependency Tree

Reading extended state information... 65%

Reading extended state information

Initializing package states... Done

Reading task descriptions... Done

The following packages have been kept back:
libkrb53
The following NEW packages will be installed:
libevent1 libident libldap-2.2-7 libnfsidmap1 libtasn1-0
The following packages will be REMOVED:
alien apt-listbugs debconf-utils debfoster debhelper deborphan dialog
gawk gnome-audio html2text intltool-debian libdpkg-ruby1.8
libintl-gettext-ruby1.8 librpm4 libruby1.8 libxml-parser-ruby1.8
localepurge mozilla-firefox mozilla-thunderbird po-debconf rpm ruby
ruby1.8
0 packages upgraded, 5 newly installed, 23 to remove and 1 not upgraded.
Need to get 0B/227kB of archives. After unpacking 76.2MB will be freed.
Do you want to continue? [Y/n/?] n
Abort.
debian:~# exit

This sounds rather drastic. Also tho aptitude sez cupsys-bsd is broken & the other pkgs (the ones it wants to remove) have unsatisfied dependencies, a search for broken pkgs in synaptic produces no results.

By the way the --fix-broken switch it didn't recognize but according to --help -f is fix. Maybe different version?
 
Old 07-17-2005, 01:31 AM   #13
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Do an apt-get update and then apt-get dist-upgrade. Sounds like you may have a situation where some packages have lagged behind.
 
Old 07-17-2005, 05:55 PM   #14
tompravi
Member
 
Registered: Jun 2004
Posts: 37

Rep: Reputation: 15
Thank you !

Quote:
Originally posted by Tons of Fun
For tompravi and other with HP Deskjet printer problems, follow my instructions found on this link: http://www.hanklambert.com/Tutorial%...s/printer.html

I finally figured out how to get the HP printers working.

Good luck, and let me know if the tutorial helped.

I'll try a fresh install with kernel-2.6.8 and I'll follow the instructions.
Thank you.
 
Old 07-17-2005, 08:14 PM   #15
Daveb3
Member
 
Registered: Dec 2002
Location: Alaska
Distribution: debian,ubuntu,linuxmint
Posts: 91

Original Poster
Rep: Reputation: 16
TigerOC, I did update & dist-upgrade, all it did was download a library file. So I let aptitude do its thing then reinstalled the programs I wanted with aptitude & now its happy. One question about that however, should I move my cd lines in sources.list from the top of the file to the bottom? or does it matter. I notice 99% of the time when I install something it just asks for the cd.

Anyway I'm back to my nonprinting problem.
I goto localhost:631. print test page, the printer makes the sound like its going to print then stops, no output. I check job status & it sez aborted. I restart & it sez "client-error-not-possible". Heres the last few lines of /var/log/cups...

E [17/Jul/2005:15:24:29 -0800] Unknown directive debug on line 158.
I [17/Jul/2005:15:24:29 -0800] Listening to 0:631
I [17/Jul/2005:15:24:29 -0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [17/Jul/2005:15:24:29 -0800] Configured for up to 100 clients.
I [17/Jul/2005:15:24:29 -0800] Allowing up to 100 client connections per host.
I [17/Jul/2005:15:24:29 -0800] Full reload is required.
I [17/Jul/2005:15:24:31 -0800] LoadPPDs: Read "/etc/cups/ppds.dat", 2748 PPDs...
I [17/Jul/2005:15:24:31 -0800] LoadPPDs: No new or changed PPDs...
I [17/Jul/2005:15:24:32 -0800] Full reload complete.
I [17/Jul/2005:15:25:15 -0800] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=5449)
I [17/Jul/2005:15:25:17 -0800] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=5450)
I [17/Jul/2005:15:25:17 -0800] Adding start banner page "none" to job 8.
I [17/Jul/2005:15:25:17 -0800] Adding end banner page "none" to job 8.
I [17/Jul/2005:15:25:17 -0800] Job 8 queued on 'BrotherLaser' by ''.
I [17/Jul/2005:15:25:17 -0800] Started filter /usr/lib/cups/filter/pstops (PID 5451) for job 8.
I [17/Jul/2005:15:25:17 -0800] Started filter /usr/lib/cups/filter/foomatic-rip (PID 5452) for job 8.
I [17/Jul/2005:15:25:17 -0800] Started backend /usr/lib/cups/backend/parallel (PID 5453) for job 8.
E [17/Jul/2005:15:25:18 -0800] PID 5452 stopped with status 3!
I [17/Jul/2005:15:25:18 -0800] Hint: Try setting the LogLevel to "debug" to find out more.
I [17/Jul/2005:15:25:27 -0800] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=5460)
I [17/Jul/2005:15:25:28 -0800] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=5462)
I [17/Jul/2005:15:25:37 -0800] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=5464)
E [17/Jul/2005:15:25:37 -0800] restart_job: job #8 cannot be restarted - no files!

1st question is on the 1st line. I uncommented the debug line under LogLevel in /etc/cups/cups.conf per the 'hint' in the error log. Is it talking about LogLevel in some other file?

2nd question: when I install the printer in cups it initially sets the device URI to parallel:/dev/unknown-parallel0. I set it back to /dev/lp0 manually. Is that a clue as to where the problem might be? I don't know what to make of it.

Another idea I had was uninstalling the print server package I initally selected with the base install & reinstalling it with aptitude. Any suggestions?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile the new kernel 2.6 on Debian Sarge cccc Debian 7 08-01-2005 07:26 AM
Kernel Installation Under Debian (Sarge) PeaceTank Linux - Software 2 12-05-2004 08:25 PM
No sound on Debian sarge, kernel 2.6.5.1-k7 bruno buys Debian 4 07-12-2004 07:47 PM
Adding printer in Debian Sarge noxious Debian 2 06-28-2004 09:11 PM
Cube + Debian (Sarge, Kernel 2.6.6-k7) Tsumeone Linux - Games 0 06-17-2004 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration