Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-20-2017, 09:09 AM   #1
LQ Newbie
Registered: Nov 2017
Location: india
Posts: 8

Rep: Reputation: Disabled
Smile Cups not printing in HPdeskjet printer


I am new to cups package. I am facing some issue while trying to print from cups to printer. The file/document is not printing on printer, but it's keep on showing "printing..." message in printer screen.

I have listed my followed steps below.

# lpinfo -v
network lpd
network http
network socket
direct usb://HP/DeskJet%203830%20series?serial=CN76R3Q3J0067X&interface=1
network ipp

# lpinfo -m
drv:///sample.drv/dymo.ppd Dymo Label Printer
drv:///sample.drv/epson9.ppd Epson 9-Pin Series
drv:///sample.drv/epson24.ppd Epson 24-Pin Series
drv:///sample.drv/generpcl.ppd Generic PCL Laser Printer
drv:///sample.drv/generic.ppd Generic PostScript Printer
drv:///sample.drv/deskjet.ppd HP DeskJet Series
drv:///sample.drv/laserjet.ppd HP LaserJet Series PCL 4/5
drv:///sample.drv/intelbar.ppd Intellitech IntelliBar Label Printer, 2.1
drv:///sample.drv/okidata9.ppd Oki 9-Pin Series
drv:///sample.drv/okidat24.ppd Oki 24-Pin Series
raw Raw Queue
drv:///sample.drv/zebracpl.ppd Zebra CPCL Label Printer
drv:///sample.drv/zebraep1.ppd Zebra EPL1 Label Printer
drv:///sample.drv/zebraep2.ppd Zebra EPL2 Label Printer
drv:///sample.drv/zebra.ppd Zebra ZPL Label Printer

# ppdc -v -d /usr/share/cups/model /usr/share/cups/drv/sample.drv

# lpadmin -p HPDeskJet -E -v "usb://HP/DeskJet%203830%20series?serial=CN76R3Q3J0067X&interface=1" -m deskjet.ppd

# lpoptions -d HPDeskJet
copies=1 device-uri=usb://HP/DeskJet%203830%20series?serial=CN76R3Q3J0067X&interface=1 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-t

# lpoptions -p HPDeskJet -l
PageSize/Media Size: Card3x5 Card4x6 Photo3x5 Photo3x5.FB Photo4x6 Photo4x6.FB A6 A6.FB Hagaki Hagaki.FB Photo5x7 Photo5x7.FB Card5x8 Card5x8.FB A5 A5.FB Oufuku Oufuku.FB 8.5x13 B5 JB5 JB5.FB Executive Letter Le5
ColorModel/Output Mode: *RGB CMYGray KGray
MediaType/Media Type: *Plain Glossy CoatedBrochure CoatedMatte BrochureGlosy FastGlossy Coated Brochure
OutputMode/Print Quality: *Normal FastDraft Best Photo
InputSlot/Media Source: *Upper

# lpoptions -p HPDeskJet -o PageSize=A4

# lpstat -s
system default destination: HPDeskJet
device for HPDeskJet: usb://HP/DeskJet%203830%20series?serial=CN76R3Q3J0067X&interface=1
# lpstat -p HPDeskJet
printer HPDeskJet is idle. enabled since Mon Jan 1 00:45:31 2007

#cupsenable HPDeskJet

#cupsaccept HPDeskJet


# lp hello.txt
request id is HPDeskJet-23 (1 file(s)) // BUT not printing anything on printer..

# lp -oraw ./hello.txt
request id is HPDeskJet-26 (1 file(s)) // Displaying printing on printer but not printing..

Old 11-20-2017, 09:20 AM   #2
LQ Newbie
Registered: Jul 2016
Location: Manassas Virginia USA
Distribution: Manjaro KDE
Posts: 23

Rep: Reputation: Disabled
can't speak to cups but had similiar problems with my hp deskjet 3522 and laserjet p1505n. i ran hpsetup which solved the problem.
Old 11-20-2017, 10:02 AM   #3
Registered: Aug 2002
Posts: 21,621

Rep: Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187Reputation: 4187
Welcome to LinuxQuestions.

Please post distribution/version running and the model number of your printer. Newer models require a plugin which is installed using the hp-setup utility. Depending on which distribution/version running you might need to install the latest version of hplip to support your printer.

Last edited by michaelk; 11-20-2017 at 10:10 AM.
Old 11-20-2017, 10:49 PM   #4
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
You don't mention the distro you are using nor how you installed cups, etc. So, if you have not done so I would recommend downloading the latest HPLIP installer from HP. Remove or attempt to remove the currently installed version. I suggest this because I use Mint and, like Ubuntu, the one they install seems to be limited at best, broken at worst. Removing it and installing the one from HP seems to fix whatever problem there is with that. Once it is installed, the last thing it offers to do is setup printers. Either do so, or quit and as others have suggested run hp-setup and install your printer. It should then work. Of course there is always Murphy, but this procedure always works for me. One of the things the installer does is install a version of cups which, I understand, in turn installs its own version of lp/lpr.
1 members found this post helpful.
Old 11-23-2017, 11:14 PM   #5
LQ Newbie
Registered: Nov 2017
Location: india
Posts: 8

Original Poster
Rep: Reputation: Disabled

This issue is solved after cross compiling the HPLIP source for my arm platform and used those binaries in my RFS.

Thanks for everyone suggestion.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] CUPS: Printer not printing evilmonkey Linux - Server 3 08-18-2018 09:36 AM
Continous printing with CUPS thermal printer (GeBE USB Printer N78) ThaRez Linux - Hardware 0 04-15-2014 03:44 PM
cups to cups printing through network on usb printer checkmate3001 Linux - Server 2 02-16-2009 12:12 PM
HPDESKJET Printer 940c flyingeagle Mandriva 2 01-15-2007 09:19 PM
Printing on Winxp Printer via cups gotmonkey Slackware 10 11-30-2004 01:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 AM.

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