So erstellen Sie einen Alias ​​für nicht aufgelöste Abhängigkeiten von Apt

608
fiatjaf

Vor einiger Zeit installierte ich wormsarmageddon.debein Paket, das von einem Paket namens abhing wine. Da kein Verteilungspaket oder PPA ich ein Paket mit dem Namen versehen finden könnte wine- aber nur wine-stable, wine-staging, wine-develusw. - ich am Ende der Installation wormsarmageddonmit sudo dpkg --ignore-depends wine -i wormsarmageddon.debund alles hat gut funktioniert.

Nun versuche jedes Mal, wenn ich irgendetwas zu installieren mit apt-getoder aptitudees schlägt fehl, weil davon. Sehen Sie ein Beispiel unten:

fiatjaf@menger ~ [1]> sudo aptitude install openjdk-9-jdk The following NEW packages will be installed: ca-certificates-java dbus-x11 java-common libatk-wrapper-java  libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common libgnome-2-0  libgnome2-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0  openjdk-9-jdk openjdk-9-jdk-headless openjdk-9-jre openjdk-9-jre-headless  0 packages upgraded, 16 newly installed, 0 to remove and 183 not upgraded. Need to get 118 MB of archives. After unpacking 279 MB will be used. The following packages have unmet dependencies: wormsarmageddon : Depends: wine (>= 1.2.1) which is a virtual package, provided by: - winehq-staging (2.9.0~zesty), but it is not going to be installed - winehq-staging (2.8.0~zesty), but it is not going to be installed - winehq-staging (2.7.0~zesty), but it is not going to be installed - winehq-staging (2.6.0~zesty), but it is not going to be installed - winehq-staging (2.5.0~zesty), but it is not going to be installed - winehq-staging (2.4.0-3~zesty), but it is not going to be installed - winehq-staging (2.18.0~zesty), but it is not going to be installed - winehq-staging (2.17.0~zesty), but it is not going to be installed - winehq-staging (2.16.0~zesty), but it is not going to be installed - winehq-staging (2.15.0~zesty), but it is not going to be installed - winehq-staging (2.14.0~zesty), but it is not going to be installed - winehq-staging (2.13.0~zesty), but it is not going to be installed - winehq-staging (2.12.0~zesty), but it is not going to be installed - winehq-staging (2.11.0~zesty), but it is not going to be installed - winehq-staging (2.10.0~zesty), but it is not going to be installed - winehq-stable (2.0.2~zesty), but 2.0.2~zesty is installed - winehq-stable (2.0.1~zesty), but 2.0.2~zesty is installed - winehq-stable (2.0.0~zesty), but 2.0.2~zesty is installed - winehq-devel (2.9.0~zesty), but it is not going to be installed - winehq-devel (2.8.0~zesty), but it is not going to be installed - winehq-devel (2.7.0~zesty), but it is not going to be installed - winehq-devel (2.6.0~zesty), but it is not going to be installed - winehq-devel (2.5.0~zesty), but it is not going to be installed - winehq-devel (2.4.0-3~zesty), but it is not going to be installed - winehq-devel (2.18.0~zesty), but it is not going to be installed - winehq-devel (2.17.0~zesty), but it is not going to be installed - winehq-devel (2.16.0~zesty), but it is not going to be installed - winehq-devel (2.15.0~zesty), but it is not going to be installed - winehq-devel (2.14.0~zesty), but it is not going to be installed - winehq-devel (2.13.0~zesty), but it is not going to be installed - winehq-devel (2.12.0~zesty), but it is not going to be installed - winehq-devel (2.11.0~zesty), but it is not going to be installed - winehq-devel (2.10.0~zesty), but it is not going to be installed - wine-stable (1.8.7-1ubuntu1), but 2.0.2~zesty is installed - wine-development (2.0-3ubuntu1), but it is not going to be installed  The following actions will resolve these dependencies:  Remove the following packages:  1) wormsarmageddon [3.7.2.1-0 (now, testing)]    Accept this solution? [Y/n/q/?]  

