Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 18/01/2016, à 10:23

alfirdaous

[RESOLU]Installation du php5-ffmpeg

Bonjour,

J'essais d'installer le package php5-ffmpeg, mais je recois cette erreur:

# sudo apt-get install php5-ffmpeg
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.
 php5-ffmpeg : Depends: phpapi-20090626
E: Unable to correct problems, you have held broken packages.

Quelques informations utiles:

# whereis ffmpeg
ffmpeg: /bin/ffmpeg /usr/bin/ffmpeg /usr/bin/X11/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise
# apache2 -v
Server version: Apache/2.4.16 (Ubuntu)
Server built:   

Merci pour votre aide

Dernière modification par alfirdaous (Le 22/01/2016, à 05:26)

Hors ligne

#2 Le 18/01/2016, à 12:46

xabilon

Re : [RESOLU]Installation du php5-ffmpeg

Salut

Montre le contenu du fichier /etc/apt/sources.list
Pour pouvoir installer php5-ffmpeg, il faut aussi qu'au moins un de ces paquets soit installé :  libapache2-mod-php5, libapache2-mod-php5filter, php5-cgi, php5-cli, php5-fpm


Pour passer un sujet en résolu : modifiez le premier message et ajoutez [Résolu] au titre.

Hors ligne

#3 Le 18/01/2016, à 13:43

alfirdaous

Re : [RESOLU]Installation du php5-ffmpeg

voici le contenu de sources.list

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://de.archive.ubuntu.com/ubuntu/ precise universe
deb http://de.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://de.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

# Webmin:
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Merci

Hors ligne

#4 Le 18/01/2016, à 15:23

xabilon

Re : [RESOLU]Installation du php5-ffmpeg

Le sources.list est ok pour ce qui est des dépôts Ubuntu, mais tu as des dépôts pour Debian dedans... qu'y a-t-il dans ces dépôts ?
As-tu vérifié que l'un des paquets que j'ai listé en #2 est installé ? Tous ces paquets installent le paquet virtuel phpapi-20090626 dont php5-ffmpeg dépend
As-tu fait un sudo apt-get update avant installation de php5-ffmepg ?

Dernière modification par xabilon (Le 18/01/2016, à 15:33)


Pour passer un sujet en résolu : modifiez le premier message et ajoutez [Résolu] au titre.

Hors ligne

#5 Le 19/01/2016, à 05:05

alfirdaous

Re : [RESOLU]Installation du php5-ffmpeg

J'ai presque tous les paquets installés, voici le resultat de la commande:

# apt-get install libapache2-mod-php5 libapache2-mod-php5filter php5-cgi php5-cli php5-fpm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-cgi is already the newest version.
php5-cli is already the newest version.
libapache2-mod-php5 is already the newest version.
php5-fpm is already the newest version.
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.
 libapache2-mod-php5 : Conflicts: libapache2-mod-php5filter but 5.5.31+dfsg-2+deb.sury.org~precise+1 is to be installed
 libapache2-mod-php5filter : Conflicts: libapache2-mod-php5 but 5.5.31+dfsg-2+deb.sury.org~precise+1 is to be installed
E: Unable to correct problems, you have held broken packages.

Hors ligne

#6 Le 19/01/2016, à 14:58

xabilon

Re : [RESOLU]Installation du php5-ffmpeg

libapache2-mod-php5 : Conflicts: libapache2-mod-php5filter but 5.5.31+dfsg-2+deb.sury.org~precise+1 is to be installed
 libapache2-mod-php5filter : Conflicts: libapache2-mod-php5 but 5.5.31+dfsg-2+deb.sury.org~precise+1 is to be installed

Les versions de ces paquets ne correspondent pas aux paquets présents dans les dépôts officiels d'Ubuntu 12.04 :
http://packages.ubuntu.com/precise-upda … 2-mod-php5
http://packages.ubuntu.com/precise-upda … php5filter
Ubuntu 12.04 ne fournit que PHP 5.3
Ils proviennent donc d'un autre dépôt. Il n'est pas dans le sources.list, mais doit se trouver dans le dossier /etc/apt/sources.list.d
Tu as donc, via ce dépôt, installé PHP 5.5, mais ce dépôt ne contient pas php5-ffmpeg, donc il essaye d'installer celui des dépôts officiels (5.3)... qui est incompatible.

Donc 2 solutions :
- ou tu reviens à la version des dépôts officiels PHP 5.3 pour pouvoir installer php5-ffmpeg.
- ou tu compiles php5-ffmpeg, et ça peut être galère parce qu'il me semble qu'il faut une vieille version de ffmpeg.

Mettre à niveau Ubuntu 12.04 vers 14.04 ne servira à rien, puisque php5-ffmpeg a été supprimé des dépôts en 2013 (considéré comme obsolète) et n'est plus disponible sur Ubuntu.


Pour passer un sujet en résolu : modifiez le premier message et ajoutez [Résolu] au titre.

Hors ligne

#7 Le 20/01/2016, à 03:40

alfirdaous

Re : [RESOLU]Installation du php5-ffmpeg

Je pense que la meilleur solution c'est:

- Au niveau terminal (CLI) utiliser le package FFMPEG et AVCONV.
- Au niveau PHP, on peut obtenir plus d'informations avec gedit3 que php5-ffmpeg

Hors ligne

#8 Le 20/01/2016, à 10:28

xabilon

Re : [RESOLU]Installation du php5-ffmpeg

Ah ça c'est toi qui vois pour le remplacement, moi je te parlais de ton problème d'installation.


Pour passer un sujet en résolu : modifiez le premier message et ajoutez [Résolu] au titre.

Hors ligne