fresh Wireshark installation on 17.04 removed me from (almost) all groups

Asked by Michal

After installing Wireshark 2.2.4 from official Ubuntu (17.04) repository and allowing the package to add me to wireshark group, I found that I am no longer a member of any other group:

    $ grep username /etc/group
    username:x:1000:
    wireshark:x:139:username

and running any command as root (sudo) responds with:

    username is not in the sudoers file. This incident will be reported.

While I am perfectly fine with fixing this situation, I am unsure whether this behavior should be reported as a bug.

$ lsb_release -rd
Description: Ubuntu 17.04
Release: 17.04

($ apt-cache policy wireshark) - was wrong

This one is ok:
$ apt-cache policy wireshark
wireshark:
  Installed: 2.2.4+gcc3dc1b-1
  Candidate: 2.2.4+gcc3dc1b-1
  Version table:
 *** 2.2.4+gcc3dc1b-1 500
        500 http://pl.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
        100 /var/lib/dpkg/status

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wireshark Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Michal (fuszumasa) said :
#1

apt-cache policy wireshark was from a different system

Here is the proper one:

$ apt-cache policy wireshark
wireshark:
  Installed: 2.2.4+gcc3dc1b-1
  Candidate: 2.2.4+gcc3dc1b-1
  Version table:
 *** 2.2.4+gcc3dc1b-1 500
        500 http://pl.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#2

If you are sure that the installation of wireshark has removed the group assignments, then this could be worth reporting as a bug.

Just as additional information: there is a higher version 2.2.6+g32dac6a-2ubuntu0.17.04 available in zesty-updates.

Revision history for this message
Michal (fuszumasa) said :
#3

The higher version seems to be for i386 only.

I've just tried removing country code from sources.list but it still says that my system is up to date:

$ apt-cache policy wireshark
wireshark:
  Installed: 2.2.4+gcc3dc1b-1
  Candidate: 2.2.4+gcc3dc1b-1
  Version table:
 *** 2.2.4+gcc3dc1b-1 500
        500 http://archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
        100 /var/lib/dpkg/status

I'll try reproducing it though by uninstalling and reinstalling.

Revision history for this message
Michal (fuszumasa) said :
#4

It did not prompt me to automatically add me to wireshark group this time. I'll try on a fresh install.

Revision history for this message
Michal (fuszumasa) said :
#5

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Michal (fuszumasa) said :
#6

You were right, Manfred Hampl, it was not wireshark.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

To get the version 2.2.6+g32dac6a-2ubuntu0.17.04 offered, you have to enable the zesty-updates and/or zesty-security repositories (you can do that in the settings dialogue of any package management program with GUI, or by adding the related lines to your sources.list file).