2 votes

Échec de l'installation de wireshark en raison d'erreurs dans wireshark-common en tant que super utilisateur sudo

Je n'ai pas le mot de passe root donc j'ai entré en mode sudo super utilisateur pour tenter d'installer wireshark sur mon ordinateur portable. J'ai essayé d'installer wireshark précédemment mais je n'avais pas l'accès root la première fois et je ne recevais donc aucune donnée. J'ai supprimé le programme et essayé de le réinstaller et j'ai reçu ce beau message d'erreur :

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

Je ne sais plus quoi faire.

2voto

fkraiem Points 11558

La partie essentielle est la suivante.

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.

Essayez de supprimer le wireshark (qui est probablement un reste de votre installation précédente de Wireshark) avec sudo groupdel wireshark puis exécutez sudo dpkg --configure -a pour faire la configuration du nouveau paquet Wireshark.

1voto

A.B. Points 84870

La réponse est dans votre 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.

Pour cette raison, supprimez le groupe

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

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X