root@mycompanyname:~# apt-get install apache2*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2.conf
E: Couldn't find any package by regex 'apache2.conf'
root@mycompanyname:~#
背景:
想要将php5.3(5.3 PHP = 7.43 INR)更新为php5.5(5.5 PHP = 7.72 INR),以按照此处给出的步骤进行操作。
此后,apache2停止检测php本身。
经过大量的故障排除后,我们使用以下命令删除了php和apache2:
root@mycompanyname:~# apt-get purge apache2*
root@mycompanyname:~# apt-get purge php*
root@mycompanyname:~# apt-get autoremove
root@mycompanyname:~# apt-get autoclean
root@mycompanyname:~# apt-get clean
root@mycompanyname:~# apt-get remove
root@mycompanyname:~# apt-get purge
root@mycompanyname:~# apt-get install
root@mycompanyname:~# dpkg -a -configure
在完成所有这些操作之后,我们尝试重新安装apache2并开始出现该错误:
仅供参考,这里是apt的sources.list文件。
使用以下命令时,我们不会遇到任何问题:
root@mycompanyname:~# apt-get update && apt-get upgrade
请帮忙!提前致谢。
apt-get install apache2*
应该只是
apt-get install apache2
Apt将建议您在此时安装一些额外的软件包。通读它们并确定是否需要/但我通常只安装
sudo apt-get install apache2 apache2-utils
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句