Aptitude - Wählen Sie eine Auflösungsstrategie (z. B. Upgrade auf Unstable vor dem Entfernen).

475
Marek Sebera

Ist es möglich, die Standardauflösungsstrategie "(unerfüllte Abhängigkeiten") für Aptitude zu wählen?

Wenn Sie beispielsweise möchten, dass aptitude zuerst ein Upgrade von "unstable" / "install-from-unstable" (sid) anbietet, als das Entfernen von Paketen, deren Abhängigkeiten noch nicht erfüllt sind?

Beispieldaten aus früheren Momenten (Debian 9 Stretch, mit Sid-Repository)

Die Ausgangssituation wurde der Eignung vorgestellt

# aptitude dist-upgrade The following NEW packages will be installed: libboost-program-options1.67.0  The following packages will be upgraded: libgnuradio-analog3.7.13 libgnuradio-audio3.7.13 libgnuradio-blocks3.7.13 libgnuradio-digital3.7.13 libgnuradio-fcd3.7.13 libgnuradio-fft3.7.13  libgnuradio-filter3.7.13 libgnuradio-pmt3.7.13 libgnuradio-runtime3.7.13 libgnuradio-uhd3.7.13  10 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 2,387 kB of archives. After unpacking 2,656 kB will be used. The following packages have unmet dependencies: libgnuradio-analog3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-runtime3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-blocks3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-uhd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-filter3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-digital3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-fft3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-pmt3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-audio3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed libgnuradio-fcd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed 

Aptitude bot Lösungen an

  1. Pakete in aktueller Version aufbewahren
  2. Entfernen Sie einige Pakete und behalten Sie die aktuelle Version bei
  3. Entfernen Sie einige Pakete, behalten Sie die aktuelle Version bei, lassen Sie einige Abhängigkeiten offen
  4. Entfernen Sie alle in Konflikt stehenden Pakete, lassen Sie einige Abhängigkeiten nicht gelöst
  5. Installieren Sie die fehlende Abhängigkeit von einem Kanal ohne Priorität (sid, 100) und führen Sie das Upgrade aller Pakete wie gewünscht durch

Endgültige Lösung

The following actions will resolve these dependencies:  Install the following packages:  1) libboost-regex1.67.0 [1.67.0-10 (unstable)]    Accept this solution? [Y/n/q/?] Y The following NEW packages will be installed: libboost-program-options1.67.0 libboost-regex1.67.0  The following packages will be upgraded: libgnuradio-analog3.7.13 libgnuradio-audio3.7.13 libgnuradio-blocks3.7.13 libgnuradio-digital3.7.13 libgnuradio-fcd3.7.13 libgnuradio-fft3.7.13 libgnuradio-filter3.7.13  libgnuradio-pmt3.7.13 libgnuradio-runtime3.7.13 libgnuradio-uhd3.7.13  10 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,871 kB of archives. After unpacking 5,837 kB will be used. 

Eine gültige Lösung für mein Problem ist wahrscheinlich keine davon:

  1. Ändern Sie die Sid-Channel-Priorität (/ etc / apt / preferences) in gleiches Gewicht als Stable / Backports - dies würde das gesamte System auf instabil verschieben
  2. Wenn aptitude -t sid dist-upgradedies ausgeführt wird, wird das gesamte System von einem instabilen Kanal aktualisiert

Fragen sind also:

  • Kann ich aptitude konfigurieren, um eine andere Auflösungsstrategie zu verwenden?
  • Gibt es eine Strategie, die zuerst die Installation / Aktualisierung von instabil als das Entfernen übermäßiger Pakete anbietet? (dh Upgrade von instabilen Paketen mit instabilen Abhängigkeiten)
  • Gibt es eine Strategie, die zuerst das Herabstufen zu stabiler als das exzessive Entfernen von Paketen bietet? (dh für das Downgrade von Paketen und Abhängigkeiten von "unstable" nach "stable")
0

0 Antworten auf die Frage