zlib1g-dev wird installiert. Nicht erfüllte Abhängigkeit von libc-dev libc6-dev

zlib1g-dev wird installiert. Nicht erfüllte Abhängigkeit von libc-dev libc6-dev

Ich versuche, zlib1gdev auf dem Windows-Linux-Subsystem zu installieren. Ich habe bereits ein dpkg --configure sowie ein Update und Upgrade durchgeführt. Daher ist der erste Kommentar leider nicht gut.

und ich bekomme den Fehler

    sudo apt-get install -f zlib1g-dev
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.
 zlib1g-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
E: Unable to correct problems, you have held broken packages.

Wenn ich also versuche, Quellen zu vergleichen

    sudo apt-cache policy libc6-dev libc6 libc-dev libc

libc6-dev:
  Installed: (none)
  Candidate: 2.23-0ubuntu11
  Version table:
     2.23-0ubuntu11 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     2.23-0ubuntu10 500
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     2.23-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libc6:
  Installed: 2.27-3ubuntu1
  Candidate: 2.27-3ubuntu1
  Version table:
 *** 2.27-3ubuntu1 100
        100 /var/lib/dpkg/status
     2.23-0ubuntu11 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     2.23-0ubuntu10 500
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     2.23-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libc-dev:
  Installed: (none)
  Candidate: (none)
  Version table:
N: Unable to locate package libc

Um libc6-dev zu installieren, muss ich libc6 downgraden, aber da es der grundlegende Teil eines Systems ist, erhalte ich die Warnung

    You are about to do something potentially harmful
To continue type in the phrase ‘Yes, do as I say!’
 ?]

Ich bin auf dem richtigen Weg und sollte einfach libc6 downgraden, oder gibt es eine andere Möglichkeit, dieses Installationsproblem zu lösen?

Antwort1

Bitte versuche folgendes:

1)dpkg --configure -a

2) apt-get updateund installieren Sie dann Ihr Paket neu.

verwandte Informationen