Printing – How do I install HPLIP 3.16.2 on Ubuntu 14.04?

I had HPLIP 3.14 installed on my Ubuntu 14.04 and it worked fine. Then I switched the printer to an HP Deskjet 3639 and I can no longer set it up.

I would need HPLIP 3.16.2 to support the printer, but I cannot install it. The installation always ends with the message that python3-pyqt4 (including dependencies) is missing and must be installed manually. But it is already installed.

So, what's up? Is there any way to use the printer?

Driver – HPLIP does not recognize HP 107a

I have an HP Laserjet 107a and since it is not recognized on Ubuntu 18.04, I installed the latest version of hplip from the HP website.

As can be seen in the Ubuntus manual, the lsusb shows:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 001 Device 013: ID 03f0:e82a Hewlett-Packard 
Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But the command hp-makeuri 03f0:e82a does not generate the correct URL for my printer:

HP Linux Imaging and Printing System (ver. 3.19.12)
Device URI Creation Utility ver. 5.0

Copyright (c) 2001-18 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.

error: Device not found

With the system settings I can add my printer:
Enter image description here

Although I can't print a PDF or document in libreoffice that shows the following error:

Enter image description here

In addition, HP Device Manager cannot add my printer (HPLIP 3.19.12):

Enter image description here

Do you have an idea why?

No light is displayed even with the Propriatery driver offered by HP.

How to remove old HPLIP in Ubuntu Mate 18.04

I need a working HP15w laser printer with Ubuntu-Mate 18.04 LTS (HPLIP version 3.17.10 included).
According to the HP site, HP15w is supported as of hplip 3.18+.
I found this guide, but surprisingly it turned out that the hplip package has dependencies on the entire desktop:

sudo apt purge hplip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  hplip* printer-driver-postscript-hp* ubuntu-mate-core* ubuntu-mate-desktop*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 2,847 kB disk space will be freed.

I only interpret something wrong? Or will the installer remove the entire GUI from this computer?
We bought this printer a month ago and really need to get it up and running.

To install the HP printer (hplip) in Ubuntu 18.04

There are thousands of tutorials on the internet. Here is something:

To install the HP printer in Ubuntu 18.04

HPLIP 3.18.12 Released with Ubuntu 18.04 64-bit Support

HPLIP 3.18.4 Released with Ubuntu 18.04 Support

How do I install the latest HPLIP on my Ubuntu to support my HP printer and / or scanner?

Everyone recommends cleaning up, uninstalling, downloading, and manually creating drivers in several ways. Which of them should I follow?

Installing the HPLIP printer driver in 19.04

Product: CP1025NW

Operating System: Ubuntu 19.04 Fresh Install

This is a duplicate of a post that I have also posted in the HP forum.

With Ubuntu's built-in drivers, my color laser printer could not even flicker, and trying to install drivers from the HP site results in:

"If you need to download Linux drivers, you will be directed to a Web site that is outside of HP Customer Support."

I do not know why HP does not provide its own drivers on its own site, as Windows users do, but whatever.

The driver (hplip 3.19.8) from the SourceForge site you sent it to is tragically bad, and I spent more hours getting it up and running than I'd like to admit. A reasonable person would have already returned the printer.

But … I was finally able to make progress today, and since I find countless contributions to this problem online, I have decided to publish my working solution. Maybe someone cleverer than me can finish what I started. The following makes it at least possible to obtain a certain degree of functionality.

Side Note – Connecting the printer to a Windows computer at work has proven that the printer itself is working properly. 10 minutes from start to finish, including the setup of wireless printing. It would have taken less time, but I did not know it was already done, and spent a few minutes finishing it before I realized that nothing else was needed … it just worked.

First step, which is probably unnecessary in retrospect: Perform a complete erase and reinstall Ubuntu 19.04. This was my nuclear option; Otherwise, nothing worked, and I was convinced there was another problem on my system that prevented the printer from functioning. As I said, this step is probably unnecessary.

Second step, probably unnecessary, but again … I came to the conclusion that the new driver has somehow broken the printer. Therefore, it may or may not be necessary to reset your printer to factory settings. In my case, the printer is disconnected from the wall for at least 30 seconds. Then plug it in and press and hold the "Reset" button on the printer. (For me it looks like a small, folded piece of paper with an arrow on it.) Hold down the power button and release it. Hold down the reset button while the printer is booting up. This takes about 10-15 seconds. When the yellow / orange triangle + exclamation point is solid, release the reset button. Wait a few minutes for the sound to finish. You are now reset to factory settings. (Some models indicate that you must press and hold the Reset AND Cancel buttons as this may be different.) You can also connect the printer to your computer through the USB connection at this point.

