LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Driver for HP Laserjet 1020 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-driver-for-hp-laserjet-1020-a-737767/)

daniell 07-04-2009 06:47 PM

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

XavierP 07-04-2009 06:51 PM

You need to
Code:

sudo apt-get install hplip
See also http://www.linuxprinting.org/show_pr...-LaserJet_1020

pixellany 07-04-2009 07:16 PM

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)

daniell 07-05-2009 06:22 AM

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:~$

XavierP 07-05-2009 07:00 AM

What happens when you run hp-setup (in a terminal, as your user)? Post up any errors you see.

daniell 07-05-2009 09:37 AM

Quote:

Originally Posted by XavierP (Post 3597258)
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:~$

XavierP 07-05-2009 10:17 AM

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.

daniell 07-05-2009 10:21 AM

Quote:

Originally Posted by XavierP (Post 3597388)
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?

XavierP 07-05-2009 10:21 AM

Open a terminal and type in
Code:

hp-setup --qt3

daniell 07-05-2009 10:35 AM

Quote:

Originally Posted by XavierP (Post 3597394)
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:~$

XavierP 07-05-2009 12:06 PM

How did you uninstall the printer?

daniell 07-05-2009 02:16 PM

Quote:

Originally Posted by XavierP (Post 3597479)
How did you uninstall the printer?

I deleted the box that said hp1020

Forgive me I don't know all of the terminology.

XavierP 07-05-2009 03:29 PM

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).

daniell 07-05-2009 04:03 PM

Detected Printer
 
Ubuntu detected my printer, but the printer does not function.

XavierP 07-05-2009 04:35 PM

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.


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