simple-scan is trying to start disabled avahi-daemon.service

Bug #1926014 reported by Antonin Vecera
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
policykit-1 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

I have a fresh installation of Ubuntu desktop 21.04.
I stop and disable avahi-daemon.service + avahi-daemon.socket
(I don't use these services on my desktop)
Then I start "simple-scan" program.

After that I see a pop-up window for admin password!
It's wrong, no such thing should be there.

In previouse release (20.10) it was OK.

Thanks.
Antonin

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: policykit-1 0.105-30
ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12
Uname: Linux 5.11.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 24 15:17:52 2021
InstallationDate: Installed on 2021-04-22 (1 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
SourcePackage: policykit-1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Antonin Vecera (antonin.vecera) wrote :
Revision history for this message
Antonin Vecera (antonin.vecera) wrote :

To be clear...
I want to start an application to scan some document.
I am unexpectedly asked for admin password.
If I enter right password, avahi-daemon.service is started.

I guess it should not disturb with password dialog and not try to start disabled service.

I am not sure which component does it - systemd, dbus, policykit?

Revision history for this message
Alex Hofmann (ubuntu-postkasten) wrote (last edit ):

The report is now 2 years old, so I'm not sore if anyone will still read or follow this, but I don't think it's related to policykit, not even related to simple-scan.

I got the same message recently, and it's probably related to the hpaio backend of sane (included in hplib).

There's a bugreport on this here: https://bugs.launchpad.net/hplip/+bug/1996438

As a workaround, when no HP scanner is used, you can disable this e.g. by editing `/etc/sane.d/dll.d/hplib` and commenting out the only included library there:

====
# dll.conf snippet for hplip
#

#hpaio
====

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in policykit-1 (Ubuntu):
status: New → Confirmed
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.