在 Debian 稳定安装上从 Debian 测试安装 OpenSSL

在 Debian 稳定安装上从 Debian 测试安装 OpenSSL

我想在 Debian 稳定服务器上安装 OpenSSL 1.1.1a,该服务器目前已安装 OpenSSL 1.1.0j。因此,我根据此创建了必要的文件回答/etc/apt/preferences.d文件夹中:stable.preftesting.pref。之后,我将stable.list和添加testing.list/etc/apt/sources.list.d文件夹中。

现在,当我尝试使用 安装较新的 OpenSSL 时sudo apt install openssl/testing,它会抱怨需要较新版本的libssl,因此需要较新版本的libc6apt打印以下消息,这似乎不正确:

eloy@cyber:~$ sudo apt install libc6/testing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '2.28-2' (Debian:testing [amd64]) for 'libc6'
Selected version '2.0.5-1' (Debian:testing [amd64]) for 'libidn2-0' because of 'libc6'
The following packages were automatically installed and are no longer required:
  libpython3.5 linux-libc-dev python-all
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libidn2-0 libunistring2
Suggested packages:
  glibc-doc locales
The following packages will be REMOVED:
  build-essential cgmanager g++ g++-6 libc-bin libc-dev-bin libc6-dev libcgmanager0 libexpat1-dev libnih-dbus1 libnih1 libpython-all-dev libpython-dev libpython2.7-dev libpython3-dev
  libpython3.5-dev libstdc++-6-dev locales python-all-dev python-dev python2.7-dev python3-dev python3.5-dev systemd-shim
The following NEW packages will be installed:
  libunistring2
The following packages will be upgraded:
  libc6 libidn2-0
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  libc-bin
2 upgraded, 1 newly installed, 24 to remove and 0 not upgraded.
Need to get 3,320 kB of archives.
After this operation, 165 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 

我该如何修复这个问题并从 Debian 测试存储库正确安装较新版本的 OpenSSL?或者这是正确的,我应该继续吗?我担心会损坏我的服务器。

答案1

通过使用修复了它sudo apt-get -t testing install openssl

eloy@cyber:~$ openssl version
OpenSSL 1.1.1a  20 Nov 2018

相关内容