O Ubuntu me avisou que eu tenho algumas atualizações, mas ao tentar atualizar, recebo esta mensagem ...
The package system is broken: Check if you are using third party repositories. If so disable them, sine they area common source of problems. Furthermore run the following commend in a Terminal: apt-get install -f
Eu segui as instruções aqui para desativar repositórios de terceiros e ainda tenho o mesmo problema.
No terminal, como sugerido, apt-get install -f
retorna isso ...
telos182@imaLaptop:/$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpcap0.8
The following packages will be upgraded:
libpcap0.8
1 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
4 not fully installed or removed.
Need to get 0 B/117 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 220047 files and directories currently installed.)
Preparing to unpack .../libpcap0.8_1.7.4-2_amd64.deb ...
Unpacking libpcap0.8:amd64 (1.7.4-2) over (1.4.0-2) ...
dpkg: error processing archive /var/cache/apt/archives/libpcap0.8_1.7.4-2_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/man/man7/pcap-filter.7.gz', which is different from other instances of package libpcap0.8:amd64
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpcap0.8_1.7.4-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Além disso, apt-get remove
me dá isso ...
telos182@imaLaptop:/$ sudo apt-get remove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpcap0.8 : Breaks: libpcap0.8:i386 (!= 1.4.0-2) but 1.7.4-2 is installed
libpcap0.8:i386 : Breaks: libpcap0.8 (!= 1.7.4-2) but 1.4.0-2 is installed
libpcap0.8-dev : Depends: libpcap0.8 (= 1.7.4-2) but 1.4.0-2 is installed
tcpdump : Depends: libpcap0.8 (>= 1.5.1) but 1.4.0-2 is installed
E: Unmet dependencies. Try using -f.
E apt-get remove -f
, como sugere, volta com isso ...
telos182@imaLaptop:/$ sudo apt-get remove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpcap0.8
The following packages will be upgraded:
libpcap0.8
1 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
4 not fully installed or removed.
Need to get 0 B/117 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 220047 files and directories currently installed.)
Preparing to unpack .../libpcap0.8_1.7.4-2_amd64.deb ...
Unpacking libpcap0.8:amd64 (1.7.4-2) over (1.4.0-2) ...
dpkg: error processing archive /var/cache/apt/archives/libpcap0.8_1.7.4-2_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/man/man7/pcap-filter.7.gz', which is different from other instances of package libpcap0.8:amd64
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpcap0.8_1.7.4-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Eu tenho uma boa idéia de como tudo isso aconteceu, mas infelizmente não consegui resolver o problema: (