我试图更新我的服务器,所以我通过ssh运行以下命令:
sudo do-release-upgrade
我得到以下错误:
Errors were encountered while processing:
php5-cli
php5-readline
php-pear
E: Sub-process /usr/bin/dpkg returned an error code (1)
我找了很多方法来解决我的问题,但找不到合适的方法来帮助我
我该怎么办才能修好它?
编辑:
感谢Sohail Answer,我做了以下事情:
sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak
sudo apt-get install -f
现在我没有通过http获取我的页面,正如你在根目录中看到的那样,它显示了我什么都没有的列表:
http://ec2-54-84-227-22.compute-1.amazonaws.com/
在index.html页面(我通过ssh看到他)中,它给了我一个找不到的页面:
http://ec2-54-84-227-22.compute-1.amazonaws.com/index.html
我现在该怎么办?
尝试此命令
sudo apt-get install -f
希望这将帮助您
多亏了Sohail Answer,我做了以下事情:
sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak
sudo apt-get install -f
然后ic在/etc/apache2/sites-available/00-default.conf文件中挂起了以下行:
DocumentRoot /var/www/html
通过
DocumentRoot /var/www
解决了我的问题。