Was mich stört, ist, dass winefür alle anderen "Weine" ein "virtuelles Paket" erkannt wird, einige davon sind tatsächlich installiert.

Wie löse ich diese Situation?


UPDATE :

Nach den Kommentaren habe ich versucht, Wein erneut zu installieren. aptbeklagte sich über viele Dinge, aber es scheint tatsächlich, dass Wein nicht richtig installiert wurde (beachten Sie, dass jetzt die Ausgabe "zu installieren" ist, statt "vorinstalliert" zu werden - ich weiß nicht warum).

fiatjaf@menger ~> sudo apt-get install --reinstall wine-stable [sudo] password for fiatjaf:  Reading package lists... Done Building dependency tree  Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: openjdk-9-jre-headless : Depends: ca-certificates-java but it is not going to be installed Depends: java-common (>= 0.28) but it is not going to be installed wine-stable : Depends: wine-stable-amd64 (= 2.0.3~zesty) but 2.0.2~zesty is to be installed Depends: wine-stable-i386 (= 2.0.3~zesty) winehq-stable : Depends: wine-stable (= 2.0.2~zesty) wormsarmageddon : Depends: wine (>= 1.2.1) E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 

Laufen apt --fix-broken installnoch entfernt wormsarmaggedon, aber dann konnte ich laufen apt-get install --reinstall wine-stable, was am Ende nichts korrigierte:

