Downgrade qui ne veut pas finir !

Bonjour à tous,
J’avais une machine sous Wheezy dont j’ai fait l’upgrade vers Jessie.

Un problème de compatibilité de ma carte graphique sous Jessie me fait revenir (douloureusement) en arrière.

Malheureusement, cela ne se passe pas très bien. network-manager et grub-pc m’ont posé quelques soucis à downgrader.

Actuellement, il semblerait que libaudit1 bloque tout en version jessie, et pas moyen d’installer libaudit0 sans que ça me mette de gros warnings sur apt-get.

Pourtant, normalement le /etc/apt/preferences devrait être bon j’imagine :

/etc/apt/preferences :

[code]Package: *
Pin: release a=oldstable
Pin-priority: 1001
#Pin-priority: 900

Package: *
Pin: release a=stable
Pin-priority: 90

#Package: *
#Pin: release a=testing
#Pin-priority: 90

#Package: *
#Pin: release a=experimental
#Pin-priority: 90

#Package: *
#Pin: release a=waldorf
#Pin-priority: 90
[/code]

Et le /etc/apt/sources.list :

[code]deb http://debian.proxad.net/debian/ wheezy main contrib non-free
deb-src http://debian.proxad.net/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

wheezy-updates, previously known as ‘volatile’

deb http://debian.proxad.net/debian/ wheezy-updates main
deb-src http://debian.proxad.net/debian/ wheezy-updates main

wheezy-backports

deb http://debian.proxad.net/debian/ wheezy-backports main
deb-src http://debian.proxad.net/debian/ wheezy-backports main

Crunchbang

#deb http://packages.crunchbang.org/waldorf waldorf main
#deb-src http://packages.crunchbang.org/waldorf waldorf main

Mozilla

#deb http://mozilla.debian.net/ wheezy-backports iceweasel-release

Node.js

#deb https://deb.nodesource.com/node wheezy main

Jessie

#deb http://debian.proxad.net/debian/ jessie main contrib non-free
#deb-src http://debian.proxad.net/debian/ jessie main[/code]

Merci par avance pour votre aide, je suis perdu !

Bon, suite de l’épisode plus tard, je viens de réussir à faire accepter le /etc/apt/preferences. J’ai enlevé tous les commentaires de ce fichier et j’ai laissé le strict minimum.

Apparemment le fichier /etc/apt/preferences n’a pas l’air d’accepter les commentaires… À moins que ce ne soit autre chose ?

Salut,

[quote=“Le Barde”]J’avais une machine sous Wheezy dont j’ai fait l’upgrade vers Jessie.
[/quote]
Quelle était le contenu du fichier sources.list à ce moment là ?
[mono]systemd[/mono] est-il présent ?

[mono]nvidia[/mono] ?
Quelles en sont les symptômes ?
[mono]Pin-priority: 90[/mono] Ce n’est pas bon tout ça.

[ul][li] Wheezy = oldstable[/li]
[li] Jessie = stable[/li]
[li] Testing = stretch[/li][/ul]

[quote=“Le Barde”]/etc/apt/preferences :
Package: *
Pin: release a=oldstable
Pin-priority: 1001
[strike]#Pin-priority: 900[/strike]

Package: *
Pin: release a=stable
Pin-priority: 90

#Package: *
#Pin: release a=testing
#Pin-priority: 90

#Package: *
#Pin: release a=experimental
#Pin-priority: 90

#Package: *
#Pin: release a=waldorf
#Pin-priority: 90
[/quote]
Ton sources.list affiche (comme activés) les dépôts Wheezy, avec un [mono]pinning[/mono] hors sujet.

On utilisera [mono]Explanation: ton commentaire[/mono], voir le man en rapport : [mono]$ man apt_preferences[/mono] faisant foi.

Un retour console des problèmes rencontrés serait on ne peut plus appréciable.

En commentaire : bien des choses à revoir.

Bonjour,
Vu, merci pour ton message !

Ça y est, je commence à voir le début de la fin de ce downgrade.

Pour mémoire, j’ai eu de gros soucis avec le paquet cups-daemon dont le script prerm ne fonctionnait pas.
J’ai donc fait comme dit ici : serverfault.com/q/179570/246642

