Install latest hplip plugin automatically when hplip updates

Lack of plugin is one of the most common cause of HP printers not working. It can be easily installed, however, after each update to hplip, it has to be installed again manually. There are ways to automate it, but none of them can be expected from beginners. I don’t see why these plugins can not be bundled with hplip package in official repos. I don’t think there is any disadvantage to have it, but lack of it causes most printers to not work. So my request to devs is either:

Bundle the plugin with the official hplip package,

or

Have it as a separate package in repos that is an optional dependency for hplip.

This will allow for a more seamless experience and less wasted time on useless diagnosis

1 Like

Yes please. I would love to see this happen, it’s not a problem for me, but others sometimes don’t understand why HP “doesn’t work anymore”

1 Like

Do you mean this?
https://aur.archlinux.org/packages/hplip-plugin/

Yes, it is this package in aur, but do see that it gives error when installed with pamac in manjaro, and if you read the comments, the maintainer has refused to correct it in accordance with arch’s guidelines to not support arch based distros

What error are you getting?

Are they allowed for redistribution?

Also, i can see the source code here . Doesn’t mention the lisence, but I think I do not accurately know the answer to your question

The closest i can find an answer is on this page. It seems to mention that these can’t be open sourced but does not mention they are not redistributable

Oh, and if you have this package installed, you have the license.

My hp1020 just doesn’t work with hplip.
I install foo2jzs and forget about any printer problems.

Won’t work with most printers

I’m having the very same problem with practically any distro but Ubuntu. I love Manjaro, but my printer is crucial for college :frowning:

Yes, I tried to get my HP_LaserJet_1020 to work and had done the following steps.

Steps taken so far to install HP_LaserJet_1020 printer driver.
.

  1. Installed hplip: “sudo pacman -Syu hplip”
  2. Installed cups: “sudo pacman -Syu cups”
  3. Enable cups: “sudo systemctl enable –now cups.service
[jfl@MNJROGTKPRO ~]$ sudo systemctl enable --now cups.service
[sudo] password for jfl:
Created symlink /etc/systemd/system/printer.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/sockets.target.wants/cups.socket → /usr/lib/systemd/system/cups.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.path → /usr/lib/systemd/system/cups.path.
  1. Install “Print Settings” using Add/Remove Software App and tried to configure HP_LaserJet_1020 using the Print Settings. Successful in configuring HP_LaserJet_1020 but as expected will not Print as “hplip-plugin” NOT installed.

image

  1. Tried to build/install “hplip-plugin” using Add/Remove Software App. But resulted with error and it aborted.
Preparing…
Cloning hplip-plugin build files…
Checking hplip-plugin dependencies…
Resolving dependencies…
Checking inter-conflicts…
Downloading pkgconf (1.7.3-1)…
Downloading texinfo (6.7-3)…
Downloading make (4.3-3)…
Downloading m4 (1.4.18-3)…
Downloading flex (2.6.4-3)…
Downloading fakeroot (1.25.3-1)…
Downloading bison (3.7.2-1)…
Downloading libmicrohttpd (0.9.71-1)…
Downloading elfutils (0.181-1)…
Downloading binutils (2.35-1)…
Downloading libmpc (1.1.0-2)…
Downloading gcc (10.2.0-1)…
Downloading patch (2.7.6-8)…
Downloading autoconf (2.69-7)…
Downloading automake (1.16.2-3)…
Downloading gc (8.0.4-4)…
Downloading guile (2.2.6-2)…
Checking keyring…
Checking integrity…
Loading packages files…
Checking file conflicts…
Checking available disk space…
Installing pkgconf (1.7.3-1)…
Installing texinfo (6.7-3)…
Installing gc (8.0.4-4)…
Installing guile (2.2.6-2)…
Installing make (4.3-3)…
Installing m4 (1.4.18-3)…
Installing flex (2.6.4-3)…
Installing fakeroot (1.25.3-1)…
Installing bison (3.7.2-1)…
Installing libmicrohttpd (0.9.71-1)…
Installing elfutils (0.181-1)…
Installing binutils (2.35-1)…
Installing libmpc (1.1.0-2)…
Installing gcc (10.2.0-1)…
Installing patch (2.7.6-8)…
Installing autoconf (2.69-7)…
Installing automake (1.16.2-3)…
Running post-transaction hooks…
Arming ConditionNeedsUpdate…
Updating the info directory file…

