Debian 安装软件包 php5-tidy 时出错

Debian 安装软件包 php5-tidy 时出错

php5-tidy 有问题。

看起来有些东西坏了,我搞不清楚。我尝试了 --purge 等所有选项来清理并重新安装,但无济于事。

以下是我在安装 apt-get install php5-tidy 时遇到的错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libtidy-0.99-0
The following NEW packages will be installed:
  libtidy-0.99-0
0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded.
1 not fully installed or removed.
Need to get 0 B/155 kB of archives.
After this operation, 433 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 23110 files and directories currently installed.)
Unpacking libtidy-0.99-0 (from .../libtidy-0.99-0_20091223cvs-1.2+deb7u1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libtidy-0.99-0_20091223cvs-1.2+deb7u1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libtidy.so', which is also in package tidy 5.2.0
Errors were encountered while processing:
 /var/cache/apt/archives/libtidy-0.99-0_20091223cvs-1.2+deb7u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

感谢任何帮助并表示感谢:)

答案1

经过一番寻找,我得到了这个命令:

apt-get -o Dpkg::Options::="--force-overwrite" install libtidy-0.99-0

从此讨论中获得一些指点和帮助:https://askubuntu.com/a/491086

结果是强制安装(或重新安装)libtidy-0.99-0

相关内容