简体   繁体   English

更新后Ubuntu服务器错误与Apache一致

[英]After update Ubuntu server error accord with apache

I tried to update my server, so I run the following command via ssh: 我试图更新服务器,所以我通过ssh运行以下命令:

sudo do-release-upgrade

I get the following error: 我收到以下错误:

Errors were encountered while processing:
       php5-cli
       php5-readline
       php-pear
E: Sub-process /usr/bin/dpkg returned an error code (1)

I searched a lot for a solution to my problem but couldn't find a suitable one that helps me. 我进行了很多搜索以寻找解决问题的方法,但找不到适合我的解决方案。

What do I have to do to fix it? 我该怎么做才能解决?

Edit: 编辑:

Thanks to Sohail Answer I did the following: 感谢Sohail Answer,我做了以下工作:

sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak
sudo apt-get install -f

now i dont get my pages via http as you can see in the root it display me list of nothing: 现在我没有通过http获取我的页面,因为您可以在根目录中看到它,但不显示任何内容:

http://ec2-54-84-227-22.compute-1.amazonaws.com/

and in the index.html page (that I see him via ssh) it give me page not found: 并且在index.html页面(我通过ssh看到他)中找到了我找不到的页面:

http://ec2-54-84-227-22.compute-1.amazonaws.com/index.html

What should I do now? 我现在应该怎么办?

Try this command 试试这个命令

sudo apt-get install -f

Hope this will help you 希望这个能对您有所帮助

thanks to Sohail Answer i did the following: 感谢Sohail Answer,我做了以下工作:

sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak
sudo apt-get install -f

then ic hanged the following line in the /etc/apache2/sites-available/000-default.conf file : 然后ic在/etc/apache2/sites-available/000-default.conf文件中挂起了以下行:

DocumentRoot /var/www/html

by 通过

DocumentRoot /var/www

that solve my problem. 解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM