In playing around with some wireless network auditing tools I ran into a problem that told me to try and use a previous version of libpcap. In a rookie move I tried to install both the 64 bit and the i386 versions...and older versions at that. Didn't work correctly, and now I can't seem to get the proper version restored. I tried to start by uninstalling Wireshark, and here's what happens when I run into:
Code:
root@murray:/home/bill# sudo apt-get -f remove wireshark wireshark-common
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.5.3-2) but 1.4.0-2 is to be installed
libpcap0.8:i386 : Breaks: libpcap0.8 (!= 1.4.0-2) but 1.5.3-2 is to be installed
libpcap0.8-dev:i386 : Depends: libpcap0.8:i386 (= 1.5.3-2) but 1.4.0-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Following the instructions gives me this:
Code:
root@murray:/home/bill# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libstdc++-4.8-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libpcap0.8:i386
The following packages will be upgraded:
libpcap0.8:i386
1 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
3 not fully installed or removed.
Need to get 0 B/108 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 216931 files and directories currently installed.)
Preparing to unpack .../libpcap0.8_1.5.3-2_i386.deb ...
Unpacking libpcap0.8:i386 (1.5.3-2) over (1.4.0-2) ...
dpkg: error processing archive /var/cache/apt/archives/libpcap0.8_1.5.3-2_i386.deb (--unpack):
trying to overwrite shared '/usr/share/man/man7/pcap-filter.7.gz', which is different from other instances of package libpcap0.8:i386
Processing triggers for man-db (2.6.7.1-1) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
And for reference the command I tried to use when rolling back libpcap:
Code:
wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpcap/libpcap0.8_1.4.0-2_i386.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpcap/libpcap0.8-dev_1.4.0-2_i386.deb
then install:
Code:
sudo dpkg -i libpcap0.8_1.4.0-2_i386.deb libpcap0.8-dev_1.4.0-2_i386.deb Note: if you have a 64bit OS, then change out to: libpcap0.8_1.4.0-2_amd64.deb libpcap0.8-dev_1.4.0-2_amd64.deb
sudo dpkg -i libpcap0.8_1.4.0-2_amd64.deb libpcap0.8-dev_1.4.0-2_amd64.deb
I just hopped back on the Ubuntu wagon after 3 years away, and I know the forums are great so thank you very much to anyone who can help me get this sorted out!
Bookmarks