Debian9에 openssh-server를 설치할 수 없습니다.

Debian9에 openssh-server를 설치할 수 없습니다.

갑자기 SSH 접속이 불가능해서 삭제했습니다 openssh-server(어제는 접속이 잘 됐습니다). openssh-server을(를) 사용하여 다시 설치 하려고 했지만 sudo apt-get install openssh-server더 이상 설치할 수 없다고 표시됩니다 E: Unable to correct problems, you have held broken packages.. 내부에 자세한 로그가 있습니다.

$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:
 openssh-server : Depends: adduser (>= 3.9) but it is not going to be installed
                  Depends: dpkg (>= 1.9.0) but it is not going to be installed
                  Depends: libpam-modules (>= 0.72-9) but it is not going to be installed
                  Depends: libpam-runtime (>= 0.76-14) but it is not going to be installed
                  Depends: openssh-client (= 1:7.4p1-10+deb9u7) but it is not going to be installed
                  Depends: openssh-sftp-server but it is not going to be installed
                  Depends: procps but it is not going to be installed
                  Depends: ucf (>= 0.28) but it is not going to be installed
                  Depends: debconf (>= 0.5) but it is not going to be installed or
                           debconf-2.0
                  Depends: init-system-helpers (>= 1.18~) but it is not going to be installed
                  Depends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
                  Depends: libc6 (>= 2.17) but it is not going to be installed
                  Depends: libcomerr2 (>= 1.01)
                  Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but it is not going to be installed
                  Depends: libkrb5-3 (>= 1.13~alpha1+dfsg) but it is not going to be installed
                  Depends: libpam0g (>= 0.99.7.1) but it is not going to be installed
                  Depends: libselinux1 (>= 1.32) but it is not going to be installed
                  Depends: libssl1.0.2 (>= 1.0.2d) but it is not going to be installed
                  Depends: libsystemd0 but it is not going to be installed
                  Depends: libwrap0 (>= 7.6-4~) but it is not going to be installed
                  Depends: zlib1g (>= 1:1.1.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$sudo aptitude install openssh-server
The following NEW packages will be installed:
  openssh-server openssh-sftp-server{a} 
The following packages are RECOMMENDED but will NOT be installed:
  ncurses-term 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 323 kB of archives. After unpacking 923 kB will be used.
The following packages have unmet dependencies:
 libc6 : Breaks: openssh-server (< 1:8.1p1-5) but 1:7.4p1-10+deb9u7 is to be installed
open: 1; closed: 0; defer: 0; conflict: 0                                      .The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     openssh-server [Not Installed]                     



Accept this solution? [Y/n/q/?] n

*** No more solutions available ***

The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     openssh-server [Not Installed]                     



Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

온라인으로 검색하고 많은 솔루션을 시도했지만 그 중 아무 것도 작동하지 않았습니다.


여기에는 제거하기 전의 정보가 포함되어 있습니다 openssh-server.

어제 ffmpeg를 사용하여 ffmpeg를 컴파일했는데 --enable-ssl다음과 같은 오류가 표시되었습니다 openssl not found. 인터넷을 검색한 결과 이 ​​패키지를 설치해야 한다는 것을 알았습니다 libssl-dev. 그런 다음 명령을 사용합니다 sudo apt-get install libssl-dev. 또한 다음과 같은 오류가 표시됩니다.

libssl-dev : Depends: libssl1.1 (= 1.1.0l-1~deb9u3) but 1.1.1k-1 is to be installed 
Unable to Correct Problems You have Held Broken Packages

온라인으로 검색해서 몇 가지 답변을 얻었습니다. 그런 다음 명령을 사용합니다 sudo apt-get install libssl1.1=1.1.0l-1~deb9u3. 작동하고 오류가 수정되었습니다. 현재 libssl내 시스템에는 동일한 라이브러리의 서로 다른 두 버전이 공존하고 있습니다. 하나는 libssl1.0.2이고 다른 하나는 입니다 libssl1.1.

오늘 나는 내 시스템에 SSH로 연결할 수 없다는 것을 발견했습니다. 제거하고 다시 설치하고 싶습니다 openssh-server. 하지만 위에 표시된 오류가 발생했습니다. 내 시스템에 동일한 라이브러리의 두 가지 다른 버전이 있기 때문입니까? 이를 제거하려고 시도했지만 libssl1.0.2많은 라이브러리가 이에 의존하고 있음을 발견했습니다. 삭제하려고 하면 libssl1.1오류가 표시됩니다.depends: dh-autoreconf (>= 12) but it is not going to be installed. Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages


내 시스템에 대한 정보입니다.

$uname -a
Linux linaro-alip 4.4.189 #24 SMP Tue Jul 21 17:01:59 CST 2020 aarch64 GNU/Linux
$cat /proc/version
Linux version 4.4.189 (rpdzkj@rpdzkj) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #24 SMP Tue Jul 21 17:01:59 CST 2020
$lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.13 (stretch)
Release:    9.13
Codename:   stretch
$apt policy 
Package files:
 100 /var/lib/dpkg/status
     release a=now
 100 http://mirrors.ustc.edu.cn/debian stretch-backports/contrib arm64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=contrib,b=arm64
     origin mirrors.ustc.edu.cn
 100 http://mirrors.ustc.edu.cn/debian stretch-backports/non-free arm64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=non-free,b=arm64
     origin mirrors.ustc.edu.cn
 100 http://mirrors.ustc.edu.cn/debian stretch-backports/main arm64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=arm64
     origin mirrors.ustc.edu.cn
 500 http://mirrors.ustc.edu.cn/debian-security stretch/updates/main arm64 Packages
     release v=9,o=Debian,a=oldoldstable,n=stretch,l=Debian-Security,c=main,b=arm64
     origin mirrors.ustc.edu.cn
 500 http://mirrors.ustc.edu.cn/debian stretch/contrib arm64 Packages
     release v=9.13,o=Debian,a=oldoldstable,n=stretch,l=Debian,c=contrib,b=arm64
     origin mirrors.ustc.edu.cn
 500 http://mirrors.ustc.edu.cn/debian stretch/non-free arm64 Packages
     release v=9.13,o=Debian,a=oldoldstable,n=stretch,l=Debian,c=non-free,b=arm64
     origin mirrors.ustc.edu.cn
 500 http://mirrors.ustc.edu.cn/debian stretch/main arm64 Packages
     release v=9.13,o=Debian,a=oldoldstable,n=stretch,l=Debian,c=main,b=arm64
     origin mirrors.ustc.edu.cn
Pinned packages:
$ apt policy openssh-{server,client}
openssh-server:
  Installed: (none)
  Candidate: 1:7.4p1-10+deb9u7
  Version table:
     1:7.4p1-10+deb9u7 500
        500 http://mirrors.ustc.edu.cn/debian stretch/main arm64 Packages
     1:7.4p1-10+deb9u6 500
        500 http://mirrors.ustc.edu.cn/debian-security stretch/updates/main arm64 Packages
openssh-client:
  Installed: 1:7.4p1-10+deb9u7
  Candidate: 1:7.4p1-10+deb9u7
  Version table:
 *** 1:7.4p1-10+deb9u7 500
        500 http://mirrors.ustc.edu.cn/debian stretch/main arm64 Packages
        100 /var/lib/dpkg/status
     1:7.4p1-10+deb9u6 500
        500 http://mirrors.ustc.edu.cn/debian-security stretch/updates/main arm64 Packages

관련 정보