fiatjaf@menger ~ [130]> sudo apt-get install wormsarmageddon 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: wormsarmageddon : Depends: wine (>= 1.2.1) E: Unable to correct problems, you have held broken packages. fiatjaf@menger ~ [100]> sudo aptitude install wormsarmageddon The following NEW packages will be installed: wormsarmageddon  0 packages upgraded, 1 newly installed, 0 to remove and 203 not upgraded. Need to get 111 MB of archives. After unpacking 164 MB will be used. The following packages have unmet dependencies: wormsarmageddon : Depends: wine (>= 1.2.1) which is a virtual package, provided by: - winehq-staging (2.9.0~zesty), but it is not going to be installed - winehq-staging (2.8.0~zesty), but it is not going to be installed - winehq-staging (2.7.0~zesty), but it is not going to be installed - winehq-staging (2.6.0~zesty), but it is not going to be installed - winehq-staging (2.5.0~zesty), but it is not going to be installed - winehq-staging (2.4.0-3~zesty), but it is not going to be installed - winehq-staging (2.19.0~zesty), but it is not going to be installed - winehq-staging (2.18.0~zesty), but it is not going to be installed - winehq-staging (2.17.0~zesty), but it is not going to be installed - winehq-staging (2.16.0~zesty), but it is not going to be installed - winehq-staging (2.15.0~zesty), but it is not going to be installed - winehq-staging (2.14.0~zesty), but it is not going to be installed - winehq-staging (2.13.0~zesty), but it is not going to be installed - winehq-staging (2.12.0~zesty), but it is not going to be installed - winehq-staging (2.11.0~zesty), but it is not going to be installed - winehq-staging (2.10.0~zesty), but it is not going to be installed - winehq-stable (2.0.3~zesty), but 2.0.3~zesty is installed - winehq-stable (2.0.2~zesty), but 2.0.3~zesty is installed - winehq-stable (2.0.1~zesty), but 2.0.3~zesty is installed - winehq-stable (2.0.0~zesty), but 2.0.3~zesty is installed - winehq-devel (2.9.0~zesty), but it is not going to be installed - winehq-devel (2.8.0~zesty), but it is not going to be installed - winehq-devel (2.7.0~zesty), but it is not going to be installed - winehq-devel (2.6.0~zesty), but it is not going to be installed - winehq-devel (2.5.0~zesty), but it is not going to be installed - winehq-devel (2.4.0-3~zesty), but it is not going to be installed - winehq-devel (2.19.0~zesty), but it is not going to be installed - winehq-devel (2.18.0~zesty), but it is not going to be installed - winehq-devel (2.17.0~zesty), but it is not going to be installed - winehq-devel (2.16.0~zesty), but it is not going to be installed - winehq-devel (2.15.0~zesty), but it is not going to be installed - winehq-devel (2.14.0~zesty), but it is not going to be installed - winehq-devel (2.13.0~zesty), but it is not going to be installed - winehq-devel (2.12.0~zesty), but it is not going to be installed - winehq-devel (2.11.0~zesty), but it is not going to be installed - winehq-devel (2.10.0~zesty), but it is not going to be installed - wine-stable (1.8.7-1ubuntu1), but 2.0.3~zesty is installed - wine-development (2.0-3ubuntu1), but it is not going to be installed  The following actions will resolve these dependencies:  Keep the following packages at their current version: 1) wormsarmageddon [Not Installed]     Accept this solution? [Y/n/q/?] fiatjaf@menger ~ [130]> apt-cache show winehq-stable Package: winehq-stable Source: wine-stable Version: 2.0.3~zesty Architecture: amd64 Maintainer: WineHQ Builds <builds@wine-staging.com> Installed-Size: 72 Depends: wine-stable (= 2.0.3~zesty) Conflicts: wine, wine-amd64, wine-i386 Replaces: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Provides: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Section: otherosfs Priority: optional Description: WINE Is Not An Emulator - runs MS Windows programs Wine is a program which allows running Microsoft Windows programs (including DOS, Windows 3.x and Win32 executables) on Unix. . This compatibility package allows to use wine-stable system-wide as the default Wine version. Description-md5: 3c434a64434281e632d12fce500efde1 Original-Maintainer: Scott Ritchie <scottritchie@ubuntu.com> SHA256: 0ca3ecc91b6926ef78f1a6dbe0d96386e994a8b82996da9a0149f6e4edf2dccf SHA1: dc3156459a2067aaff73aed2e2fc17654a9fbb05 MD5sum: 3a0354e587fb2909a3a79f4f2621a6b8 Size: 3130 Filename: pool/main/winehq-stable_2.0.3~zesty_amd64.deb  Package: winehq-stable Source: wine-stable Version: 2.0.2~zesty Architecture: amd64 Maintainer: WineHQ Builds <builds@wine-staging.com> Installed-Size: 72 Depends: wine-stable (= 2.0.2~zesty) Conflicts: wine, wine-amd64, wine-i386 Replaces: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Provides: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Section: otherosfs Priority: optional Description: WINE Is Not An Emulator - runs MS Windows programs Wine is a program which allows running Microsoft Windows programs (including DOS, Windows 3.x and Win32 executables) on Unix. . This compatibility package allows to use wine-stable system-wide as the default Wine version. Description-md5: 3c434a64434281e632d12fce500efde1 Original-Maintainer: Scott Ritchie <scottritchie@ubuntu.com> SHA256: 743af1b4a7c44653b0956d9e591dece336a56dee7155c1226165a324ea3b4fd6 SHA1: 63c0fb5da967f3243313cb85274f8c8b90e7662a MD5sum: 0e97b1df770e490cc491c9b4ffc12232 Size: 3134 Filename: pool/main/winehq-stable_2.0.2~zesty_amd64.deb  Package: winehq-stable Source: wine-stable Version: 2.0.1~zesty Architecture: amd64 Maintainer: WineHQ Builds <builds@wine-staging.com> Installed-Size: 72 Depends: wine-stable (= 2.0.1~zesty) Conflicts: wine, wine-amd64, wine-i386 Replaces: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Provides: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Section: otherosfs Priority: optional Description: WINE Is Not An Emulator - runs MS Windows programs Wine is a program which allows running Microsoft Windows programs (including DOS, Windows 3.x and Win32 executables) on Unix. . This compatibility package allows to use wine-stable system-wide as the default Wine version. Description-md5: 3c434a64434281e632d12fce500efde1 Original-Maintainer: Scott Ritchie <scottritchie@ubuntu.com> SHA256: 9abb20a44473549e5ab098653baec4d8fabbc6b6237d8db9bf4b0616112f8db5 SHA1: 3465d8f11f5aefe7f6c02d391a580f189d6a5856 MD5sum: 0e1a22bb84112fa435c5f5dead3d7738 Size: 3134 Filename: pool/main/winehq-stable_2.0.1~zesty_amd64.deb  Package: winehq-stable Source: wine-stable Version: 2.0.0~zesty Architecture: amd64 Maintainer: Michael Müller <michael@fds-team.de> Installed-Size: 72 Depends: wine-stable (= 2.0.0~zesty) Conflicts: wine, wine-amd64, wine-i386 Replaces: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Provides: wine, wine-amd64, wine-i386, wine1.4, wine1.4-amd64, wine1.4-i386, wine1.5, wine1.5-amd64, wine1.5-i386, wine1.6, wine1.6-amd64, wine1.6-i386, wine1.7, wine1.7-amd64, wine1.7-i386, wine32, wine64 Section: otherosfs Priority: optional Description: WINE Is Not An Emulator - runs MS Windows programs Wine is a program which allows running Microsoft Windows programs (including DOS, Windows 3.x and Win32 executables) on Unix. . This compatibility package allows to use wine-stable system-wide as the default Wine version. Description-md5: 3c434a64434281e632d12fce500efde1 Original-Maintainer: Scott Ritchie <scottritchie@ubuntu.com> SHA256: 7bfd03bb3edb938c94f540002fc5555487fb0ae754bf7badfb257d31b0baf327 SHA1: 54c1dd180af278139f01c02d1fd9fbb1ce49373a MD5sum: 610ba09ee83f5a6727f1eb53d47f8d30 Size: 3132 Filename: pool/main/winehq-stable_2.0.0~zesty_amd64.deb 
2
Also ... wie haben Sie am Ende Wein installiert? "apt install wine stable"? Bob vor 7 Jahren 0
Ja, @ Bob. So habe ich es gemacht. fiatjaf vor 7 Jahren 0
Haben Sie versucht, das Wine-Paket erneut zu installieren? (sudo apt-get install --reinstall wine-stable) Oder --purge würde es dann wieder installieren? Haben Sie selbst irgendwelche Repositories hinzugefügt, können sie manchmal apt abtreiben. DocWeird vor 7 Jahren 2
Kannst du Wein verwenden (und wormsarmageddon betreiben)? Shaido vor 7 Jahren 1
"wine" wird von "winehq-stable (2.0.2 ~ zesty) zur Verfügung gestellt, aber 2.0.2 ~ zesty ist installiert" "Sieht sehr falsch aus, als ob" winehq-stable "nicht vollständig installiert wäre ... was ist die Ausgabe von 'apt-cache show winehq-stable'? dirkt vor 7 Jahren 1
@Shaido, @DocWeird, @dirkt, vielen Dank für Ihre Antworten. Ich habe die Frage aktualisiert, um Ihre Vorschläge und die Ausgabe von Befehlen hinzuzufügen. Alles ist immer noch gleich. Ich habe jetzt "wormsarmageddon" entfernt, aber ich sollte es installieren können. Lassen Sie mich klarstellen, dass ich [eine PPA] (https://themassacre.org/apt/) dafür verwende, aber es lief einwandfrei mit meinem vorherigen Setup (bevor ich die Frage stellte, die von 'apt` didn' t like) und wahrscheinlich unter Verwendung des Standardwerts "wine", der von "wine-stable" bereitgestellt wird. fiatjaf vor 7 Jahren 0

0 Antworten auf die Frage