Ubuntu 22.04 可以通过 sudo apt install hplip hplip-gui
安装HP打印机支持, 但是这个版本比较低( 3.21.12+dfsg0-1 )
通过hp-setup
启动的界面无法找到局域网中的 HP Smart Tank 596 打印机. 需要下载最新版( 3.25.2 )安装.
首先卸载自带的 hplip hplip-gui
sudo apt remove hplip hplip-gui
sudo apt --purge autoremove
下载最新的 hplip: https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
选择 Ubuntu 后点击 Download HPLIP 会跳转到 Sourceforge 去下载
安装
chmod +x hplip-3.25.2.run
./hplip-3.25.2.run
整个过程要下载很多 python 依赖, 所以会比较慢, 特别是如果不能FQ可能下载过程会中断.
下载完最后编译通过后, 会询问是否要设置打印机, 选择 gui 模式, 在弹出的界面中使用网络查找, 就能找到 HP Smart Tank 596 打印机了.
POST-BUILD COMMANDS
-------------------
OK
HPLIP UPDATE NOTIFICATION
-------------------------
Do you want to check for HPLIP updates?. (y=yes*, n=no) : n
RESTART OR RE-PLUG IS REQUIRED
------------------------------
If you are installing a USB connected printer, and the printer was plugged in when you started this
installer, you will need to either restart your PC or unplug and re-plug in your printer (USB cable
only). If you choose to restart, run this command after restarting: hp-setup (Note: If you are using
a parallel connection, you will have to restart your PC. If you are using network/wireless, you can
ignore and continue).
Restart or re-plug in your printer (r=restart, p=re-plug in*, i=ignore/continue, q=quit) : i
PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
Do you want to setup printer in GUI mode? (u=GUI mode*, i=Interactive mode) : u
RE-STARTING HP_SYSTRAY
----------------------
HP Linux Imaging and Printing System (ver. 3.25.2)
System Tray Status Service ver. 2.0
Ubuntu 24.04
Ubuntu 24.04 自带的 hplip 版本是 3.23.12, 这个版本可以正确查找到局域网中的 HP Smart Tank 596.