gpt4 book ai didi

ubuntu-12.04 - dpkg : error processing/var/cache/apt/archives/apache2-bin_2. 4.16-4+deb.sury.org~精确+4_i386.deb

转载 作者:行者123 更新时间:2023-12-01 06:11:11 26 4
gpt4 key购买 nike

更新我的 php 版本时出现此错误。

PHP  5.3.10
OS Ubuntu 12.04.1 LTS

运行命令时 sudo apt-get install php5 ,得到以下错误:
Unpacking apache2-bin (from .../apache2-bin_2.4.16-4+deb.sury.org~precise+4_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2-bin_2.4.16-4+deb.sury.org~precise+4_i386.deb (--unpack):
trying to overwrite '/usr/share/man/man8/apache2.8.gz', which is also in package apache2.2-common 2.2.22-1ubuntu1
dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/apache2-bin_2.4.16-4+deb.sury.org~precise+4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我曾尝试以下命令,但问题仍然存在。
sudo apt-get clean
sudo dpkg --configure -a
sudo apt-get install -f

请为此提出解决方案,谢谢

最佳答案

我在升级 PHP 时遇到了同样的问题,你可以试试这个

须藤 dpkg -i --force-overwrite/var/cache/apt/archives/apache2-bin_2.4.16-4+deb.sury.org~precise+4_i386.deb

然后安装php5

sudo apt-get -f 安装 php5

这将升级apache2,享受它。

关于ubuntu-12.04 - dpkg : error processing/var/cache/apt/archives/apache2-bin_2. 4.16-4+deb.sury.org~精确+4_i386.deb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33036397/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com