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.
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,
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.
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?
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.
dnf config-manager --set-disabled alex_sh
Also, hplip is in the default Rocky repos so:
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:
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.
@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.
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.
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?
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?
Can you check and paste the output of this command:
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.
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:
[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.
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.