Building hplip-plugin…
==> Making package: hplip-plugin 3.20.11-1 (Mon 04 Jan 2021 02:09:32 PM +08)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
-> Downloading hplip-3.20.11-plugin.run…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
3 10.9M 3 353k 0 0 186k 0 0:01:00 0:00:01 0:00:59 185k
9 10.9M 9 1089k 0 0 382k 0 0:00:29 0:00:02 0:00:27 382k
15 10.9M 15 1697k 0 0 445k 0 0:00:25 0:00:03 0:00:22 445k
22 10.9M 22 2481k 0 0 510k 0 0:00:22 0:00:04 0:00:18 510k
29 10.9M 29 3345k 0 0 565k 0 0:00:19 0:00:05 0:00:14 663k
37 10.9M 37 4193k 0 0 616k 0 0:00:18 0:00:06 0:00:12 784k
48 10.9M 48 5441k 0 0 696k 0 0:00:16 0:00:07 0:00:09 876k
62 10.9M 62 7009k 0 0 795k 0 0:00:14 0:00:08 0:00:06 1061k
77 10.9M 77 8721k 0 0 889k 0 0:00:12 0:00:09 0:00:03 1259k
95 10.9M 95 10.5M 0 0 998k 0 0:00:11 0:00:10 0:00:01 1525k
100 10.9M 100 10.9M 0 0 1032k 0 0:00:10 0:00:10 --:–:-- 1720k
==> Validating source files with md5sums…
hplip-3.20.11-plugin.run … Passed
==> Removing existing $srcdir/ directory…
==> Extracting sources…
==> Starting prepare()…
**hplip-3.20.11-plugin.run: line 314: exec: -t: invalid option**
**exec: usage: exec [-cl] [-a name] [command [argument …]] [redirection …]**
**==> ERROR: A failure occurred in prepare().**
**Aborting…**

In Debian/Ubuntu to setup HP LaserJet_1020, all is required is to install “hplip-gui” and run “hp-setup” and it automatically configure and download the required driver and “hplip-plugin”. But unfortunately, “hplip-gui” is NOT available in Manjaro-ARM repo.

Hi Ros,

I am having issue getting HP LaserJet_1020 to print and I have installed hplip, cups, enable cups, installed Manjaro “Print Settings” and tried to build “hplip-gui” from AUR using Manjaro Add/Remove Software App but unsuccessful (error and it aborted).

At this moment I can “Print Settings” can configure HP LaserJet 1020 but as hplip-plugin is not installed, NO Print Output.

image

Appreciate if you could provide detailed guidance how to you use foo2jzs to get LaserJet 1020 to print.

I notice in the AUR repo foo2zjs-nightly 20200917-1 and foo2zjs-minimal-nightly 20200610-1 are available which to install and what are steps are required to get it to work.

Thanks. Happy New Year.

The solution I found was to use command line to install and update this particular package.

pamac build hplip-plugin

Install foo2zjs-nightly
Install system-config-printer (If it is not KDE, where there is already a setting to add a printer)
Add a printer

Thanks. Puzzling if I use the Manjaro Add/Remove Software App to build it was unsuccessful and it aborted.

With command line: pamac build hplip-plugin it build successfully. Will with this, hope Manjaro Printer Settings will recognise HP LaserJet 1020 and be able to print.

Earlier the hp-setup -u, started the HP Device Manager GUI but it did not find the HP LaserJet 1020 connect via the USB Port so could not complete the installation. Very puzzling.

It’s been a long time since I’ve used hplip to set up a printer, but IIRC, there are steps you have to take to get it to recognize a USB printer (start with printer unplugged, for example).

I don’t understand why Manjaro devs do not remove hplip and replace it with foo2zjs. Yes, foo2zjs does not work with “some” printers, but hplip works with none. So, which one is the better choice here? By the way, Ubuntu based distros automatically detect my printer and it just works. Guess which driver Xubuntu uses?

Do you have foomatic-db installed? It’s a dependency of manjaro-printer.

You’re also free to install foo2zjs-nightly or foo2zjs-minimal-nightly from the AUR.

Disclaimer: I have an old Canon AIO with no ink, so I’ve not tested any of the above.