我的打印机(hp oj250 mobile)需要 hplip 3.16.8,但是当我在刚安装的 16.04 盒子上安装 hplip-gui 时得到的是 3.16.3。
这是注释中给出的修复依赖关系的命令的响应:
$ sudo apt update&&sudo apt upgrade
[sudo] password for user:
Hit:1 http://ppa.launchpad.net/deluge-team/ppa/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:4 http://www.openprinting.org/download/printdriver/debian lsb3.2 InRelease
Hit:5 http://www.openprinting.org/download/printdriver/debian lsb3.2 Release
Fetched 102 kB in 2s (46.4 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: http://www.openprinting.org/download/printdriver/debian/dists/lsb3.2/Release.gpg: Signature by key F8897B6F00075648E248B7EC24CBF5474CFD1E2F uses weak digest algorithm (SHA1)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
答案1
您可以通过运行来更新 Ubuntu 中已安装的软件包sudo apt update&&sudo apt upgrade
。这将升级到存储库中的最新版本,即3.16.3
您已经拥有的版本。
当您需要比存储库中提供的更新的内容时,您必须转到其他来源,在这种情况下,您可以直接转到 HP。
HP 提供的最新驱动程序位于:
https://developers.hp.com/hp-linux-imaging-and-printing
这是一个永久链接,他们在此提供最新的驱动程序,当前版本为3.17.11
。
运行安装程序后,使用命令apt
修复缺失的依赖项。
$ sudo apt install -f
如果您仍然遇到依赖项问题,请确保您拥有更新的存储库缓存,并且您的库也已更新。您可以使用以下命令执行此操作:
$ sudo apt update
$ sudo apt upgrade
跑过HP 设备管理器(HP 工具箱)从 Ubuntu 启动器。如果它没有自动识别你的打印机,你可能需要应用手动发现通过提供 IP 地址。
手动添加打印机
从 Hp 设备管理器中单击:
(您可能必须hp-setup
从命令行运行才能获得正确的 GUI 界面。)
1) (加号)`+`-> **显示高级选项** -> 2)(勾选)**手动发现** -> (输入打印机的 IP 地址)-> 3) (点击)**下一步** -> (选择所需的打印机)-> 4)(点击)**下一步** 5)按照常规操作GUI
最终结果:
从聊天消息的状态来看,原帖者的 apt 配置中没有任何存储库更新条目。HP 屏幕提到这是先决条件。
缺失的条目为:
deb us.archive.ubuntu.com/ubuntu xenial-updates main restricted
deb us.archive.ubuntu.com/ubuntu xenial-updates universe
deb us.archive.ubuntu.com/ubuntu xenial-updates multiverse