Почему возникает эта ошибка при установке php? [дубликат]

Команда: sudo apt-get install php7.0

Вывод:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
php7.0 is already the newest version (7.0.8-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.1) ...
Error: The new file /usr/lib/php/7.0/php.ini-production does not exist!
dpkg: error processing package libapache2-mod-php7.0 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libapache2-mod-php7.0
E: Sub-process /usr/bin/dpkg returned an error code (1)

При установке libapache2-mod-php7.0

Команда: sudo apt-get install libapache2-mod-php7.0

Вывод:

 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 libapache2-mod-php7.0 is already the newest version (7.0.8-0ubuntu0.16.04.1).
 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 1 not fully installed or removed.
 After this operation, 0 B of additional disk space will be used.
 Do you want to continue? [Y/n] Y
 Setting up libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.1) ...
 Error: The new file /usr/lib/php/7.0/php.ini-production does not exist!
 dpkg: error processing package libapache2-mod-php7.0 (--configure):
  subprocess installed post-installation script returned error exit status 1
 Errors were encountered while processing:
  libapache2-mod-php7.0
 E: Sub-process /usr/bin/dpkg returned an error code (1)

Как решить эту проблему.

5
задан 27 July 2016 в 09:40

0 ответов

Другие вопросы по тегам:

Похожие вопросы: