# HP Printer installation and setup

**URL:** <https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045>\
**Category:** Rocky Linux Help & Support\
**Created:** [May 15, 2022, 12:42pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045 "2022-05-15T12:42:56Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 12:42pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/1 "2022-05-15T12:42:56Z")

</div>

Dear Rocky Linux Family,  
I have got an HP Deskjet 3775 printer. I wish to connect it to my Rocky Linux 8.5 system  
I tried installing hplip from the repositories using  
dnf install hplip-common  
It failed to install some components from some alex\_sh link.

I am sorry, I uninstalled the hplip-common after that.  
I also happened to check HP’s website and they have provided this link  
[https://developers.hp.com/hp-linux-imaging-and-printing/](https://developers.hp.com/hp-linux-imaging-and-printing/)  
Has anyone used this driver?

Finally Flatpak also has an HPLIP Gui extension and another Gnome Shell extension.

Kindly advise, as I imagine this will be of help to a lot of people.

Best regards,

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 12:48pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/2 "2022-05-15T12:48:24Z")

</div>

I meant to ask if anyone has used the HPLIP .rpm file from that HP webpage.  
the download yields hplip-3.22.4-RHEL8-x86\_64.rpm

BR,

---

<div class="post-metadata">

**Author:** ![RL1000](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RL1000](https://forums.rockylinux.org/u/RL1000)\
**Post date:** [May 15, 2022, 1:25pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/3 "2022-05-15T13:25:01Z")

</div>

Hi, I documented how I installed up my HP printer - check it out, maybe it will help.

> [@Scanning with HP printers on Rocky Linux](https://forums.rockylinux.org/t/scanning-with-hp-printers-on-rocky-linux/4323):
>
> I found that my HP Envy 4500 printer will print fine, but Document Scanner did not detect the printer as a scanner. It took me some time to figure this out, so I thought I would share the solution to help anyone that may come across the same issue: Do: sane-find-scanner and this should show your printer model Do: scanimage -L and this shows: No scanners were identified. Do: dnf search hplip This will show, in search results: hplip hplip-common hplip-gui All 3 need to be installed.…

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 1:28pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/4 "2022-05-15T13:28:37Z")

</div>

Hi @RL1000  
I tried dnf search hplip

it yielded this:

[root@galileo nmp]# dnf search hplip  
alex\_sh’s Home Project (CentOS\_8) 722 B/s | 1.1 kB 00:01  
Errors during downloading metadata for repository ‘home\_alex\_sh’:

- Status code: 404 for [https://download.opensuse.org/repositories/home:/alex\_sh/CentOS\_8/repodata/repomd.xml](https://download.opensuse.org/repositories/home:/alex_sh/CentOS_8/repodata/repomd.xml) (IP: 2001:67c:2178:8::13)  
Error: Failed to download metadata for repo ‘home\_alex\_sh’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried  
[root@galileo nmp]#

This missing file to be downloaded from alex\_sh was present when I tried to do dnf install hplip-common as well  
Could you kindly explain how do I proceed?  
BR,

---

<div class="post-metadata">

**Author:** ![RL1000](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RL1000](https://forums.rockylinux.org/u/RL1000)\
**Post date:** [May 15, 2022, 1:33pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/5 "2022-05-15T13:33:43Z")

</div>

I am just a user of Rocky Linux and so not an expert, but what strikes me is:

1. alex\_sh’s Home Project (CentOS\_8) 722 B/s | 1.1 kB 00:01  
This seems to indicate you are using Centos

2. Errors during downloading metadata for repository ‘home\_alex\_sh’:  
home\_alex\_sh is not the name of a Rocky repo

3. Status code: 404 for [https://download.opensuse.org/repositories/home:/alex\_sh/CentOS\_8/repodata/repomd.xml](https://download.opensuse.org/repositories/home:/alex_sh/CentOS_8/repodata/repomd.xml)  
This seems to indicate you are using opensuse repos and you need to use Rocky repos if you are using Rocky 8.5

Putting the above together is seems you are trying to use a repo for Centos by someone named alex\_sh that is hosted under opensuse. And the 404 code suggests this repo does not exist.

I guess somehow this repo got installed in your Rocky 8.5.

Unless you have some specific reason to have this repo installed, I would disable or uninstall it, make sure you have the correct Rocky repos installed, and try again.

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 2:01pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/6 "2022-05-15T14:01:08Z")

</div>

@RL1000

1. I am using Rocky Linux - I know what I am seeing 😃
2. OK,
3. OK

Thanks, but I did not install this alex\_sh repository.  
I thought if i do dnf install xyz, then it wil look for xyz in ALL repositories, including the default Rocky Linux ones?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [May 15, 2022, 2:11pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/7 "2022-05-15T14:11:01Z")

</div>

I would suggest disabling the alex\_sh repository found most likely in /etc/yum.repos.d/ I’m curious that why is this installed on your system? Migrated from CentOS? You can edit the file and changed enabled=1 to enabled=0, you can also do it with.

```auto
dnf config-manager --set-disabled alex_sh

```

Also, hplip is in the default Rocky repos so:

```auto
dnf install hplip

```

once you have disabled alex\_sh repo. You can also check to see if any rpms might be installed from this repo, maybe something like:

```auto
rpm -qa | grep -i alex

```

and remove them - this repo shouldn’t be on your system.

As for hplip from the HP page, you don’t need to do that, hplip is in the Rocky repos. The only time you would need to add anything, would be a cups driver if the printer isn’t seen on the list of available printer drivers.

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 2:24pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/8 "2022-05-15T14:24:43Z")

</div>

@iwalker  
Thanks for your inputs. OK I went and tried to look at /etc/yum.repos.d/ using ls  
[root@galileo nmp]# cd /etc/yum.repos.d/  
[root@galileo yum.repos.d]# ls  
This gives a set of repositories, which do not line up well here, so I am putting a screenshot.

 ![Screenshot from 2022-05-15 19-50-17](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/f/f191ef8c5cd14e90fc1025c5acb0fde8385c581d.png)  
to my eyes, there is no alex\_sh in there…

Even so… do you want me to run

> [@iwalker](#):
>
> `dnf config-manager --set-disabled alex_sh`

followed by

> [@iwalker](#):
>
> `dnf install hplip`

in turn followed by:

> [@iwalker](#):
>
> `rpm -qa | grep -i alex`

Do let me know.  
BR,

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [May 15, 2022, 2:28pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/9 "2022-05-15T14:28:08Z")

</div>

There is a home:alex\_sh.repo in that screenshot, right in the middle of it! Just above the nice green onlyoffice.repo - whatever that is as well probably also isn’t needed.

I would move those two files to /root for the time being, and delete them completely later.

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 2:34pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/10 "2022-05-15T14:34:14Z")

</div>

Hi @iwalker  
Thanks Ian, I should have searched better. Just did not expect alex\_sh to be prefaced by home:  
Anyway, when you say move those two files to /root, did you mean alex\_sh and onlyoffice.repo? Should I just move them to /root using mv command?

Apologies for asking common questions…  
BR

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [May 15, 2022, 2:35pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/11 "2022-05-15T14:35:21Z")

</div>

Yes:

```auto
mv /etc/yum.repos.d/onlyoffice.repo /root/
mv /etc/yum.repos.d/home:alex_sh.repo /root/

```

---

<div class="post-metadata">

**Author:** ![RL1000](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RL1000](https://forums.rockylinux.org/u/RL1000)\
**Post date:** [May 15, 2022, 3:05pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/12 "2022-05-15T15:05:40Z")

</div>

@nmp  
I hope you get it sorted out

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 3:14pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/13 "2022-05-15T15:14:09Z")

</div>

THanks @RL1000  
I hope no hard feelings remain.

@iwalker  
I did run

> dnf install hplip

as root.

It seems to have completed without issue, except for this message midway

Running scriptlet: hplip-3.18.4-9.el8.x86\_64 5/5  
[/usr/lib/tmpfiles.d/pesign.conf:1] Line references path below legacy directory /var/run/, updating /var/run/pesign → /run/pesign; please update the tmpfiles.d/ drop-in file accordingly.

After this message, the system continues to verify some hplip files, and ends the process with  
Installed:  
hplip-3.18.4-9.el8.x86\_64 hplip-common-3.18.4-9.el8.x86\_64 hplip-libs-3.18.4-9.el8.x86\_64 net-snmp-libs-1:5.8-22.el8.x86\_64 python3-pillow-5.1.1-18.el8\_5.x86\_64

Complete!

now that I have managed to install the hplip, should I install the GUI from flatpak?

I am still unable to access the printer

 ![Screenshot from 2022-05-15 20-42-27](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/9/9087bc8d288d5263bc5711b59d653567987800da.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [May 15, 2022, 3:20pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/14 "2022-05-15T15:20:05Z")

</div>

Can you check and paste the output of this command:

```auto
systemctl status cups

```

copy the text from the console rather than screenshot. It’s easier to read.

If it’s running, there is also the option that the printer is stopped. Click on the cog-wheel next to the “No Active Jobs” button and see if there is an option to start it.

Also you can do:

[http://localhost:631](http://localhost:631)

and connect to the cups printer interface via web browser. The printer can also be started here too.

As for the hplip-gui, that’s not needed in reality, the driver is managed by cups, and cups says the printer is stopped. But if you want to install it:

```auto
[root@rocky-desktop ian]# dnf list available hplip*
Last metadata expiration check: 2:37:42 ago on Sun 15 May 2022 14:46:25 CEST.
Available Packages
hplip-common.i686 3.18.4-9.el8 appstream
hplip-gui.x86_64 3.18.4-9.el8 appstream
hplip-libs.i686 3.18.4-9.el8 appstream

[root@rocky-desktop ian]# dnf install hplip-gui

```

If a package is available to install via dnf, this should be your first thing to do. Flatpak are OK, but packages from repositories are far better.

Once the hp-lip gui is installed via dnf, you could in theory start/stop the printer there too, but cups is enough for it provided that it is working. I don’t use hplip-gui since cups does everything I need.

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 4:25pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/15 "2022-05-15T16:25:18Z")

</div>

Dear @iwalker  
I ran

> systemctl status cups

It yields this:  
[root@galileo yum.repos.d]# systemctl status cups  
● cups.service - CUPS Scheduler  
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)  
Active: active (running) since Sun 2022-05-15 13:35:54 IST; 7h ago  
Docs: man:cupsd(8)  
Main PID: 1232 (cupsd)  
Status: “Scheduler is running…”  
Tasks: 3 (limit: 203131)  
Memory: 28.5M  
CGroup: /system.slice/cups.service  
├─ 1232 /usr/sbin/cupsd -l  
├─14558 /usr/lib/cups/notifier/dbus dbus://  
└─14685 /usr/lib/cups/notifier/dbus dbus://

May 15 20:12:18 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 20:20:38 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 20:24:32 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 20:28:58 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 20:37:18 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 20:45:38 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 20:53:58 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 21:02:18 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 21:10:38 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
May 15 21:18:58 galileo cupsd[1232]: REQUEST localhost - - “POST / HTTP/1.1” 200 188 Renew-Subscription successful-ok  
[root@galileo yum.repos.d]#

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [May 15, 2022, 4:26pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/16 "2022-05-15T16:26:02Z")

</div>

OK, so now check the rest of my post using the cups web interface, or the hplip to ensure the printer is started.

---

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forums.rockylinux.org/u/nmp)\
**Post date:** [May 15, 2022, 4:35pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/17 "2022-05-15T16:35:27Z")

</div>

thanks, @iwalker I will take a break now and read the CUPs documentation later. For now, I checked and my current printer is shown as paused.

## [DeskJet-3700-series](http://localhost:631/printers/DeskJet-3700-series) (Paused, Rejecting Jobs, Not Shared, Server Default)

Regards

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [May 15, 2022, 4:36pm UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/18 "2022-05-15T16:36:48Z")

</div>

I think you basically need to unpause and ensure the printer is running, then all should be fine. There isn’t really much else to it. Since the driver is there, it looks like the printer was seen/detected.

Then after that from the cups page, you can print a test page to your printer once it’s enabled and running.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:49am UTC](https://forums.rockylinux.org/t/hp-printer-installation-and-setup/6045/19 "2023-08-25T03:49:45Z")

</div>

Closed on August 25, 2023, 3:49am UTC


