LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-04-2009, 06:47 PM   #1
daniell
Member
 
Registered: Jul 2008
Posts: 152

Rep: Reputation: 15
Installing Driver for HP Laserjet 1020


I accidentally deleted the printer driver for the above printer.I forgot how to re-install it. Can someone explain to me how to do it.
Ubuntu 9.04

Thanks
 
Old 07-04-2009, 06:51 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
You need to
Code:
sudo apt-get install hplip
See also http://www.linuxprinting.org/show_pr...-LaserJet_1020
 
Old 07-04-2009, 07:16 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Did you delete the printer driver or the print queue The latter is a common name for what gets set up when you "install a printer" to an OS. To actually delete the driver file would take a bit of digging.

Have you tried installing the printer using the Ubuntu utility or the web interface? (http://localhost:631)
 
Old 07-05-2009, 06:22 AM   #4
daniell
Member
 
Registered: Jul 2008
Posts: 152

Original Poster
Rep: Reputation: 15
Printer Drivers

What next?

daniel@daniel-desktop:~$ sudo apt-get install hplip
Reading package lists... Done
Building dependency tree
Reading state information... Done
hplip is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.28-11-generic linux-headers-2.6.28-11
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
daniel@daniel-desktop:~$
 
Old 07-05-2009, 07:00 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
What happens when you run hp-setup (in a terminal, as your user)? Post up any errors you see.
 
Old 07-05-2009, 09:37 AM   #6
daniell
Member
 
Registered: Jul 2008
Posts: 152

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XavierP View Post
What happens when you run hp-setup (in a terminal, as your user)? Post up any errors you see.
daniel@daniel-desktop:~$ hp-setup

HP Linux Imaging and Printing System (ver. 3.9.2)
Printer/Fax Setup Utility ver. 8.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.
daniel@daniel-desktop:~$
 
Old 07-05-2009, 10:17 AM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
It looks as though you need to run "hp-setup --qt3" as it natively looks for QT4. If you aren't using KDE4, you won't have it.
 
Old 07-05-2009, 10:21 AM   #8
daniell
Member
 
Registered: Jul 2008
Posts: 152

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XavierP View Post
It looks as though you need to run "hp-setup --qt3" as it natively looks for QT4. If you aren't using KDE4, you won't have it.
How do I do that?
 
Old 07-05-2009, 10:21 AM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Open a terminal and type in
Code:
hp-setup --qt3
 
Old 07-05-2009, 10:35 AM   #10
daniell
Member
 
Registered: Jul 2008
Posts: 152

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XavierP View Post
Open a terminal and type in
Code:
hp-setup --qt3
USB, automatic: $ hp-setup -i --auto 001:002
Parallel, $ hp-setup -i -a -x /dev/parport0
automatic, no
testpage:
Parallel, choose $ hp-setup -i -b par
device:

Notes:
1. If no serial number, USB ID, IP, or device node is specified, the USB and parallel busses will be probed for devices.
2. Using 'lsusb' to obtain USB IDs: (example)
$ lsusb
Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard
$ hp-setup --auto 003:011
(Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.)
3. Parameters -a, -f, -p, or -t are not valid in GUI (-u) mode.

See Also:
hp-makeuri
hp-probe

error: option --qt3 not recognized
daniel@daniel-desktop:~$
 
Old 07-05-2009, 12:06 PM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
How did you uninstall the printer?
 
Old 07-05-2009, 02:16 PM   #12
daniell
Member
 
Registered: Jul 2008
Posts: 152

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by XavierP View Post
How did you uninstall the printer?
I deleted the box that said hp1020

Forgive me I don't know all of the terminology.
 
Old 07-05-2009, 03:29 PM   #13
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Sounds as though you have removed the print queue rather than the whole printer. Follow these instructions to add the queue back http://ubuntuguide.org/wiki/Ubuntu:Jaunty#Printers and see also http://wiki.ubuntu-za.org/HowTo:Printers and https://help.ubuntu.com/community/Printers (this will give more info on HP printers).
 
Old 07-05-2009, 04:03 PM   #14
daniell
Member
 
Registered: Jul 2008
Posts: 152

Original Poster
Rep: Reputation: 15
Detected Printer

Ubuntu detected my printer, but the printer does not function.
 
Old 07-05-2009, 04:35 PM   #15
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Do you get any errors? Have you looked at http://localhost/:631 and what happens when you try to set up the printer using the Gnome system admin tools? Post up error messages/screen shots so we can see what's happening.
 
  


Reply


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
hp laserjet 1020 priter is not printing a que after installation service.awandeep LinuxQuestions.org Member Intro 2 08-18-2008 08:23 AM
Laserjet 1020 with Foo2zjs Not Printing sloik2000 Linux - Hardware 4 06-22-2007 10:04 PM
My HP 1020 Laserjet doesn`t work with cups riverplate Linux - Hardware 2 06-04-2007 09:43 PM
on & off printing with HP Laserjet 1020 srtraveler Linux - Hardware 1 05-23-2007 09:30 PM
making hp laserjet 1020 work in suse 10.1 ungua Linux - Hardware 23 03-20-2007 06:13 PM


All times are GMT -5. The time now is 02:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration