Problem mit Abhängigkeiten bei der Installation von Ubuntu-SDK unter 16.04

Problem mit Abhängigkeiten bei der Installation von Ubuntu-SDK unter 16.04

Ich erhalte diesen Fehler beim Installieren von Ubuntu-SDK bei einer Neuinstallation von Ubuntu 16.04 64 Bit:

The following packages have unmet dependencies:
 ubuntu-sdk : Depends: ubuntu-sdk-libs-dev but it is not going to be installed
              Depends: autopilot-desktop but it is not installable
              Depends: intltool but it is not installable
              Depends: libcontent-hub-doc but it is not installable
              Depends: phablet-tools but it is not going to be installed
              Depends: ubuntu-device-flash but it is not going to be installed
              Depends: ubuntu-sdk-ide but it is not going to be installed
E: Unable to correct problems, you have held broken packages.`

So lösen Sie dieses Problem.

Antwort1

Sie müssen einige Abhängigkeiten einzeln nacheinander installieren. In meinem Fall wurde Folgendes ausgegeben:

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:
 ubuntu-sdk : Depends: phablet-tools but it is not going to be installed
              Depends: ubuntu-sdk-ide but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Also habe ich zuerst versucht, Phablet-Tools zu installieren:

sudo apt install phablet-tools

Es wirft:

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:
 phablet-tools : Depends: android-tools-adb (>= 4.2.2)
                 Depends: android-tools-fastboot (>= 4.2.2)
E: Unable to correct problems, you have held broken packages.

Also habe ich dann nacheinander Android-Tools-ADB und Android-Tools-Fastboot installiert mit:

sudo apt install android-tools-adb
sudo apt install android-tools-fastboot

Dann habe ich erneut versucht, Ubuntu-SDK mit folgendem Befehl zu installieren:

sudo apt install ubuntu-sdk

Und es hat funktioniert .

Der springende Punkt ist also, dass Sie alle Abhängigkeiten einzeln installieren müssen. Dies gilt für jedes Paket, das Sie installieren möchten, nicht nur für Ubuntu-SDK.

Antwort2

Wenn Sie beim Installieren des SDK Fehler wie „nicht erfüllte Abhängigkeiten“ erhalten, müssen Sie alle Abhängigkeiten installieren, die im Fehler erwähnt werden. Installieren Sie anschließend Ubuntu-SDK. Es funktioniert einwandfrei.

verwandte Informationen