2

I don't have the root password so I entered sudo super user mode in an attempt to install wireshark on my laptop. I've tried installing wireshark previously but I did not have root access the first time so I was not receiving any data. I removed the program and tried to reinstall it and received this beautiful error message:

Daniel-Thinkpad daniel # sudo aptitude install wireshark
The following NEW packages will be installed:
  libc-ares2{a} libwireshark-data{a} libwireshark5{a} libwiretap4{a} libwsutil4{a} wireshark wireshark-common{a} 
0 packages upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 13.7 MB of archives. After unpacking 77.9 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://archive.ubuntu.com/ubuntu/ trusty/main libc-ares2 amd64 1.10.0-2 [38.5 kB]
Get: 2 http://ppa.launchpad.net/pi-rho/security/ubuntu/ trusty/main libwsutil4 amd64 1.12.4-1ubuntu1~ppa2~t [131 kB]
Get: 3 http://ppa.launchpad.net/pi-rho/security/ubuntu/ trusty/main libwiretap4 amd64 1.12.4-1ubuntu1~ppa2~t [219 kB]
Get: 4 http://ppa.launchpad.net/pi-rho/security/ubuntu/ trusty/main libwireshark-data all 1.12.4-1ubuntu1~ppa2~t [898 kB]
Get: 5 http://ppa.launchpad.net/pi-rho/security/ubuntu/ trusty/main libwireshark5 amd64 1.12.4-1ubuntu1~ppa2~t [11.2 MB]
Get: 6 http://ppa.launchpad.net/pi-rho/security/ubuntu/ trusty/main wireshark-common amd64 1.12.4-1ubuntu1~ppa2~t [232 kB]                                                                                                                    
Get: 7 http://ppa.launchpad.net/pi-rho/security/ubuntu/ trusty/main     wireshark amd64 1.12.4-1ubuntu1~ppa2~t [957 kB]                                                                                                                           
Fetched 13.7 MB in 36s (370 kB/s)                                                                                                                                                                                                             
Preconfiguring packages ...
Selecting previously unselected package libc-ares2:amd64.
(Reading database ... 175945 files and directories currently installed.)
Preparing to unpack .../libc-ares2_1.10.0-2_amd64.deb ...
Unpacking libc-ares2:amd64 (1.10.0-2) ...
Selecting previously unselected package libwsutil4:amd64.
Preparing to unpack .../libwsutil4_1.12.4-1ubuntu1~ppa2~t_amd64.deb ...
Unpacking libwsutil4:amd64 (1.12.4-1ubuntu1~ppa2~t) ...
Selecting previously unselected package libwiretap4:amd64.
Preparing to unpack .../libwiretap4_1.12.4-1ubuntu1~ppa2~t_amd64.deb ...
Unpacking libwiretap4:amd64 (1.12.4-1ubuntu1~ppa2~t) ...
Selecting previously unselected package libwireshark-data.
Preparing to unpack .../libwireshark-data_1.12.4-1ubuntu1~ppa2~t_all.deb ...
Unpacking libwireshark-data (1.12.4-1ubuntu1~ppa2~t) ...
Selecting previously unselected package libwireshark5:amd64.
Preparing to unpack .../libwireshark5_1.12.4-1ubuntu1~ppa2~t_amd64.deb ...
Unpacking libwireshark5:amd64 (1.12.4-1ubuntu1~ppa2~t) ...
Selecting previously unselected package wireshark-common.
Preparing to unpack .../wireshark-common_1.12.4-1ubuntu1~ppa2~t_amd64.deb ...
Unpacking wireshark-common (1.12.4-1ubuntu1~ppa2~t) ...
Selecting previously unselected package wireshark.
Preparing to unpack .../wireshark_1.12.4-1ubuntu1~ppa2~t_amd64.deb ...
Unpacking wireshark (1.12.4-1ubuntu1~ppa2~t) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Setting up libc-ares2:amd64 (1.10.0-2) ...
Setting up libwsutil4:amd64 (1.12.4-1ubuntu1~ppa2~t) ...
Setting up libwiretap4:amd64 (1.12.4-1ubuntu1~ppa2~t) ...
Setting up libwireshark-data (1.12.4-1ubuntu1~ppa2~t) ...
Setting up libwireshark5:amd64 (1.12.4-1ubuntu1~ppa2~t) ...
Setting up wireshark-common (1.12.4-1ubuntu1~ppa2~t) ...
Executing "addgroup --quiet --system wireshark" failed.
Most probably the wireshark group exists, but is not a system group.
Please delete the existing group or re-create it as a system group and try configuring wireshark-common again.
dpkg: error processing package wireshark-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of wireshark:
 wireshark depends on wireshark-common (= 1.12.4-1ubuntu1~ppa2~t); however:
  Package wireshark-common is not configured yet.

dpkg: error processing package wireshark (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
 wireshark-common
 wireshark
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up wireshark-common (1.12.4-1ubuntu1~ppa2~t) ...
Executing "addgroup --quiet --system wireshark" failed.
Most probably the wireshark group exists, but is not a system group.
Please delete the existing group or re-create it as a system group and try     configuring wireshark-common again.
dpkg: error processing package wireshark-common (--configure):
 subprocess installed post-installation script returned error exit status     1
dpkg: dependency problems prevent configuration of wireshark:
 wireshark depends on wireshark-common (= 1.12.4-1ubuntu1~ppa2~t);      however:
  Package wireshark-common is not configured yet.

dpkg: error processing package wireshark (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 wireshark-common
 wireshark

I am lost at what to do.

2

The key part is this.

Most probably the wireshark group exists, but is not a system group.
Please delete the existing group or re-create it as a system group and try configuring wireshark-common again.

Try deleting the existing wireshark group (which is probably a leftover from your previous Wireshark installation) with sudo groupdel wireshark, and then run sudo dpkg --configure -a to do the configuration of the new Wireshark package.

1

The answer is in your question:

Executing "addgroup --quiet --system wireshark" failed.
Most probably the wireshark group exists, but is not a system group. 
Please delete the existing group or re-create it as a system group and try configuring wireshark-common again.

For this reason delete the group

sudo delgroup wireshark
sudo addgroup --quiet --system wireshark
sudo apt-get install --reinstall wireshark

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.