debconf prompts not supressed for build-packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ snapcraft --version
snapcraft, version 3.0.1
```
build-packages:
- wireshark
```
$ SNAPCRAFT_
Launching a VM.
Launched: snapcraft-wireshark
2019-03-
core 16-2.37.4 from Canonical✓ installed
Channel latest/stable for core is closed; temporarily forwarding to stable.
SNAPCRAFT_
snapcraft (edge) 3.2+git16.g841b41f from Canonical✓ installed
Channel latest/edge for snapcraft is closed; temporarily forwarding to edge.
core18 18 from Canonical✓ installed
Channel latest/stable for core18 is closed; temporarily forwarding to stable.
Hit:1 http://
Get:2 http://
…
Setting up wireshark-common (2.6.6-
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/
debconf: falling back to frontend: Readline
Configuring wireshark-common
-------
Dumpcap can be installed in a way that allows members of
the "wireshark" system group to capture packets. This is
recommended over the alternative of running
Wireshark/Tshark directly as root, because less of the
code will run with elevated privileges.
For more detailed information please see
/usr/share/
Enabling this feature may be a security risk, so it is
disabled by default. If in doubt, it is suggested to leave
it disabled.
Should non-superusers be able to capture packets? [yes/no]
Progress: [ 94%] [######
description: | updated |
Changed in snapcraft: | |
status: | In Progress → Fix Released |
Wireshark's use of debconf is standard:
$ cat wireshark- common. config
#! /bin/sh
set -e
. /usr/share/ debconf/ confmodule
db_input high wireshark- common/ install- setuid || true
db_go
exit 0
$ grep wireshark- common/ install- setuid templates -A7 common/ install- setuid
Template: wireshark-
Type: boolean
Default: false
_Description: Should non-superusers be able to capture packets?
Dumpcap can be installed in a way that allows members of the "wireshark"
system group to capture packets. This is recommended over the
alternative of running Wireshark/Tshark directly as root, because
less of the code will run with elevated privileges.