我正在尝试让我的打印机在 18.04LTS 上运行。
我有一个旧的激光打印机 1018和一个新的laserjet pro M15a。两者都不起作用,1018 在 12.04TLS 下工作。打印机被识别,但作业仍处于“停止”状态。从现在开始,我将只讨论新打印机,这也是我提问的重点。
到处谷歌搜索,现在我正试图跟进这些说明来自 launchpad.net 上的 HPLIP。
$ sudo apt-get update
Err:12 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
然后:
$sudo apt-get --allow-unauthenticated=yes --allow-insecure-repositories=yes update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Hit:2 http://it.archive.ubuntu.com/ubuntu bionic InRelease
Ign:3 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic InRelease
Hit:4 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:6 https://dl.yarnpkg.com/debian stable InRelease
Hit:7 http://ppa.launchpad.net/linrunner/tlp/ubuntu bionic InRelease
Hit:8 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:9 http://ppa.launchpad.net/phoerious/keepassxc/ubuntu bionic InRelease
Hit:10 http://ppa.launchpad.net/rael-gc/rvm/ubuntu bionic InRelease
Hit:11 https://download.sublimetext.com apt/stable/ InRelease
Ign:12 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic Release
Ign:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Ign:24 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all c-n-f Metadata
Ign:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Ign:24 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all c-n-f Metadata
Ign:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Ign:24 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all c-n-f Metadata
Ign:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Ign:24 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all c-n-f Metadata
Ign:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Ign:24 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all c-n-f Metadata
Ign:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Ign:24 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all c-n-f Metadata
Err:13 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main i386 Packages
404 Not Found [IP: 91.189.95.83 80]
Ign:14 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 Packages
Ign:15 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all Packages
Ign:16 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-it
Ign:17 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en
Ign:18 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main Translation-en_GB
Ign:19 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 DEP-11 Metadata
Ign:20 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main all DEP-11 Metadata
Ign:21 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 48x48 Icons
Ign:22 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main DEP-11 64x64 Icons
Ign:23 http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic/main amd64 c-n-f Metadata
Fetched 83,2 kB in 12s (7.222 B/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/hplip-isv/ppa/ubuntu bionic Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/hplip-isv/ppa/ubuntu/dists/bionic/main/binary-i386/Packages 404 Not Found [IP: 91.189.95.83 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
然后:
$ sudo hp-setup -i
...
Using connection type: usb
error: No device selected/specified or that supports this functionality.
我尝试了常规的重新安装、电源循环、清理等操作,但现在我陷入了困境。我甚至更换了 USB 电缆,但毫无作用。
注意:打印机实际上被自动识别为不同的版本,甚至名称也与我拥有的版本不同。我的版本不在可用驱动程序列表中,但我拥有的版本是推荐的选项。请参阅附图。
有人能给我指出正确的方向吗?
答案1
我下载并运行文件/命令:
sh hplip-3.19.5.run
来自网站:
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
然后按照以下说明进行操作:
https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index
并且它有效。
随后我删除了以下与扫描仪相关的程序,即:
sudo -H pip2 uninstall pip tesserocr opencv-python PyPDF2 imutils pypdfocr scikit-image scikit-image
sudo apt autoremove python-pip libleptonica-dev tesseract-ocr libtesseract-dev tesseract-ocr-all libzbar-dev python-zbar
所以尝试一下... :-)
答案2
你做错了。通常 HP 打印机对 GNU/Linux 有很好的支持。
Ubuntu 18.04 LTS 已经拥有hplip-gui 版本 3.17.10。
首先你需要删除ppa:hplip-isv/ppa
没有bionic软件包的:
sudo add-apt-repository -r ppa:hplip-isv/ppa
sudo apt-get update
sudo apt-get install hplip-gui
你的两台打印机在 HPLIP 中受支持- 自 2.7.10 起为 1018,自 3.18.4 起为 M15a。两种打印机需要专有驱动插件上班。
简而言之,您需要先运行,hp-setup
然后执行hp-plugin
。