проблема с установкой php

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Bookkc
Сообщения: 245
ОС: Ubuntu, Gentoo, Debian

проблема с установкой php

Сообщение Bookkc »

Shell

root@debian:~# apt-get install php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php7.0 : Depends: libapache2-mod-php7.0 but it is not going to be installed or
php7.0-fpm but it is not going to be installed or
php7.0-cgi but it is not going to be installed
Depends: php7.0-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

собственно вот
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 21289
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: проблема с установкой php

Сообщение Bizdelnick »

Дистрибутив? Версия? Какие репозитории подключены?
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Bookkc
Сообщения: 245
ОС: Ubuntu, Gentoo, Debian

Re: проблема с установкой php

Сообщение Bookkc »

упс. забыл дописать. пардон.

Debian 9 x64

deb http://debian.volia.net/debian/ stretch main
deb-src http://debian.volia.net/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
deb http://debian.volia.net/debian/ stretch-updates main
deb-src http://debian.volia.net/debian/ stretch-updates main
Спасибо сказали:
Bookkc
Сообщения: 245
ОС: Ubuntu, Gentoo, Debian

Re: проблема с установкой php

Сообщение Bookkc »

подключил репо

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main

deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main

deb http://security.debian.org/debian-security/ stretch/updates main
deb-src http://security.debian.org/debian-security/ stretch/updates main

вроде заработало
Спасибо сказали: