Installation php

Résolu
tarekham Messages postés 63 Statut Membre -  
tarekham Messages postés 63 Statut Membre -
Bonjour,

lorsque j'essaye d'installer php sur mon serveur avec "apt-get install libapache2-mod-php5", j'ai le message suivant :

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libapache2-mod-php5' has no installation candidate

Comment je peux corriger ça s'il vous plaît ?

Merci

1 réponse

  1. Reivax962 Messages postés 3742 Statut Membre 1 011
     
    Bonjour,

    Php 5 est obsolète et n'est plus disponible dans les dépôts officiels...
    Essaie simplement
    sudo apt-get install libapache2-mod-php php

    Sinon, tu dois encore pouvoir trouver des PPA qui le proposent. Tu as vraiment besoin de la version 5 ?

    Xavier
    0
    1. tarekham Messages postés 63 Statut Membre
       
      non je veux juste installer php peu importe la version.
      0
    2. tarekham Messages postés 63 Statut Membre
       
      voilà ce que j'ai eu :

      # sudo apt-get install libapache2-mod-php php
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      php is already the newest version (1:7.0+49).
      php set to manually installed.
      The following package was automatically installed and is no longer required:
      libintl-perl
      Use 'sudo apt autoremove' to remove it.
      The following NEW packages will be installed:
      libapache2-mod-php
      0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
      Need to get 5,168 B of archives.
      After this operation, 16.4 kB of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Err:1 http://ftp.fr.debian.org/debian/ stable/main amd64 libapache2-mod-php all 1 :7.0+49
      Temporary failure resolving 'ftp.fr.debian.org'
      E: Failed to fetch http://ftp.fr.debian.org/debian/pool/main/p/php-defaults/liba pache2-mod-php_7.0+49_all.deb Temporary failure resolving 'ftp.fr.debian.org'
      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis sing?
      0
    3. Reivax962 Messages postés 3742 Statut Membre 1 011
       
      Euh... Ça c'est bizarre...
      Tu as essayé de relancer
      sudo apt-get update
      comme il te le propose ?
      0
    4. tarekham Messages postés 63 Statut Membre
       
      voilà ce que j'ai :

      # sudo apt-get update
      Err:1 http://ftp.fr.debian.org/debian/ stable InRelease
      Temporary failure resolving 'ftp.fr.debian.org'
      Err:2 https://www.debian.org/security/ stable/updates InRelease
      Temporary failure resolving 'security.debian.org'
      Err:3 http://ftp.fr.debian.org/debian/ stable-updates InRelease
      Temporary failure resolving 'ftp.fr.debian.org'
      Reading package lists... Done
      W: Failed to fetch http://ftp.fr.debian.org/debian/dists/stable/InRelease Temporary failure resolving 'ftp.fr.debian.org'
      W: Failed to fetch http://security-cdn.debian.org/dists/stable/updates/InRelease Temporary failure resolving 'security.debian.org'
      W: Failed to fetch http://ftp.fr.debian.org/debian/dists/stable-updates/InRelease Temporary failure resolving 'ftp.fr.debian.org'
      W: Some index files failed to download. They have been ignored, or old ones used instead.
      0
    5. tarekham Messages postés 63 Statut Membre
       
      j'ai la meme erreur quand je veux installer sysstat par exemple :
      apt-get install sysstat
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following package was automatically installed and is no longer required:
      libintl-perl
      Use 'apt autoremove' to remove it.
      The following additional packages will be installed:
      libsensors4
      Suggested packages:
      lm-sensors isag
      The following NEW packages will be installed:
      libsensors4 sysstat
      0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
      Need to get 414 kB of archives.
      After this operation, 1,489 kB of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Err:1 http://ftp.fr.debian.org/debian/ stable/main amd64 libsensors4 amd64 1:3.4. 0-4
      Temporary failure resolving 'ftp.fr.debian.org'
      Err:2 http://ftp.fr.debian.org/debian/ stable/main amd64 sysstat amd64 11.4.3-2
      Temporary failure resolving 'ftp.fr.debian.org'
      E: Failed to fetch http://ftp.fr.debian.org/debian/pool/main/l/lm-sensors/libsen sors4_3.4.0-4_amd64.deb Temporary failure resolving 'ftp.fr.debian.org'
      E: Failed to fetch http://ftp.fr.debian.org/debian/pool/main/s/sysstat/sysstat_1 1.4.3-2_amd64.deb Temporary failure resolving 'ftp.fr.debian.org'
      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis sing?



      quelqu'un a une idée sur cette erreur ?
      0