Ensuite, ça ne passe pas tout seul mais je m’en sors avec une suite continue de apt-get upgrade, apt-get -f install, apt-get upgrade, puis apt-get dist-upgrade. Je vous dis ça quand j’aurai fini.

Merci déjà pour votre aide !

Salut,

[mono]aptitude[/mono], te rendra de bien meilleurs services, de qualités.

Bonjour BelZéButh,

Merci de ta réponse, en effet aptitude m’a rendu de bons services.

Du coup, les problèmes continuent. Des soucis tels que cups-daemon, j’en ai eu plusieurs autres hier soir, que j’ai pu résoudre moi-même. Maintenant, c’est un conflit entre gcc-4.7 et gcc-4.9 qui pose problème, et là je sèche.

Ici, aptitude est dans les choux, je ne sais pas pourquoi. Voici ce qui vient de se passer :

[code]# aptitude upgrade
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

aptitude full-upgrade

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

aptitude dist-upgrade

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

apt-get dist-upgrade

Calculating upgrade… Done
The following packages will be REMOVED:
debugedit emacs24-bin-common emacs24-common fonts-mathjax gcc-4.9-base
hunspell-fr-classical iproute2 iptables libarchive13 libasprintf-dev libass5
libavcodec56 libavformat56 libbasicusageenvironment0 libbind9-90
libcloog-isl4 libdb5.3 libdns-export100 libdns100 libetpan17
libexttextcat-2.0-0 libfakeroot libfontembed1 libfreerdp-cache1.1
libfreerdp-client1.1 libfreerdp-codec1.1 libfreerdp-common1.1.0
libfreerdp-core1.1 libfreerdp-crypto1.1 libfreerdp-gdi1.1
libfreerdp-locale1.1 libfreerdp-rail1.1 libfreerdp-utils1.1 libgd3
libgettextpo-dev libgnutls-deb0-28 libgphoto2-6 libgphoto2-port10
libgroupsock1 libhd21 libinput5 libirs-export91 libisc-export95 libisc95
libisccc90 libisccfg-export90 libisccfg90 libjim0.75 liblangtag1
liblivemedia23 liblwres90 libminiupnpc10 libmpc3 libndp0
libparted-fs-resize0 libparted2 libpoppler-qt4-4 libpoppler46
libpython3-stdlib libpython3.4-stdlib librtmp1 libruby2.1
libsasl2-modules-db libsmartcols1 libtcl8.5 libtcl8.6 libteamdctl0 libtk8.5
libtk8.6 libudev1 libvlccore8 libwinpr-pool0.1 libwinpr-registry0.1
libwinpr-sspi0.1 libwinpr-synch0.1 libwinpr-utils0.1 libx264-142
libxcb-dri3-0 libxdo3 libxkbcommon-x11-0 libxkbcommon0 p11-kit-modules
python3.4 ruby-pdf-core ruby-prawn-table ruby2.1 startpar
The following NEW packages will be installed:
binutils cpp cpp-4.7 fonts-opensymbol gcc gcc-4.7 gcc-4.7-base
gtk3-engines-unico libcmis-0.2-0 libexttextcat0 libgomp1 libgssglue1
libhyphen0 libitm1 libjim0debian2 libmythes-1.2-0 libquadmath0
libreoffice-core libstlport4.6ldbl libva-x11-1 libxml-simple-perl mountall
plymouth python3.2-doc ruby-pdf-inspector stgit
The following packages will be DOWNGRADED:
dmsetup emacsen-common fakeroot fontconfig-config hunspell-fr i965-va-driver
iproute libasprintf0c2 libc-dev-bin libc6 libc6-dev libc6-i686
libdevmapper1.02.1 libexif12 libexttextcat-data libfontconfig1 libgcc1
libgettextpo0 libgmp10 libgssapi-krb5-2 libhogweed2 libisl10 libjs-mathjax
libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmpfr4 libnettle4
libnih-dbus1 libnih1 libopus0 libp11-kit0 libparse-debianchangelog-perl
libreoffice-common libreoffice-l10n-fr libreoffice-style-galaxy
libreoffice-style-tango librpm3 librpmio3 libsasl2-2 libsasl2-modules
libstdc++6 libtiff5 libtirpc1 libva1 libvpx1 libxcb1 locales-all
murrine-themes nfs-common p11-kit python3-doc qgit rpm rpm-common rpm2cpio
ruby-prawn ruby-ttfunk rubygems-integration sysvinit-utils tcl8.5 tk8.5
uno-libs3 ure usb-modeswitch usb-modeswitch-data vlc-data
0 upgraded, 26 newly installed, 68 downgraded, 87 to remove and 0 not upgraded.
Need to get 0 B/124 MB of archives.
After this operation, 13.9 MB disk space will be freed.
Do you want to continue [Y/n]?

debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gcc-4.7-base:i386.
(Reading database … 145096 files and directories currently installed.)
Unpacking gcc-4.7-base:i386 (from …/gcc-4.7-base_4.7.2-5_i386.deb) …
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-get -f install

Correcting dependencies… Done
The following packages will be REMOVED:
gcc-4.7-base
0 upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
1 not fully installed or removed.
After this operation, 202 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database … 145102 files and directories currently installed.)
Removing gcc-4.7-base:i386 …

aptitude purge gcc-4.9-base

The following packages will be REMOVED:
gcc-4.9-base{p}
0 packages upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 182 kB will be freed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.
libgcc1 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.

open: 3; closed: 1; defer: 0; conflict: 0 .
open: 4; closed: 264; defer: 1; conflict: 1 oThe following actions will resolve these dependencies:

 Install the following packages:                      
  1. gcc-4.7-base [4.7.2-5 (oldstable)]                 
    

    Downgrade the following packages:

  2. libgcc1 [1:4.9.2-10 (now) -> 1:4.7.2-5 (oldstable)]
    
  3. libstdc++6 [4.9.2-10 (now) -> 4.7.2-5 (oldstable)] 
    

Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following NEW packages will be installed:
gcc-4.7-base{a}
The following packages will be REMOVED:
gcc-4.9-base{p}
0 packages upgraded, 1 newly installed, 2 downgraded, 1 to remove and 67 not upgraded.
Need to get 0 B/543 kB of archives. After unpacking 4096 B will be used.
Do you want to continue? [Y/n/?] Y
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gcc-4.7-base:i386.
(Reading database … 145096 files and directories currently installed.)
Unpacking gcc-4.7-base:i386 (from …/gcc-4.7-base_4.7.2-5_i386.deb) …
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386
Current status: 1 broken [+1].

cat <<EOF

Che far dunque?
EOF
Che far dunque?

[/code]

Et avec dpkg, c’est à peu près pareil :

[code]# dpkg --purge gcc-4.9-base
dpkg: dependency problems prevent removal of gcc-4.9-base:i386:
libstdc++6:i386 depends on gcc-4.9-base (= 4.9.2-10).
libgcc1:i386 depends on gcc-4.9-base (= 4.9.2-10).

dpkg: error processing gcc-4.9-base:i386 (–purge):
dependency problems - not removing
Errors were encountered while processing:
gcc-4.9-base:i386

[/code]

Qu’en pensez-vous ?

Utilise upgrade avant le dist upgrade. Si des paquets que tu veux garder sont supprimer, commence par les installer dans le version voulue avant de faire l’upgrade

Que propose aptitude -f install ici, voire même
aptitude remove le paquet pénible (gcc-base 4.9)

Rq: apt-get est plus simple que aptitude mais ce dernier est effectivement plus astucieux qu’apt-get en cas de soucis (il propose des scenarios pour s’en sortir)

[mono]aptitude[/mono], dans les choux ?
Cela sent la boulette.

$ apt-cache policy aptitude $ dpkg -l | grep aptitude

[code]# dpkg -C

dpkg --configure -a

[/code]

$ apt-get -s upgrade $ dpkg -l |grep gcc

Merci à vous deux pour vos réponses,

@François : En réalité, j’ai fait un long apt-get upgrade au début, et ça a déjà beaucoup avancé dans le downgrade.

aptitude -f install est plutôt pas mal :

[code]# aptitude -f install
The following packages will be REMOVED:
acpi-fakekey{u} autopoint{u} bogofilter{u} bogofilter-bdb{u}
bogofilter-common{u} bsfilter{u} chromium-inspector{u} cpp-4.6{u}
filezilla-common{u} fonts-sil-gentium{u} fonts-sil-gentium-basic{u}
frozen-bubble-data{u} gcc-4.6-base{u} gcc-4.9-base{p} gnuplot{u}
gnuplot-x11{u} imagemagick-common{u} libalien-sdl-perl{u}
libapt-pkg-perl{u} libbluetooth3{u} libc-ares2{u} libcapture-tiny-perl{u}
libcdaudio1{u} libclass-inspector-perl{u} libcompfaceg1{u}
libcompress-bzip2-perl{u} libconfig-file-perl{u} libdbusmenu-glib4{u}
libdc1394-22{u} libdca0{u} libdjvulibre-text{u} libdjvulibre21{u}
libfaad2{u} libfile-copy-recursive-perl{u} libfile-sharedir-perl{u}
libflite1{u} libfltk1.1{u} libgme0{u} libgsl0ldbl{u}
libgstreamer-plugins-bad0.10-0{u} libieee1284-3{u} libilmbase6{u}
libindicate5{u} libkate1{u} liblensfun-data{u} liblensfun0{u}
liblist-moreutils-perl{u} liblqr-1-0{u} libmhash2{u} libmimic0{u}
libmms0{u} libmodplug1{u} libmpc2{u} libmpcdec6{u} libmxml1{u}
libopenexr6{u} libperl5.14{u} libpisock9{u} libptexenc1{u}
libraptor2-0{u} librasqal3{u} librdf0{u} libregexp-assemble-perl{u}
libroman-perl{u} libsane{u} libsane-common{u} libsane-extras{u}
libsane-extras-common{u} libsdl-mixer1.2{u} libsdl-pango1{u}
libsdl-perl{u} libsdl-ttf2.0-0{u} libsgmls-perl{u} libslv2-9{u}
libsmi2ldbl{u} libsoundtouch0{u} libsp1c2{u} libspandsp2{u}
libspeechd2{u} libtext-format-perl{u} libtie-simple-perl{u}
libtinyxml2.6.2{u} libv4l-0{u} libv4lconvert0{u} libvo-aacenc0{u}
libvo-amrwbenc0{u} libwildmidi-config{u} libwildmidi1{u}
libwireshark-data{u} libwmf-bin{u} libwxbase2.8-0{u} libwxgtk2.8-0{u}
libyajl2{u} libzbar0{u} libzvbi-common{u} libzvbi0{u}
linux-headers-3.2.0-4-common{u} linux-kbuild-3.2{u} sane-utils{u}
sgml-data{u} sgmlspl{u} sp{u} sudo{u} texlive-binaries{u}
texlive-common{u} update-inetd{u} xfonts-100dpi{u} xfonts-75dpi{u}
xorg-docs-core{u}
The following partially installed packages will be configured:
gcc-4.7-base
0 packages upgraded, 0 newly installed, 109 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 210 MB will be freed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.
libgcc1 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.

open: 3; closed: 1; defer: 0; conflict: 0 .The following actions will resolve these dependencies:

 Downgrade the following packages:                    
  1. libgcc1 [1:4.9.2-10 (now) -> 1:4.7.2-5 (oldstable)]
    
  2. libstdc++6 [4.9.2-10 (now) -> 4.7.2-5 (oldstable)] 
    

Accept this solution? [Y/n/q/?]
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following packages will be REMOVED:
acpi-fakekey{u} autopoint{u} bogofilter{u} bogofilter-bdb{u}
bogofilter-common{u} bsfilter{u} chromium-inspector{u} cpp-4.6{u}
filezilla-common{u} fonts-sil-gentium{u} fonts-sil-gentium-basic{u}
frozen-bubble-data{u} gcc-4.6-base{u} gcc-4.9-base{p} gnuplot{u}
gnuplot-x11{u} imagemagick-common{u} libalien-sdl-perl{u}
libapt-pkg-perl{u} libbluetooth3{u} libc-ares2{u} libcapture-tiny-perl{u}
libcdaudio1{u} libclass-inspector-perl{u} libcompfaceg1{u}
libcompress-bzip2-perl{u} libconfig-file-perl{u} libdbusmenu-glib4{u}
libdc1394-22{u} libdca0{u} libdjvulibre-text{u} libdjvulibre21{u}
libfaad2{u} libfile-copy-recursive-perl{u} libfile-sharedir-perl{u}
libflite1{u} libfltk1.1{u} libgme0{u} libgsl0ldbl{u}
libgstreamer-plugins-bad0.10-0{u} libieee1284-3{u} libilmbase6{u}
libindicate5{u} libkate1{u} liblensfun-data{u} liblensfun0{u}
liblist-moreutils-perl{u} liblqr-1-0{u} libmhash2{u} libmimic0{u}
libmms0{u} libmodplug1{u} libmpc2{u} libmpcdec6{u} libmxml1{u}
libopenexr6{u} libperl5.14{u} libpisock9{u} libptexenc1{u}
libraptor2-0{u} librasqal3{u} librdf0{u} libregexp-assemble-perl{u}
libroman-perl{u} libsane{u} libsane-common{u} libsane-extras{u}
libsane-extras-common{u} libsdl-mixer1.2{u} libsdl-pango1{u}
libsdl-perl{u} libsdl-ttf2.0-0{u} libsgmls-perl{u} libslv2-9{u}
libsmi2ldbl{u} libsoundtouch0{u} libsp1c2{u} libspandsp2{u}
libspeechd2{u} libtext-format-perl{u} libtie-simple-perl{u}
libtinyxml2.6.2{u} libv4l-0{u} libv4lconvert0{u} libvo-aacenc0{u}
libvo-amrwbenc0{u} libwildmidi-config{u} libwildmidi1{u}
libwireshark-data{u} libwmf-bin{u} libwxbase2.8-0{u} libwxgtk2.8-0{u}
libyajl2{u} libzbar0{u} libzvbi-common{u} libzvbi0{u}
linux-headers-3.2.0-4-common{u} linux-kbuild-3.2{u} sane-utils{u}
sgml-data{u} sgmlspl{u} sp{u} sudo{u} texlive-binaries{u}
texlive-common{u} update-inetd{u} xfonts-100dpi{u} xfonts-75dpi{u}
xorg-docs-core{u}
The following partially installed packages will be configured:
gcc-4.7-base
0 packages upgraded, 0 newly installed, 2 downgraded, 109 to remove and 67 not upgraded.
Need to get 0 B/400 kB of archives. After unpacking 210 MB will be freed.
Do you want to continue? [Y/n/?] Y

debconf: delaying package configuration, since apt-utils is not installed
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386

[/code]

Malheureusement ça ne marche toujours pas… Il y a eu une erreur parce qu’apt-utils avait dû être retiré ; je l’ai donc réinstallé, puis avec les aptitude -f install on revient au même qu’avant.

Voilà maintenant pour BelZéButh :

[code]# apt-cache policy aptitude
aptitude:
Installed: 0.6.8.2-1
Candidate: 0.6.8.2-1
Version table:
*** 0.6.8.2-1 0
1001 http://debian.proxad.net/debian/ wheezy/main i386 Packages
100 /var/lib/dpkg/status

dpkg -l | grep aptitude

ii aptitude 0.6.8.2-1 i386 terminal-based package manager
ii aptitude-common 0.6.8.2-1 all architecture indepedent files for the aptitude package manager
ii aptitude-doc-en 0.6.8.2-1 all English manual for aptitude, a terminal-based package manager

dpkg -C

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
gcc-4.7-base:i386 GCC, the GNU Compiler Collection (base package)

dpkg --configure -a

dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386

apt-get -s upgrade

You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies:
gcc-4.9-base : Breaks: gcc-4.7-base (< 4.7.3) but 4.7.2-5 is installed
E: Unmet dependencies. Try using -f.

dpkg -l | grep gcc

ii gcc-4.4-base:i386 4.4.7-2 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-4.6-base:i386 4.6.3-14 i386 GCC, the GNU Compiler Collection (base package)
iU gcc-4.7-base:i386 4.7.2-5 i386 GCC, the GNU Compiler Collection (base package)
pi gcc-4.9-base:i386 4.9.2-10 i386 GCC, the GNU Compiler Collection (base package)
ii libgcc1:i386 1:4.9.2-10 i386 GCC support library

[/code]

Pour mémoire, apt-get -f install me propose toujours de supprimer gcc-4.7-base.

Je suis toujours dubitatif !

Attention, je crois qu’il y a une coquille.

[mono]$ man aptitude[/mono]

[quote]-f
Essayer témérairement de résoudre les dépendances des paquets cassés, même si cela implique d’ignorer des actions demandées sur la ligne de commande.

       Directive du fichier de configuration : Aptitude::CmdLine::Fix-Broken.

[/quote]
[mono]$ man apt-get[/mono]

[quote]-f, --fix-broken
Correction ; cette option demande de réparer un système où existent des dépendances défectueuses. Utilisée avec install ou remove, elle peut exclure un paquet pour permettre
de déduire une solution viable. Tout paquet spécifié doit complètement corriger le problème. Cette option est quelquefois nécessaire lorsque l’on exécute APT pour la première
fois ; APT interdit les dépendances défectueuses dans un système. Il est possible que la structure de dépendances d’un système soit tellement corrompue qu’elle requiert une
intervention manuelle (ce qui veut dire la plupart du temps utiliser dpkg --remove pour éliminer les paquets en cause). L’utilisation de cette option conjointement avec -m
peut produire une erreur dans certaines situations. Élément de configuration : APT::Get::Fix-Broken.[/quote]

Autre chose.
Attention, ceci demande à être développé …

[quote=“Le Barde”]The following packages will be REMOVED:
(…)
libapt-pkg-perl{u}[/quote]
[mono]libapt-pkg-perl[/mono]

[quote]Dépend: perl-base (>= 5.20.0-4), perlapi-5.20.0, libapt-pkg4.12 (>= 0.8.0), libc6 (>= 2.1.3), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
[/quote]
Utilises des pincettes ^^

[quote=“Le Barde”]# apt-get -s upgrade
You might want to run ‘apt-get -f install’ to correct these.[/quote]

[mono]aptitude[/mono] est-il fonctionnel ?

$ aptitude -s upgrade $ aptitude -s full-upgrade
Sans la mesure ou tu tentes de faire la bascule de [mono]Jessie[/mono] à [mono]Wheezy[/mono] (rétrogradation)

$ aptitude -s remove --purge gcc-4.9-base $ aptitude -s reinstall gcc-4.7-base

Fait, cela a simplement retiré gcc-4.7-base.

[quote=“BelZéButh”][mono]aptitude[/mono] est-il fonctionnel ?

$ aptitude -s upgrade $ aptitude -s full-upgrade[/quote]
Tout à fait ! Voici ce que cela donne :

[code]aptitude -s upgrade
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Would download/install/remove packages.

aptitude -s full-upgrade

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Would download/install/remove packages.
[/code]

[quote=“BelZéButh”]Sans la mesure ou tu tentes de faire la bascule de [mono]Jessie[/mono] à [mono]Wheezy[/mono] (rétrogradation)

$ aptitude -s remove --purge gcc-4.9-base $ aptitude -s reinstall gcc-4.7-base[/quote]

Alors allons-y :

[code]# aptitude -s remove --purge gcc-4.9-base
The following packages will be REMOVED:
gcc-4.9-base
0 packages upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 182 kB will be freed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.
libgcc1 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.

open: 3; closed: 1; defer: 0; conflict: 0 .
open: 4; closed: 264; defer: 1; conflict: 1 oThe following actions will resolve these dependencies:

 Install the following packages:                      
  1. gcc-4.7-base [4.7.2-5 (oldstable)]                 
    

    Downgrade the following packages:

  2. libgcc1 [1:4.9.2-10 (now) -> 1:4.7.2-5 (oldstable)]
    
  3. libstdc++6 [4.9.2-10 (now) -> 4.7.2-5 (oldstable)] 
    

Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following NEW packages will be installed:
gcc-4.7-base{a}
The following packages will be REMOVED:
gcc-4.9-base
0 packages upgraded, 1 newly installed, 2 downgraded, 1 to remove and 67 not upgraded.
Need to get 0 B/543 kB of archives. After unpacking 4096 B will be used.
Do you want to continue? [Y/n/?]
Would download/install/remove packages.
[/code]
Du coup, je le fais :

[code]# aptitude remove --purge gcc-4.9-base
The following packages will be REMOVED:
gcc-4.9-base
0 packages upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 182 kB will be freed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.
libgcc1 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.

