Problem setting up HP wi-fi printer in Ubuntu 16.04 LTS

just today I bought a wi-fi HP printer (model is Laserjet Pro M107w but I guess it’s not that important) and I wasn’t even able to finish setting it up.

At first the problem was that my laptop didn’t recognize the printer, even when connected to it via USB. But when trying to fix the issue by searching on the internet I made it even worse! I read several threads here on AskUbuntu and mainly did what was explained here How to install latest HPLIP on my Ubuntu to support my HP printer and/or scanner?.

I got to the part where I should install the plugin but then I got an error:

file does not match its checksum. File may have been corrupted or altered 

But also now, I can’t even find the printer setup with GUI. And when I try to open it via terminal with the command hp-setup I get:

error: Unable to locate models.dat file  HP Linux Imaging and Printing System (ver. 0.0.0) Printer/Fax Setup Utility ver. 9.0  Copyright (c) 2001-15 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.  (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)   Using connection type: usb  error: No device selected/specified or that supports this functionality. 

And when I check the hp directory in etc folder, it’s empty…

Anyways… Any clues will be greatly appreciated. Tell me if you need some logs or any other information. Thanks!

Have to restart printer spooling evertime I prrint

Okay, I sincerely apologize if this is the incorrect area to be asking this question, but I’ve searched high and low on the stackexchange lists for an area that best suits this topic. This area seems to be the best “fit”, so here goes:

My printer was working fine via wireless printer up until about 4 weeks ago. I ended having to wipe, and start my computer over from scratch. After doing a clean install of windows, the printer was working for a while, but now every time I go to print anything, my printer acts as if it is going to print something, but doesn’t. On the screen it will say “Processing… Please wait momentarily.” but never actually prints anything. It only prints something once I restart my printer spooling services.

I thought maybe it was something to do with my wireless connection from my computer to my printer, so I removed the printer from my printer/devices from the settings on my computer, and then tried to reinstall the drivers via the CD that came with my printer. That didn’t work. I then tried to use a hard connection by hooking the printer directly via a USB cable. I still run into the same issue.

If you guys have any ideas/suggestions, please for the love of god let me know. I am at my wits end with this thing. Here are my specs:

OS Name Microsoft Windows 10 Pro     Version 10.0.17763 Build 17763   OS Manufacturer Microsoft Corporation    System Type x64-based PC     Processor   AMD Ryzen 7 1700X Eight-Core Processor, 3400 Mhz, 8 Core(s), 16 Logical Processor(s)     BIOS Version/Date   American Megatrends Inc. P3.00, 7/10/2017    SMBIOS Version  3.0  Embedded Controller Version 255.255  BIOS Mode   Legacy   BaseBoard Manufacturer  ASRock   BaseBoard Product   X370 Taichi  BaseBoard Version        Installed Physical Memory (RAM) 16.0 GB  Total Physical Memory   15.9 GB  Available Physical Memory   10.9 GB  Total Virtual Memory    18.3 GB  Available Virtual Memory    8.38 GB  
Printer: Canon MX922 

Virus from a printer kiosk?

I encountered a puzzling situation the other day when I plugged in a USB flash drive. Windows defender displayed an alert saying that a threat had been quarantined, specifically the Jenxcus VBS virus. This is especially alarming given the preceding events. This flash drive is one I have had for a while but was empty. I then put some PDFs onto it, and succeeded in running down to my local Staples and printing at one of their printing kiosks, which you use by plugging in a USB drive. As far as I can remember, since then and until now, the drive has not been plugged into another machine. Now, all of a sudden, it has been infected by a virus. So, my question is, could the flash drive possibly have been infected by being plugged into the Staples printer?

My reasoning so far is that the drive couldn’t have been infected before going to print, because this virus seems to overwrite every file on the infected drive with a shortcut pointing to the VBS malware. I was able to print my files just fine, which I wouldn’t have been able to do if that were the case, presumably. Also, the only compromised files the Defender report listed were those on the flash drive themselves. I have since run a virus scan (Malwarebytes) which detected nothing. I also checked the registry values which the Microsoft page claims are changed by this virus, and they don’t seem to have been manipulated at all. I have since disposed of the drive. So again, should I be worried at all that I have a virus somewhere? Or is possible that the virus came from the printer? I’ve always thought that was pretty impossible, but I’m puzzled.

Q: How to fix printer trouble

I have a ink jet printer named ‘epson pm-a890’ connected directly via usb.

Ubuntu 19.04 automatically found the printer and configured it.


