Após uma atualização há alguns meses, o Wireshark não atualizou. Eu aprendi a desmarcá-lo, mas esqueci hoje. O atualizador baixou todas as atualizações. Recebo as seguintes mensagens de erro quando tento atualizar. Eu provavelmente cometi um erro quando tentei o apt-get remove e o apt-get purge para me livrar do Wireshark.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libwireshark-data
The following NEW packages will be installed:
libwireshark-data
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
1 not fully installed or removed.
Need to get 0 B/848 kB of archives.
After this operation, 5,292 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 233363 files and directories currently installed.)
Preparing to unpack .../libwireshark-data_1.99.6+git20150422121542~afb70bba-0ubuntu1~trusty1~ppa0_all.deb ...
Unpacking libwireshark-data (1.99.6+git20150422121542~afb70bba-0ubuntu1~trusty1~ppa0) ...
dpkg: error processing archive /var/cache/apt/archives/libwireshark-data_1.99.6+git20150422121542~afb70bba-0ubuntu1~trusty1~ppa0_all.deb (--unpack):
trying to overwrite '/usr/share/wireshark/dtds/pocsettings.dtd', which is also in package wireshark-common 1.99.0+git20140730111853~82bb8008-0ubuntu1~trusty1~ppa0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libwireshark-data_1.99.6+git20150422121542~afb70bba-0ubuntu1~trusty1~ppa0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
programmer@fireimager:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libwireshark0:amd64:
libwireshark0:amd64 depends on libwireshark-data (>= 1.99.6+git20150422121542~afb70bba-0ubuntu1~trusty1~ppa0); however:
Package libwireshark-data is not installed.
dpkg: error processing package libwireshark0:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libwireshark0:amd64
Isso também falha.
apt-get -f install
Como posso consertar o banco de dados do apt-get?
Editar
Com base no comentário de Terrance, pesquisei novamente e encontrei:
sudo dpkg --remove --force-remove-reinstreq wireshark
sudo dpkg --remove -force --force-remove-reinstreqgrep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* wireshark
Recebi o primeiro comando para ser executado, mas o segundo parece estar malformado.
Em /usr/share/wireshark
, encontrei esses arquivos e diretórios ( partial
está vazio).
libwireshark-data_1.99.6+git20150422121542~afb70bba-0ubuntu1~trusty1~ppa0_all.deb
libwireshark-data_1.99.6+git20150424075214~b284de81-0ubuntu1~trusty1~ppa0_all.deb
lock
partial
/usr/share/wireshark
tem vários diretórios e arquivos.
Eu consigo me dar muito bem sem o Wireshark.
EDITAR
apt-cache policy libwireshark-data
libwireshark-data:
Installed: 1.99.6+git20150430165916~3bf0d14a-0ubuntu1~trusty1~ppa0
Candidate: 1.99.6+git20150430165916~3bf0d14a-0ubuntu1~trusty1~ppa0
Version table:
*** 1.99.6+git20150430165916~3bf0d14a-0ubuntu1~trusty1~ppa0 0
500 http://ppa.launchpad.net/dreibh/ppa/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.10.6-1 0
500 http://apt-cache policy wireshark-common/ubuntu/ trusty/universe amd64 Packages
e
apt-cache policy wireshark-common
wireshark-common:
Installed: 1.99.6+git20150430165916~3bf0d14a-0ubuntu1~trusty1~ppa0
Candidate: 1.99.6+git20150430165916~3bf0d14a-0ubuntu1~trusty1~ppa0
Version table:
*** 1.99.6+git20150430165916~3bf0d14a-0ubuntu1~trusty1~ppa0 0
500 http://ppa.launchpad.net/dreibh/ppa/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1.10.6-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages