Forum Linux.debian/ubuntu Probleme APT après MAJ etch => lenny

Posté par  .
Étiquettes :
0
16
juin
2008

Bonjour!

Après etre passé de etch à lenny, j'ai eu un problème avec mon gestionnaire de paquet préféré APT.
A chaque fois que je fais un apt-get install, ou remove, j'ai le message d'erreur suivant:


TOTO:/home/olivier# apt-get remove evince
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
ghostscript-x: Depends: ghostscript (>= 8.62) but it is not going to be installed
gs-esp: Depends: ghostscript but it is not going to be installed
gtk2-engines-pixbuf: Depends: libatk1.0-0 (>= 1.20.0) but 1.12.4-3 is to be installed
Depends: libcairo2 (>= 1.4.0) but 1.2.4-4.1+etch1 is to be installed
hplip: Depends: python (>= 2.5) but 2.4.4-2 is to be installed
ijsgutenprint: Depends: ghostscript (>= 8.61) but it is not going to be installed
libbonoboui2-0: Depends: libatk1.0-0 (>= 1.20.0) but 1.12.4-3 is to be installed
Depends: libcairo2 (>= 1.4.0) but 1.2.4-4.1+etch1 is to be installed
Depends: libglade2-0 (>= 1:2.6.1) but 1:2.6.0-4 is to be installed
Depends: libgnome2-0 (>= 2.17.3) but 2.16.0-2 is to be installed
Depends: libgnomevfs2-0 (>= 1:2.17.90) but 1:2.14.2-7 is to be installed
libfontconfig1-dev: Depends: libfontconfig1 (= 2.5.0-2) but 2.4.2-1.2 is to be installed
libgconf2-4: Depends: libldap-2.4-2 (>= 2.4.7) but it is not going to be installed
libgnomeui-0: Depends: libatk1.0-0 (>= 1.20.0) but 1.12.4-3 is to be installed
Depends: libglade2-0 (>= 1:2.6.1) but 1:2.6.0-4 is to be installed
Depends: libgnome-keyring0 (>= 2.19.6) but 0.6.0-3 is to be installed
Depends: libgnome2-0 (>= 2.17.3) but 2.16.0-2 is to be installed
Depends: libgnomevfs2-0 (>= 1:2.17.90) but 1:2.14.2-7 is to be installed
Depends: libgnomeui-common (>= 2.20) but 2.14.1-2 is to be installed
libgtk2.0-0: Depends: libatk1.0-0 (>= 1.20.0) but 1.12.4-3 is to be installed
Depends: libcairo2 (>= 1.4.0) but 1.2.4-4.1+etch1 is to be installed
libpango1.0-0: Depends: libcairo2 (>= 1.4.0) but 1.2.4-4.1+etch1 is to be installed
libperl5.10: Depends: perl-base (= 5.10.0-10) but 5.8.8-7etch3 is to be installed
libtext-charwidth-perl: Depends: perl-base (>= 5.10.0-9) but 5.8.8-7etch3 is to be installed
Depends: perlapi-5.10.0
metacity: Depends: libatk1.0-0 (>= 1.20.0) but 1.12.4-3 is to be installed
Depends: libcairo2 (>= 1.4.0) but 1.2.4-4.1+etch1 is to be installed
Depends: libmetacity0 (>= 1:2.22.0) but 1:2.14.5-4 is to be installed
Depends: metacity-common (>= 1:2.22) but 1:2.14.5-4 is to be installed
openoffice.org: Depends: openoffice.org-filter-binfilter but it is not going to be installed
Depends: openoffice.org-filter-mobiledev but it is not going to be installed
Depends: openoffice.org-officebean but it is not going to be installed
Depends: openoffice.org-writer2latex but it is not going to be installed
openoffice.org-base: Depends: libhsqldb-java (>= 1.8.0.9-1) but 1.8.0.7-1etch1 is to be installed
Depends: libstlport4.6ldbl but it is not going to be installed
Depends: openoffice.org-base-core (= 1:2.4.0-5) but it is not going to be installed
openoffice.org-calc: Depends: libstlport4.6ldbl but it is not going to be installed
Depends: libsuitesparse-3.1.0 but it is not going to be installed
Depends: openoffice.org-base-core (= 1:2.4.0-5) but it is not going to be installed
openoffice.org-core: Depends: libcurl3 (>= 7.16.2-1) but 7.15.5-1etch1 is to be installed
Depends: libhunspell-1.2-0 but it is not going to be installed
Depends: libhyphen0 (>= 2.3.1-3) but it is not going to be installed
Depends: libicu38 (>= 3.8-5) but it is not going to be installed
Depends: libldap-2.4-2 (>= 2.4.7) but it is not going to be installed
Depends: libneon27 (>= 0.28.2) but it is not going to be installed
Depends: libnss3-1d (>= 3.12.0~beta3) but it is not going to be installed
Depends: libstlport4.6ldbl but it is not going to be installed
Depends: openoffice.org-common (> 1:2.4.0) but 2.0.4.dfsg.2-7etch5 is to be installed
openoffice.org-draw: Depends: libstlport4.6ldbl but it is not going to be installed
Depends: libwpg-0.1-1 but it is not going to be installed
openoffice.org-evolution: Depends: libstlport4.6ldbl but it is not going to be installed
openoffice.org-gcj: Depends: bsh-gcj but it is not going to be installed
Depends: java-gcj-compat but it is not going to be installed
Depends: libgcj-bc (>= 4.3.0-1) but 4.1.1-21 is to be installed
Depends: libhsqldb-java-gcj but it is not going to be installed
Depends: libxalan2-java-gcj but it is not going to be installed
Depends: libxerces2-java-gcj but it is not going to be installed
openoffice.org-gnome: Depends: libgnomevfs2-0 (>= 1:2.17.90) but 1:2.14.2-7 is to be installed
Depends: libstlport4.6ldbl but it is not going to be installed
openoffice.org-gtk: Depends: libatk1.0-0 (>= 1.20.0) but 1.12.4-3 is to be installed
Depends: libstlport4.6ldbl but it is not going to be installed
Depends: openoffice.org-style-tango but it is not going to be installed
openoffice.org-impress: Depends: libstlport4.6ldbl but it is not going to be installed
openoffice.org-math: Depends: libstlport4.6ldbl but it is not going to be installed
openoffice.org-writer: Depends: libicu38 (>= 3.8-5) but it is not going to be installed
Depends: libstlport4.6ldbl but it is not going to be installed
Depends: libwps-0.1-1 but it is not going to be installed
Depends: openoffice.org-base-core (= 1:2.4.0-5) but it is not going to be installed
perl: Depends: perl-base (= 5.10.0-10) but 5.8.8-7etch3 is to be installed
printconf: Depends: python-foomatic (>= 0.7.8) but 0.7.7 is to be installed
Depends: openprinting-ppds but it is not going to be installed
python-apt: Depends: libapt-inst-libc6.7-6-1.1
Depends: libapt-pkg-libc6.7-6-4.6
python-support: Depends: dpkg (>= 1.14.19) but 1.13.25 is to be installed
python-uno: Depends: libstlport4.6ldbl but it is not going to be installed
Depends: python (>= 2.5) but 2.4.4-2 is to be installed
ucf: Depends: debconf (>= 1.5.19) but 1.5.11etch1 is to be installed or
cdebconf but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
TOTO:/home/olivier#


Je vous prie d'excuser la longueur du message...
Si quelqu'un a une idée, Merci d'avance :)
  • # + d'info

    Posté par  (site web personnel) . Évalué à 1.

    Quel est le contenu du fichier /etc/apt/sources.list?

    Que dit la commande suivante?
    $ apt-cache policy evince

    Il n'est pas normal que le système prenne en priorité des paquets pour etch alors que tu dis être passé à lenny.
  • # apt-get -f install

    Posté par  (site web personnel) . Évalué à 3.

    et si tu fait un apt-get -f install, comme il te le demande, ça donne quoi ?
    • [^] # Re: apt-get -f install

      Posté par  . Évalué à 1.

      On dirait qu'il n'arrive pas a enlever le paquet PHP:
      TOTO:/home/olivier# apt-get -f install
      Reading package lists... Done
      Building dependency tree... Done
      Correcting dependencies... Done
      The following packages will be REMOVED:
        libapache-mod-php5
      0 upgraded, 0 newly installed, 1 to remove and 528 not upgraded.
      After this operation, 5468kB disk space will be freed.
      Do you want to continue [Y/n]? y
      (Reading database ... 80268 files and directories currently installed.)
      Removing libapache-mod-php5 ...
      /var/lib/dpkg/info/libapache-mod-php5.prerm: line 13: apache-modconf: command not found
      dpkg: error processing libapache-mod-php5 (--remove):
       subprocess pre-removal script returned error exit status 127
      Errors were encountered while processing:
       libapache-mod-php5
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      TOTO:/home/olivier#
      
      
      • [^] # Re: apt-get -f install

        Posté par  . Évalué à 1.

        Un peu plus de précisions sur le script en question:
        
        TOTO:/home/olivier# cat -n /var/lib/dpkg/info/libapache-mod-php5.prerm
             1  #!/bin/sh
             2
             3  set -e
             4
             5
             6
             7  if [ "$1" != "remove" -a "$1" != "purge" ]; then
             8          exit 0
             9  fi
            10
            11  for i in apache apache-ssl apache-perl; do
            12          if [ -e /etc/$i/httpd.conf ]; then
            13                  apache-modconf $i disable mod_php5 quiet
            14          fi
            15  done
            16
            17  exit 0
        
        
        
        • [^] # Re: apt-get -f install

          Posté par  . Évalué à 2.

          Dans ce cas là, assez rare, j'édite le fichier /var/lib/dpkg/info/libapache-mod-php5.prerm et je mets exit 0 en ligne 2.

          Ne pas oublier de réinstaller le paquet ensuite, pour qu'il regénère des scripts corrects.
          • [^] # Re: apt-get -f install

            Posté par  . Évalué à 2.

            Merci ça marche :)
            Tu peux m'expliquer quelle était la nature exacte du probleme stp?
            (Simple curiosité)
            • [^] # Re: apt-get -f install

              Posté par  . Évalué à 3.

              Deja, un truc qui ne va pas aider, c'est qu'apache 1.3 n'existe plus dans lenny, donc passer a apache2 devrait pouvoir aider pas mal...

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.