open: 3; closed: 1; defer: 0; conflict: 0 .
open: 4; closed: 264; defer: 1; conflict: 1 oThe following actions will resolve these dependencies:

 Install the following packages:                      
  1. gcc-4.7-base [4.7.2-5 (oldstable)]                 
    

    Downgrade the following packages:

  2. libgcc1 [1:4.9.2-10 (now) -> 1:4.7.2-5 (oldstable)]
    
  3. libstdc++6 [4.9.2-10 (now) -> 4.7.2-5 (oldstable)] 
    

Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following NEW packages will be installed:
gcc-4.7-base{a}
The following packages will be REMOVED:
gcc-4.9-base
0 packages upgraded, 1 newly installed, 2 downgraded, 1 to remove and 67 not upgraded.
Need to get 0 B/543 kB of archives. After unpacking 4096 B will be used.
Do you want to continue? [Y/n/?] Y
Selecting previously unselected package gcc-4.7-base:i386.
(Reading database … 145169 files and directories currently installed.)
Unpacking gcc-4.7-base:i386 (from …/gcc-4.7-base_4.7.2-5_i386.deb) …
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of gcc-4.7-base:i386:
gcc-4.9-base:i386 (4.9.2-10) breaks gcc-4.7-base (<< 4.7.3) and is installed.
Version of gcc-4.7-base:i386 to be configured is 4.7.2-5.

dpkg: error processing gcc-4.7-base:i386 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.7-base:i386
Current status: 1 broken [+1].

aptitude reinstall gcc-4.7-base

The following packages will be REINSTALLED:
gcc-4.7-base
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
gcc-4.9-base : Breaks: gcc-4.7-base (< 4.7.3) but 4.7.2-5 is installed.

open: 2; closed: 3; defer: 0; conflict: 0 .
open: 3; closed: 265; defer: 1; conflict: 1 oThe following actions will resolve these dependencies:

 Remove the following packages:
  1. gcc-4.7-base                
    

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.

[/code]

Tu n’aurais pas dû valider cela, aussi vite.

Ça non plus.
De fait, il me manque des retours.

En simulation et rien d’autre.

Je suis allé vite car on tourne en rond : [mono]apt-get dist-upgrade[/mono] installe gcc-4.7-base à moitié, et [mono]apt-get -f install[/mono] retire simplement gcc-4.7-base.

Voici ce que cela donne précisément :

[code]apt-get dist-upgrade
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies:
gcc-4.9-base : Breaks: gcc-4.7-base (< 4.7.3) but 4.7.2-5 is installed
E: Unmet dependencies. Try using -f.

aptitude remove --purge gcc-4.9-base

The following packages will be REMOVED:
gcc-4.9-base
The following partially installed packages will be configured:
gcc-4.7-base
0 packages upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
Need to get 0 B of archives. After unpacking 182 kB will be freed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.
libgcc1 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed.

open: 3; closed: 1; defer: 0; conflict: 0 .
open: 4; closed: 263; defer: 1; conflict: 1 oThe following actions will resolve these dependencies:

 Downgrade the following packages:                    
  1. libgcc1 [1:4.9.2-10 (now) -> 1:4.7.2-5 (oldstable)]
    
  2. libstdc++6 [4.9.2-10 (now) -> 4.7.2-5 (oldstable)] 
    

Accept this solution? [Y/n/q/?]
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following packages will be REMOVED:
gcc-4.9-base
The following partially installed packages will be configured:
gcc-4.7-base
0 packages upgraded, 0 newly installed, 2 downgraded, 1 to remove and 67 not upgraded.
Need to get 0 B/400 kB of archives. After unpacking 198 kB will be freed.
Do you want to continue? [Y/n/?]
Would download/install/remove packages.

[/code]

Qu’est-ce que tu en penses ? (J’ai l’impression de tourner en rond :confused:)

Merci grandement pour ton aide.

Pour débloquer cela il te faut un minimum de patience.

Désolé pour l’impatience ! Mais tu as raison.

Voici ce que donne [mono]apt-cache policy[/mono] :

[code]# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/ wheezy/updates/main Translation-en
1001 http://security.debian.org/ wheezy/updates/main i386 Packages
release v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main
origin security.debian.org
500 http://debian.proxad.net/debian/ wheezy/non-free Translation-en
500 http://debian.proxad.net/debian/ wheezy/main Translation-fr
500 http://debian.proxad.net/debian/ wheezy/main Translation-en
500 http://debian.proxad.net/debian/ wheezy/contrib Translation-en
1001 http://debian.proxad.net/debian/ wheezy/non-free i386 Packages
release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=non-free
origin debian.proxad.net
1001 http://debian.proxad.net/debian/ wheezy/contrib i386 Packages
release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=contrib
origin debian.proxad.net
1001 http://debian.proxad.net/debian/ wheezy/main i386 Packages
release v=7.8,o=Debian,a=oldstable,n=wheezy,l=Debian,c=main
origin debian.proxad.net
Pinned packages:

