Add pop to AUTH_TYPES in password.py

Bug #1996635 reported by Gary Perkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

While troubleshooting my HP scanner, I was getting the error message "Error during device I/O (code=9)". When I ran the plugin download and install utility, I got the message "warning: pop distro is not found in AUTH_TYPES".

AUTH_TYPES is located in /usr/share/hplip/base/password.py, and defines if a distribution uses su or sudo for root privileges. It is used in __readAuthType(self), and if the distro is not defined, the default auth type is 'su'.

Pop! OS uses sudo authentication.

The fix is to add the line 'pop': 'sudo' to AUTH_TYPES.

Tags: plugin print scan
Revision history for this message
Gary Perkins (garyp409) wrote :

I created a fresh Pop! OS installation in a virtual machine and verified that without the fix, hp-plugin tries to use su to authenticate as the root user (which for most users has no password), and the installation fails. Applying the fix, hp-plugin properly uses sudo and the installation is successful.

tags: added: plugin print scan
Revision history for this message
Ste (stefano-fornari) wrote :

Is there any follow-up? I have the same issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.