我尝试在删除 ettercap-gtk 后重新安装它,因为它由于某种原因随机关闭,这是我收到的错误
# apt-get install ettercap-gtk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ettercap-gtk
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0B/838kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 277050 files and directories currently installed.)
Unpacking ettercap-gtk (from .../ettercap-gtk_0.7.3-bt0_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/ettercap-gtk_0.7.3-bt0_amd64.deb (--unpack):
trying to overwrite '/usr/bin/etterlog', which is also in package ettercap-common 1:0.7.3-1.4ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/ettercap-gtk_0.7.3-bt0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)`
谢谢您的帮助,我对 Linux 还很陌生,所以对这个错误感到困惑。
答案1
您似乎将 Ubuntu 存档中的软件包与来自某些外部源的软件包混合在一起(0.7.3-bt0 看起来不像是 Ubuntu 中软件包使用的版本号)。特别是,非发行版软件包似乎ettercap-gtk
包含已拆分成ettercap-common
Ubuntu 中单独软件包的文件。
也许尝试禁用附加包源,运行apt-get update
然后重试?