Then … and as far as I found out, the rest of the steps are necessary.

Start a terminal window. I just use Ctrl + Alt + T, but you can also find it in the Start menu under "Terminal".

Type (or copy and paste) in the terminal window (all in 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 remaining drivers and debris from previous installations or failed attempts.

Then

sudo rm -rf /usr/share/hplip/

will remove the rest of them.

Then

sudo apt-get autoremove

will get rid of anything that was not removed in the previous steps or that is no longer needed after the previous drivers have been released.

At this point, it's a good idea to do the following:

sudo apt update

then

sudo apt upgrade

then restart; Repeat the previous update to make sure that no new updates are available. This only ensures that there is no random stale file that is needed

After a restart, return to a terminal window.

Then:

sudo apt install libgail-common

And then

sudo apt install libcanberra-gtk-module

(I know that you can combine commands, I only report them the way I typed them.)

These 2 items were constantly displayed as missing. For some reason, the driver did not install it, even though it requires dependent lib files.

Then do it

sudo apt-get install apparmor-utils

and

sudo aa-disable /usr/share/hplip/plugin.py

This disables the Apparmor protection for another required file.

The driver needs this extra file from another, completely different source, but the keyserver is overloaded and does not authenticate the additional file. Disabling Apparmor protection is the only way to properly install this file.

Do it now:

sudo apt install hplip

and

sudo apt install hplip-gui

This installs the latest drivers from the Ubuntu archives.

After installation, do the following:

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

This will execute the setup program. Note that even though all this is done through the terminal, a GUI is still starting. I know.

Go through all the steps. it will fail with mistakes … or it could be successful, but still with errors.

Close the installer and do the following in the terminal:

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

This returns a potentially large list of "missing" files. They are not really missing, but the driver is not looking in the right place to find them.

To determine the correct location, do the following:

locate libsane-hp2000S1.so

(I happened to pick this file from the list of & # 39; missing files, but it specifies the correct path to find the actual locations.)

Make a note of the path to find these files, and then create a link to those files by doing the following:

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

and

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

This allows the driver to search in the wrong places by pointing to the actual places.

Then repeat the commands:

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

and

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

and make sure no other "missing" files have been identified.

Then do it:

sudo chmod 644 /etc/cups/ppd

For some reason, the install script does not grant the correct permission to properly install everything. This step could be done earlier, but I did not feel like starting over, just to see.

To verify that the whole thing was successful, do the following:

hp-check

This will return an interesting report:

Warning: Ubuntu 19.04 release is not supported. Dependencies for Ubuntu 18.10 Versions for Verifying and Installing …

Warning: HPLIP installation: Automatic installation is not supported for Ubuntu Distribution 19.04

No errors or warnings.

Yes – I have received multiple alerts, but it has been reported that no errors or warnings have occurred. I do not even know what to make of it or how to correct it.

It's a good idea to reboot at this point just to make sure everything is going well from a fresh boat.

Then do it:

hp-toolbox

You can also do this through the installed HP app. I make it from the terminal to look for more errors and the like. However, there is really nothing useful back.

Wait a while for all available actions to be completed. For some reason, it takes a few minutes for the printer to be Unknown.

Try "print test page" I get a test page, but the quality is poor – it looks like an inkjet print on wet paper … that's why I said that this is a "kind" solution.

At this point, you should also be able to print from other applications. Again – the quality of mine is terrible, but at least it does something … and that's more than it has done for countless hours to get the driver of Futhermucking to work. This is probably because it is not healthy and not compatible with 19.04, but whatever. I'm just thrilled that it's doing anything at all.

At this point, you can also try to make the wireless functionality work. Another post here said that after many hours of trying to get it working, wireless functionality is not available on Linux, which should prepare me for my experience …

I was not successful; Go to step 4, wait for the printer to connect to the network, and then just hang up. I let it sit 8 or 10 times and let it spin for 45 minutes, but it just stops. Like I said, maybe someone cleverer than me can figure out the rest of the steps needed to make this thing work.

That is everything I know. I hope it makes you point in the right direction.

I'm fully aware that running chmod manually in the etc folder is a bad, bad, bad practice, but that's exactly what cost it.

I'm also aware that Apparmor's Manual Bypass is also a no-no of epic proportions, but again … nothing else worked at all.

Good luck.