[/code]

Et en prime, parce que je pense que c’est [mono]libgcc1[/mono] et [mono]libstdc++6[/mono] qui posent problème :

[code]# apt-get -s install --reinstall libgcc1 libstdc++6 -f
The following extra packages will be installed:
gcc-4.7-base
The following packages will be REMOVED:
gcc-4.9-base
The following NEW packages will be installed:
gcc-4.7-base
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
0 upgraded, 1 newly installed, 2 downgraded, 1 to remove and 67 not upgraded.
Inst gcc-4.7-base (4.7.2-5 Debian:7.8/oldstable [i386]) [gcc-4.9-base:i386 on gcc-4.7-base:i386] [gcc-4.9-base:i386 ]
Conf gcc-4.7-base (4.7.2-5 Debian:7.8/oldstable [i386]) [gcc-4.9-base:i386 ]
Inst libstdc++6 [4.9.2-10] (4.7.2-5 Debian:7.8/oldstable [i386]) [gcc-4.9-base:i386 on gcc-4.7-base:i386] [gcc-4.9-base:i386 ]
Conf libstdc++6 (4.7.2-5 Debian:7.8/oldstable [i386]) [gcc-4.9-base:i386 ]
Inst libgcc1 [1:4.9.2-10] (1:4.7.2-5 Debian:7.8/oldstable [i386]) [gcc-4.9-base:i386 on gcc-4.7-base:i386] [gcc-4.9-base:i386 ]
Conf libgcc1 (1:4.7.2-5 Debian:7.8/oldstable [i386]) [gcc-4.9-base:i386 ]
Remv gcc-4.9-base [4.9.2-10]

[/code]

Penses-tu que je doive retirer wheezy/updates pour le moment ?

Non.

Notes : [mono]-s [/mono]

Eh bien, ça a l’air d’avancer !

[code]# aptitude -s install gcc=4:4.7.2-1 gcc-4.4=4.4.7-2 gcc-4.4-base=4.4.7-2 gcc-4.6=4.6.3-14 gcc-4.6-base=4.6.3-14 gcc-4.7=4.7.2-5 gcc-4.7-base=4.7.2-5 libgcc1=1:4.7.2-5 libstdc++6=4.7.2-5
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following NEW packages will be installed:
binutils{a} cpp{a} cpp-4.4{a} cpp-4.7{a} gcc gcc-4.4 gcc-4.6 gcc-4.7
libgomp1{a} libitm1{a} libquadmath0{a}
The following partially installed packages will be configured:
gcc-4.7-base
0 packages upgraded, 11 newly installed, 2 downgraded, 0 to remove and 67 not upgraded.
Need to get 13.7 MB/32.4 MB of archives. After unpacking 73.2 MB will be used.
The following packages have unmet dependencies:
gcc-4.9-base : Breaks: gcc-4.7-base (< 4.7.3) but 4.7.2-5 is installed.

open: 2; closed: 12; defer: 0; conflict: 0 .
open: 3; closed: 274; defer: 1; conflict: 1 oThe following actions will resolve these dependencies:

 Remove the following packages:
  1. gcc-4.9-base                
    

Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following NEW packages will be installed:
binutils{a} cpp{a} cpp-4.4{a} cpp-4.7{a} gcc gcc-4.4 gcc-4.6 gcc-4.7
libgomp1{a} libitm1{a} libquadmath0{a}
The following packages will be REMOVED:
gcc-4.9-base{a}
The following partially installed packages will be configured:
gcc-4.7-base
0 packages upgraded, 11 newly installed, 2 downgraded, 1 to remove and 67 not upgraded.
Need to get 13.7 MB/32.4 MB of archives. After unpacking 73.1 MB will be used.
Do you want to continue? [Y/n/?] Y
Would download/install/remove packages.

[/code]

Bravo ! Je le fais ?