- A+
要卸载Linux下的打印机驱动,需要先查看当前已安装的打印机驱动,根据驱动的类型进行卸载操作。1、首先使用lsusb查看当前系统上可用的USB设备,lsusb返回的信息中包含了打印机驱动的相关信息:
[root@localhost]# lsusb
Bus 003 Device 005: ID 046d:c077 Logitech, Inc. M90/M100 Optical Mouse
Bus 003 Device 003: ID 03f0:5a07 HP, Inc LaserJet 1217
lsusb的结果表明,存在一个HP的 LaserJet 1217的打印机设备;
2、使用hp-setup -i安装打印机驱动:
[root@localhost]# hp-setup -i
HPLinux imaging and printing system (ver. 3.11.10)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-17 HP 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.
Searching...(bus=003, device=003)
Found device HP LaserJet 1217 at 003:003
Device URI: hp:/usb/LaserJet_1217?serial=123456
hp-setup[3010]: info: : Device URI: hp:/usb/LaserJet_1217?serial=123456
Using device : hp:/usb/LaserJet_1217?serial=123456
...
...
...
安装完毕,系统提示安装成功;
3、使用hp-setup -r卸载打印机驱动:
[root@localhost]# hp-setup -r
HP Linux Imaging and Printing System (ver. 3.11.10)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-17 HP 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.
Removing Device URI: hp:/usb/LaserJet_1217?serial=123456
hp-setup[12217]: info: : Removed device HP LaserJet 1217 at 003:003
...
...
...
卸载完毕,系统提示卸载成功;
4、如果想更深入地查看已安装的打印机驱动,也可以使用lpinfo查看:
[root@localhost]# lpinfo -v
Direct-USB:/dev/usb/lp0 HP LaserJet 1217
network lpd://192.168.0.1 HP LaserJet 4100
lpinfo查看到的结果就是已经安装的打印机驱动,可以根据其中的信息定位打印机,然后用hp-setup -r来卸载它。
总的来说,要卸载Linux下的打印机驱动,需要先查看当前已安装的打印机驱动,然后用hp-setup -r来卸载它。此外,还可以使用lpinfo查看当前安装的打印机驱动,便于定位要卸载的设备。
- 在线微信客服
- 加18915735256 在线装驱动
- 我的微信公众号
- 我的微信公众号扫一扫