如何解决错误:/var/cache/apt/archives/wireshark-common_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb

如何解决错误:/var/cache/apt/archives/wireshark-common_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb

我有一个 ubuntu 13.10,并尝试在其上安装 wireshark。但我不断收到以下错误。

mininet@ubun_13_10:~/mininet$ sudo apt-get install wireshark
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-3.8.0-35-generic linux-image-extra-3.8.0-35-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  wireshark-common
Suggested packages:
  snmp-mibs-downloader
The following NEW packages will be installed:
  wireshark
The following packages will be upgraded:
  wireshark-common
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/18.7 MB of archives.
After this operation, 75.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
(Reading database ... 318716 files and directories currently installed.)
Preparing to replace wireshark-common 1.10.2-1 (using .../wireshark-common_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb) ...
Unpacking replacement wireshark-common ...
dpkg: error processing /var/cache/apt/archives/wireshark-common_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb (--unpack):
 trying to overwrite '/etc/wireshark/init.lua', which is also in package libwireshark-data 1.10.6-1ubuntu2~ppa2~s
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package wireshark.
Unpacking wireshark (from .../wireshark_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for mime-support ...
Processing triggers for menu ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/wireshark-common_1.11.3+svn54990-0ubuntu1~saucy1~ppa0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mininet@ubun_13_10:~/mininet$ 


mininet@ubun_13_10:/etc/init.d$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.10
DISTRIB_CODENAME=saucy
DISTRIB_DESCRIPTION="Ubuntu 13.10"
mininet@ubun_13_10:/etc/init.d$ 

我该怎么做才能解决上述错误?

答案1

请尝试以下命令:(它在我使用 Ubuntu 12.04 时有效)

sudo dpkg --force-all -i /var/cache/apt/archives/wireshark-common_1.11.3+svn54990-
0ubuntu1~saucy1~ppa0_amd64.deb

sudo apt-get install wireshark

相关内容