Name: PM-A890
Description: EPSON PM-A890
Driver: Current – EPson PM A890 – CUPS+Gutenprint v5.3.1

But when I start to print something, the printer prints nothing and it ejects all of the papers. I can’t print anything from ubuntu at all. Even test page cant be printed. ubuntu drives the printer eject all of the paper…

On the other hands, Windows 10 can print without any problems via usb.

How to fix the trouble? Where should I check?

add printer: no printer found at its address

since a few days I’m reading a lot of questions on askubuntu (here, here, or here for instance) and try to fix my printer problem. However, I cannot find a solution.

I would love to connect the printer with my ubuntu 18.04 machine using wifi. My computer and the printer are properly connected to the same wlan. However, if I click ‘add printer’ in the settings, the printer is not found.

From the front panel of the printer I can print its ip address. However, if I ping the address from my ubuntu 18.04 machine the destination is unreachable. If I add a new printer by specifying the host address (which is the ip of the printer), I receive the message: “No printer was found at that address”.

Publishing shared printers on my network and printing from the internet is enabled.

I appreciate every suggestion and can provide any additional information needed. Feel free to ask.


P.S. I don’t know if its relevant but I already installed the same printer model (EPSON ET-2750) on my machine at a different place with different wlan without problems using the ‘add printer’ button. Because I was so satisfied, I now got the same printer for myself. Could it be that the information from the old printer hinder the new installation?

Installing HPLIP printer driver in 19.04

Product: CP1025NW

Operating System: Ubuntu 19.04 Fresh Install

This is a duplicate of a post I put on the HP forum as well.

The built-in drivers from Ubuntu failed to make my color laser printer even flicker, and trying to install drivers from the HP site gives:

“If you need to download Linux drivers, you will be directed to a website that is outside HP Customer Support.”

I don’t know why HP won’t provide their own drivers on their own site like they do for windows users, but whatever.

The driver (hplip 3.19.8) from the sourceforge page they send you to is tragically bad, and I have wasted more hours trying to get it to work than I care to admit. A sane person would have already returned the printer.

However… I was finally able to make progress today, and as I am finding scores of posts online about this same issue, I have decided to post my sort-of-working solution. Perhaps someone smarter than I can finish what I have started; the following at least makes it possible to get some level of functionality.

Side note – Plugging the printer into a Windows machine at work proved that the printer itself works perfectly. 10 minutes from start to finish, including setting up wireless printing. It would have taken less time, but I wasn’t aware it was already done, and I spent a couple of minutes trying to “finish” setting it up before realizing there was nothing else needed… it just worked..

First step, which in hindsight is likely unnecessary: Do a full wipe and re-install Ubuntu 19.04. This was my nuclear option; nothing else had worked at all, and I fully believed there was some other issue on my system preventing the printer from working. As I said, this step is likely unnecessary.

Second step, also likely unnecessary, but again… it is what I did after coming to the conclusion that somehow the new driver had screwed up something on the printer, so it may be necessary, maybe not: Factory reset your printer. In my case, this is done by Unplugging the printer from the wall for a minimum of 30 seconds. Then plug it in, then hold down the “reset” button on the printer (On mine it looks like a little folded-over piece of paper with an arrow on it.) While holding it down, press and release the power button. Keep holding down the reset button while the printer powers up, it takes about 10-15 seconds. When the yellow/orange triangle+exclamation point light turns on steadily, release the reset button. Wait a few minutes until it is done making noise. You are now factory reset. (Some models say that you have to hold down the reset AND the cancel buttons, yours may be different) You can plug the printer into your computer via the USB connection at this point as well.

Then… and as far as I have been able to figure out, the remaining steps are necessary.

Launch a terminal window. I simply use Ctrl+Alt+T, but you can also find it in the launcher menu under “Terminal.”

In the terminal window, type (or copy-paste) the following (all on one line:)

sudo apt-get purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds libsane-hpaio printer-driver-hpcups printer-driver-hpijsA 

This will remove almost all of the leftover drivers and droppings from any previous installs or failed attempts.


sudo rm -rf /usr/share/hplip/ 

will remove the rest of them.


sudo apt-get autoremove 

will get rid of anything that wasn’t removed in the previous steps, or that is no longer required now that the previous drivers have been released.

At this point, it’s a good idea to do:

sudo apt update 


sudo apt upgrade 

then reboot; repeat the previous update to ensure no new updates are available. This just ensures there isn’t some random outdated file that it needs

