Is there already hplip support for fedora 38? If not when does it come/are there plans for it?
Summary says it all.
Reason for asking:
After upgrading to fedora 38, I am getting the following message:
"Device communication error code: 5012."
And I do not know how to solve it.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Julien Mijnders
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Additional info:
In Fedora 38 KDE spin, the Discover app will just give you hplip most recent version.
Yes, it works fine.
But when actually installing it via the hplip Sourceforge website with a redirect on the fedora button,
then you discover the also mentioned thing in the script:
“fedora 38 is not supported”.
Uninstalling hplip and reinstalling it from the app store of KDE doesn't really help. It simply won't print.
The same is for the automatic script when trying to just install version 3.22.10 of hplip on fedora 38.
It will also indeed mention fedora 38 isn't yet supported.
Automatic script output will end in the following result:
"
INSTALL MISSING REQUIRED DEPENDENCIES
-------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python3-devel (Python devel - Python development files)
warning: Missing REQUIRED dependency: libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency: python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: This installer cannot install 'python3-pyqt4' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.
"
Unfortunately, the following packages will not be found by dnf in fedora 38:
→ libnetsnmp-devel
→ python3-pyqt4 (you will get notified by dnf with a notice: ”Maybe you meant python3-PyQt4”
Fixes?
→ libnetsnmp-devel got probably renamed to net-snmp-devel
→ python3-pyqt4 got probably renamed to python3-PyQt4
Based on that info I may think some updating is needed, because without python3-pyqt4 the automatic script will not install hplip.
Revision history for this message
|
#2 |
> And I do not know how to solve it.
You could start with giving the printer's make and model and
its connection method.
Revision history for this message
|
#3 |
Printer's model/name: HP deskjet 2620
Connection method used: Wi-Fi. It is possible to use a USB connection.
However, since fedora 38 has a renamed net-snmp-devel package (which controls networking, based on the info I have red source: “https:/
Revision history for this message
|
#4 |
> Printer's model/name: HP deskjet 2620
Good. It's a modern printer that should do driverless printing.
Give the outputs of
avahi-browse _ipp._tcp
avahi-browse _uscan._tcp
driverless
Revision history for this message
|
#5 |
→ avahi-browse _ipp._tcp
+ wlp5s0 IPv6 HP DeskJet 2600 series @ JulienFedoraLeg
+ wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series @ JulienFedoraLeg
+ enp4s0 IPv6 HP DeskJet 2600 series @ JulienFedoraLeg
+ enp4s0 IPv4 HP DeskJet 2600 series @ JulienFedoraLeg
+ lo IPv4 HP DeskJet 2600 series @ JulienFedoraLeg
+ lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _ipp._tcp local
^Z
[1]+ Gepauzeerd avahi-browse _ipp._tcp
→ avahi-browse _uscan._tcp
+ lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _uscan._tcp local
+ wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
^Z
[2]+ Gepauzeerd avahi-browse _uscan._tcp
→ driverless
ipp://HP%
ipps://
-------
Outputs.
Revision history for this message
|
#6 |
Neither of the first two commands is a full output. I can work with
the third command's result but would prefer all info.
Revision history for this message
|
#7 |
I did indeed stop the commands by Ctrl+z, because of a break/stop in flow of information. Commands would deliver no more info/output than what I've posted.
julien ~ 23:20 avahi-browse _ipp._tcp
+ wlp5s0 IPv6 HP DeskJet 2600 series @ JulienFedoraLeg
+ wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series @ JulienFedoraLeg
+ enp4s0 IPv6 HP DeskJet 2600 series @ JulienFedoraLeg
+ enp4s0 IPv4 HP DeskJet 2600 series @ JulienFedoraLeg
+ lo IPv4 HP DeskJet 2600 series @ JulienFedoraLeg
+ lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _ipp._tcp local
julien ~ 00:39 avahi-browse _uscan._tcp
+ wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
+ lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _uscan._tcp local
The third command will also just give the same output as my last comment on this thread.
But when I let it run for about 10 sec it will stop, the others won't.
I'm not sure of how long to wait for those first 2 commands, but giving them let's say 30 min for a connection (seems a bit weird and long for me for a printer).
(julien ~ 00:40 ) ⇾ is just ohmybash… fancyness, but im not here for that.
Revision history for this message
|
#8 |
To print on the network execute
lpadmin -p DeskJet2060 -v "ipps:/
Test with
lp -d DeskJet2060 /etc/nsswitch.conf
Revision history for this message
|
#9 |
julien ~ 15:04 lpadmin -p DeskJet2060 “ipps:/
Gives/Outputs:
lpadmin: Unknown argument “ipps:/
With under, it just the same output as when you would type: lpadmin --help.
julien ~ 15:05 lp -d DeskJet2060 /etc/nsswitch.conf
Gives/Outputs:
lp: Error - The printer or class does not exist.
-------
Tried this also by changing a parameter “Deskjet2060” to “Deskjet2620”. I don't know if this really has some effect on the command, because I do specify another destination by it (the 2620 model), But I don't know if this is recognized (probably not if I see so).
-------
If the class of the printer does not exist, must I create a new one or something?
This is what's in that file:
julien ~ 15:05 bat /etc/nsswitch.conf
───┬───
│ File: /etc/nsswitch.conf
--──┼──
1 │ # Generated by authselect on Thu May 4 22:35:11 2023
2 │ # Do not modify this file manually, use authselect instead. Any user changes will be overwritten.
3 │ # You can stop authselect from managing your configuration by calling 'authselect opt-out'.
4 │ # See authselect(8) for more details.
5 │
6 │ # In order of likelihood of use to accelerate lookup.
7 │ passwd: files sss systemd
8 │ shadow: files
9 │ group: files sss systemd
10 │ hosts: files myhostname mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
11 │ services: files sss
12 │ netgroup: files sss
13 │ automount: files sss
14 │
15 │ aliases: files
16 │ ethers: files
17 │ gshadow: files
18 │ networks: files dns
19 │ protocols: files
20 │ publickey: files
21 │ rpc: files
───────
Revision history for this message
|
#10 |
A typo. Sorry. I have corrected it .
Revision history for this message
|
#11 |
Printer over the network works, however, printing over USB is just still outputting “device communication error 5012”.
Although well, I would like a fix for hplip (for stock fedora 38/hplip's own website), for device communication error 5012.
But that would be another thread. (I saw many bugs/question asked about this error).
Also, fedora 38 would really need to be supported, because (1. the auto-script on hplip's website currently doesn't support it. 2. Based on that, fedora gets updated every 6 months.) And that's what the summary is about.
But thanks for fixing printing over the network.
Revision history for this message
|
#12 |
For USB printing you could try
lpadmin -p DeskJet2060 -v "ipp://
Test as before.
Revision history for this message
|
#14 |
Apologies, Julien; I made a couple of typos. The commands
should be:
avahi-browse -rt _ipp._tcp
avahi-browse -rt _uscan._tcp
Revision history for this message
|
#15 |
julien ~ 15:50 avahi-browse -rt _ipp._tcp
Output:
+ wlp5s0 IPv6 DeskJet_2600 @ JulienFedoraLeg
+ wlp5s0 IPv6 DeskJet2620 @ JulienFedoraLeg
+ wlp5s0 IPv4 DeskJet_2600 @ JulienFedoraLeg
+ wlp5s0 IPv4 DeskJet2620 @ JulienFedoraLeg
+ enp4s0 IPv4 DeskJet_2600 @ JulienFedoraLeg
+ enp4s0 IPv4 DeskJet2620 @ JulienFedoraLeg
+ lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _ipp._tcp local
+ lo IPv4 DeskJet_2600 @ JulienFedoraLeg
+ lo IPv4 DeskJet2620 @ JulienFedoraLeg
= wlp5s0 IPv6 DeskJet_2600 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [fe80::
port = [631]
txt = ["printer-
= wlp5s0 IPv6 DeskJet2620 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [fe80::
port = [631]
txt = ["printer-
+ enp4s0 IPv6 DeskJet2620 @ JulienFedoraLeg
+ enp4s0 IPv6 DeskJet_2600 @ JulienFedoraLeg
= wlp5s0 IPv4 DeskJet_2600 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [192.168.223.100]
port = [631]
txt = ["printer-
= wlp5s0 IPv4 DeskJet2620 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [192.168.223.100]
port = [631]
txt = ["printer-
= enp4s0 IPv4 DeskJet_2600 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [XXXXXXXX]
port = [631]
txt = ["printer-
= enp4s0 IPv4 DeskJet2620 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [XXXXXXXX]
port = [631]
txt = ["printer-
= lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _ipp._tcp local
hostname = [JulienFedoraLe
address = [127.0.0.1]
port = [60000]
txt = ["air=none" "mopria-
= lo IPv4 DeskJet2620 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [127.0.0.1]
port = [631]
txt = ["printer-
= lo IPv4 DeskJet_2600 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [127.0.0.1]
port = [631]
txt = ["printer-
= enp4s0 IPv6 DeskJet2620 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [2a02:a44b:
port = [631]
txt = ["printer-
= enp4s0 IPv6 DeskJet_2600 @ JulienFedoraLeg
hostname = [JulienFedoraLe
address = [2a02:a44b:
port = [631]
txt = ["printer-
+ wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
= wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
hostname = [HPC4651664BDCB
address = [192.168.223.1]
port = [631]
txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=fb90b407-
+ wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
= wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
hostname = [HPC4651664BDCB
address = [192.168.223.1]
port = [631]
txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=fb90b407-
+ enp4s0 IPv4 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
= enp4s0 IPv4 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
hostname = [HPC4651664BDCB
address = [192.168.2.141]
port = [631]
txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=fb90b407-
+ enp4s0 IPv6 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
= enp4s0 IPv6 HP DeskJet 2600 series [64BDCB] _ipp._tcp local
hostname = [HPC4651664BDCB
address = [192.168.2.141]
port = [631]
txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=fb90b407-
julien ~ 15:50 avahi-browse -rt _uscan._tcp
Output:
+ lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _uscan._tcp local
= lo IPv4 HP DeskJet 2600 series [64BDCB] (USB) _uscan._tcp local
hostname = [JulienFedoraLe
address = [127.0.0.1]
port = [60000]
txt = ["duplex=F" "is=platen" "cs=binary,
+ enp4s0 IPv4 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
+ wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
= wlp5s0 IPv4 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
hostname = [HPC4651664BDCB
address = [192.168.223.1]
port = [8080]
txt = ["duplex=F" "is=platen" "cs=binary,
+ wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
= wlp5s0 IPv6 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
hostname = [HPC4651664BDCB
address = [192.168.223.1]
port = [8080]
txt = ["duplex=F" "is=platen" "cs=binary,
+ enp4s0 IPv6 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
= enp4s0 IPv4 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
hostname = [HPC4651664BDCB
address = [192.168.2.141]
port = [8080]
txt = ["duplex=F" "is=platen" "cs=binary,
= enp4s0 IPv6 HP DeskJet 2600 series [64BDCB] _uscan._tcp local
hostname = [HPC4651664BDCB
address = [192.168.2.141]
port = [8080]
txt = ["duplex=F" "is=platen" "cs=binary,
1. What to do with it?
2. Is this usb printing over network but on lan?
Revision history for this message
|
#16 |
> 1. What to do with it?
I wanted it for informational purposes. You do not need to do
anything with it. However, note that those entries like
wlp5s0 IPv4 DeskJet2620 @ JulienFedoraLeg
are print queues you have set up on JulienFedoraLeg
not really necessary because the printer is seen directly over the
network and on USB. It's up to you.
> 2. Is this usb printing over network but on lan?
At the moment the printing takes place over the USB bus. If you want
to expose it on the network, see
interface = loopback # all | loopback
in
/etc/
Revision history for this message
|
#17 |
1. If those printer queues are not really necessary, could this at that point be considered as an open port?
If yes, then would that open port be a security risk?> if yes, then my thoughts would say, let's close it.
2. Printing over the USB bus is at this time for me the only thing I need.
If I wanted to expose it on the network, It might interfere with other devices (if I am correct).
Also, it is more network traffic, thus bandwidth. Therefore, I think I'll leave this option out for now.
If I am not correct at some facts above here, then I would consider it an option.
Revision history for this message
|
#18 |
Unless you have a reason to keep the queues in existence they
could be removed:
lpadmin -x QUEUE_NAME
> 2. Printing over the USB bus is at this time for me the only
> thing I need.
In that case you can consider removing the network queue. Now,
CUPS can only be contacted over USB. That's secure enough I
would say.
Revision history for this message
|
#19 |
Removed the queues which I didn't need, in the future (might the USB way malfunction), I've always got the network option.
For now, it does its thing.
Would be cool to know if there was a function, which just switches the way of working over USB to network and vice versa.
(may printing over USB not work, then it automatically switches to network mode (if that's available), also in the other way around).
Revision history for this message
|
#20 |
Remark:
HPLIP 3.23.8 has just been published, and the release notes tell that support for Fedora 38 has been added.