libc6 문제가 있는 Debian 10에 openssh-server 설치

libc6 문제가 있는 Debian 10에 openssh-server 설치

openssh-server를 설치하려고 합니다. 하지만 계속해서 다음 오류가 발생합니다.

The following packages have unmet dependencies:
 libc6 : Breaks: openssh-server (< 1:8.1p1-5) but 1:7.9p1-10+deb10u2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

다양한 솔루션을 복제하려고 시도했지만 실패했습니다. 한 가지 제한 사항은 apt upgrade모든 패키지에 대해 작업을 수행할 수 없다는 것입니다 . 무엇을 업그레이드할 수 있는지 구체적으로 설명해야 합니다.

openssh-server를 설치하려고 할 때 실행한 명령은 다음과 같습니다.

~$ apt search libc6 | grep -i installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libc6/unstable,now 2.31-9 amd64 [installed]
libtext-iconv-perl/stable,now 1.7-5+b7 amd64 [installed]

~$ ls -lh /var/cache/apt/archives/libc6_2*
-rw-r--r-- 1 root root 2.7M Dec 17 08:41 /var/cache/apt/archives/libc6_2.31-6_amd64.deb
-rw-r--r-- 1 root root 2.7M Jan  5 15:29 /var/cache/apt/archives/libc6_2.31-9_amd64.deb

~$ sudo apt-get install --only-upgrade libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
Need to get 2,812 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian unstable/main amd64 libc6 amd64 2.31-9 [2,812 kB]
Fetched 2,812 kB in 2s (1,475 kB/s)                     
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 165941 files and directories currently installed.)
Preparing to unpack .../libc6_2.31-9_amd64.deb ...
Unpacking libc6:amd64 (2.31-9) over (2.31-6) ...
Setting up libc6:amd64 (2.31-9) ...
Processing triggers for libc-bin (2.31-6) ...

~$ sudo apt-get install openssh-server
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:
 libc6 : Breaks: openssh-server (< 1:8.1p1-5) but 1:7.9p1-10+deb10u2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

source.list의 내용:

deb https://deb.debian.org/debian buster main contrib non-free
deb-src https://deb.debian.org/debian buster main contrib non-free

deb https://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src https://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb https://deb.debian.org/debian buster-updates main contrib non-free
deb-src https://deb.debian.org/debian buster-updates main contrib non-free

이 문제를 해결할 수 있는 방법을 알려주십시오. 미리 감사드립니다.

시도한 솔루션:

  1. https://warlord0blog.wordpress.com/2020/08/14/libc6-and-openssh/
  2. Debian 10.4에 sshd(openssh-server)를 설치할 수 없습니다.

[편집 2]: apt-cache 정책의 업데이트된 출력

~$ apt-cache policy libc6 openssh-server
libc6:
  Installed: 2.31-9
  Candidate: 2.31-9
  Version table:
 *** 2.31-9 100
        100 /var/lib/dpkg/status
     2.28-10 900
        900 http://deb.debian.org/debian buster/main amd64 Packages
openssh-server:
  Installed: (none)
  Candidate: 1:7.9p1-10+deb10u2
  Version table:
     1:8.4p1-2~bpo10+1 100
        100 http://deb.debian.org/debian buster-backports/main amd64 Packages
     1:7.9p1-10+deb10u2 900
        900 http://deb.debian.org/debian buster/main amd64 Packages
     1:7.9p1-10+deb10u1 900
        900 http://deb.debian.org/debian-security buster/updates/main amd64 Packages

답변1

소스 목록이 잘못된 것 같습니다.

열어서 </etc/apt/sources.list>에서 버전이 "Strech"인지 확인하세요.

업데이트하지 않은 경우 저장하세요. 그런 다음 #apt-get update를 실행하고 설치해 보세요 :)

관련 정보