打印机HP Laserjet Pro M15a无法在18.04上运行

我正在尝试使打印机在18.04LTS上工作。

我既有旧的Laserjet 1018,也有新的Laserjet Pro M15a。两者都不工作,1018在12.04TLS下工作。可以识别打印机,但是作业以“已停止”状态保留在队列中。从现在开始,我只会谈论新打印机,这是我的问题的重点。

Google here and there and now I'm trying to follow these instructions from HPLIP on launchpad.net.

$ 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电缆,也无济于事。

注意:打印机实际上会自动识别为其他版本,甚至名称也与我使用的名称不同。可用的驱动程序列表中没有我的版本,但是推荐的选项是我的版本。参见附件。

enter image description here enter image description here

谁能指出我正确的方向?

最佳答案

你做错了。通常,HP打印机在GNU / Linux上具有良好的支持。

Ubuntu 18.04 LTS already has hplip-gui version 3.17.10.

First of all you need to remove the ppa:hplip-isv/ppa, which does not have packages for bionic:

sudo add-apt-repository -r ppa:hplip-isv/ppa
sudo apt-get update 
sudo apt-get install hplip-gui

Both your printers are supported in HPLIP - 1018 since 2.7.10, M15a since 3.18.4. Both printers need proprietary Driver Plug-in to work.

In brief you need to run hp-setup followed by hp-plugin.

评论