Then, return to a terminal window if you rebooted.


sudo apt install libgail-common 

And then

sudo apt install libcanberra-gtk-module 

(I know you can combine commands; I’m just reporting it exactly as I entered it.)

These 2 items constantly showed as missing; for some reason the driver didn’t install them despite being required dependent lib files.

Then do

sudo apt-get install apparmor-utils 


sudo aa-disable /usr/share/hplip/ 

This will disable apparmor’s protection for another necessary file.

The driver requires this additional file, from another totally different source, but their keyserver is borked and won’t authenticate the additional file. Disabling apparmor’s protection is the only way I could get it to allow installing this file properly.

Now do:

sudo apt install hplip 


sudo apt install hplip-gui 

This will install the latest drivers from the Ubuntu archives.

After they install, do:

hp-setup -g &> ~/hp-setup.log 

This will run the setup program – note that even though this is all done through terminal, it will still launch a gui. I know.

Go through all of the steps; it will fail with errors… or it might succeed, but still with errors.

Close the installer, then in terminal do:

cat ~/hp-setup.log | grep "file is not present" 

This will return a potentially huge list of “missing” files. They are not actually missing, but the driver does not look in the proper place to find them.

To locate the correct location, do:


(I chose that file at random from the list of ‘missing’ files, but it gives the correct path to find the actual locations.)

Note the path to find those files, then create a link to those files by doing:

sudo ln -s /usr/lib /usr/lib/i386-linux-gnu 


sudo ln -s /usr/lib64 /usr/lib64/x86_64-linux-gnu 

Thiss will let the driver keep looking in the wrong places, by pointing it to the actual places.

Then repeat the commands:

hp-setup -g &> ~/hp-setup.log 


cat ~/hp-setup.log | grep "file is not present" 

and make certain there are no further “missing” files identified.

Then, do:

sudo chmod 644 /etc/cups/ppd 

For some reason, the installation script doesn’t grant the correct permission to install everything properly. This step might could be done earlier, but I didn’t feel like starting completely over yet again just to see.

Then, to verify the whole thing was successful, do:


This will return an interesting report:

warning: ubuntu-19.04 version is not supported. Using ubuntu-18.10 versions dependencies to verify and install…

warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 19.04 version

No errors or warnings.

Yes – I got multiple warnings, but it returned that there were no errors or warnings. I don’t know what to make of that at all, nor how to correct it.

It’s a good idea to reboot at this point, just to make certain everything is playing nice from a fresh boot.

Then, do:


You can also do this from the HP app that is installed; I do it from terminal to watch for more errors and such. It really doesn’t return anything useful though.

Wait a while for it to fully populate all of the available actions. For some reason it takes a few minutes to do so, and it also says the printer has “unknown status.”

Try “Print test page” I get a test page, but the quality is crap – it looks like an inkjet printed it on wet paper… which is why I said that this is a “sort-of” solution.

At this point, you should also be able to print from other applications as well. Again – the quality on mine is horrible, but it is at least doing something… which is more that it has done for countless hours of trying to get the futhermucking driver to work. This is probably because of the non-error about it not being compatible with 19.04, but whatever. I’m just thrilled it is doing anything at all.

Also at this point, you can try to get the wireless functionality to work. Another post on here said that after many hours of trying to get theirs to work that the wireless functionality is not available on Linux, which should have prepared me for my experience…

I was not successful; it gets to step 4, waits for the printer to connect to the network, and then just hangs. I’ve let it sit and spin 8 or 10 times, for as long as 45 minutes, but it just stops. As I said, perhaps someone smarter than I will be able to figure out the rest of the steps necessary to make this thing work.

This is all the things I know, I hope it gets you pointed in the right direction.

I am fully aware that manually doing chmod in the etc folder is a bad bad bad practice, but that’s what it took.

I am also aware that manually bypassing apparmor is also a no-no of epic proportion, but again… nothing else has worked at all.

Best of luck.

Ubuntu Printer disconnect

Today I installed Ububuntu 18.04 LTS on my system and everything worked fine, until I pluged in / installed my printer. When Im scanning more than 2 sheets of paper it suddenly disconnects from my pc and then reconnects so that my scan proccess is aborting. I dont know why its happening but it does. This problem doesnt occur when im using the drivers from the webite but then ubuntu reinstalls the printer everytime im plugging it in (1. printer= printer with driver 2. printer= printer with non working driver). Is there any way to fix this? Is it possible to somehow disable autodetect / autoinstall printers? If you want you can also have log files.