
Windows Linux 하위 시스템에 zlib1gdev를 설치하려고 합니다. 나는 이미 dpkg --configure와 업데이트 및 업그레이드를 수행했습니다. 따라서 불행히도 첫 번째 의견은 좋지 않습니다.
오류가 발생했습니다.
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.
그래서 소스를 비교하려고 하면
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
따라서 libc6-dev를 설치하려면 libc6을 다운그레이드해야 하지만 이것이 시스템의 기본 부분이기 때문에 경고 메시지가 나타납니다.
You are about to do something potentially harmful
To continue type in the phrase ‘Yes, do as I say!’
?]
올바른 경로로 가고 있는데 libc6을 다운그레이드해야 합니다. 아니면 이 설치 문제를 해결할 수 있는 다른 방법이 있습니까?
답변1
다음을 시도해 보십시오:
1)dpkg --configure -a
2) apt-get update
그런 다음 패키지를 다시 설치하십시오.