@kapitoly
учусь

Почему не удается обновиться до Php 7 на debian?

Не получается обновить php 5.4 До 7.0

Действия:

1. root@server:~# add-apt-repository ppa:ondrej/php
2.root@server:~# apt-get update
3.
root@server:~# apt-get install php7.0                                                             
Reading package lists... Done                                                                         
Building dependency tree                                                                              
Reading state information... Done                                                                     
Note, selecting 'php7.0-cli' for regex 'php7.0'                                                       
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.                                       
root@server:~#


Что можно еще сделать?

Дополнительно инфо:
root@server:~# apt-get install php7.0 php-pear                                                      
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.
  • Вопрос задан
  • 1529 просмотров
Решения вопроса 1
@alcyone
UNIX-админ
PPA-репы предназначены для Ubuntu. Не делайте из системы франкенштейна и ставьте из testing.
"you have held broken packages" как раз и означает, что у вас FrankenDebian, то есть репы для разных релизов. Обновляйте всю систему до Stretch и не мучайтесь.
https://wiki.debian.org/DontBreakDebian

# apt-cache policy php7.0
php7.0:
  Installed: 7.0.6-13
  Candidate: 7.0.13-2
  Version table:
     7.0.13-2 0
        500 http://mirror.yandex.ru/debian/ testing/main amd64 Packages
 *** 7.0.6-13 0
        100 /var/lib/dpkg/status

# cat /etc/apt/sources.list.d/debian-testing.list 
deb      "http://mirror.yandex.ru/debian/" testing non-free main
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы