如何在 Windows 10 上更新 OpenSSL Ubuntu 子系统

如何在 Windows 10 上更新 OpenSSL Ubuntu 子系统

我的 Windows 10 机器上运行着 Ubuntu。我正在尝试将 openssl 更新到最新版本。(具体来说,我需要安装 1.1.1m)

这是我迄今为止尝试过的:

admin@mymachine:/mnt/c/Users/me$ sudo apt update && sudo apt install openssl
[sudo] password for admin:
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1310 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [228 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [9732 B]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [799 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [114 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [681 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [122 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [909 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [202 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.2 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [23.8 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [580 B]
Get:23 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [22.7 kB]
Fetched 7726 kB in 8s (910 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
14 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  openssl
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Need to get 621 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.11 [621 kB]
Fetched 621 kB in 1s (512 kB/s)
(Reading database ... 38996 files and directories currently installed.)
Preparing to unpack .../openssl_1.1.1f-1ubuntu2.11_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.11) over (1.1.1f-1ubuntu2.10) ...
Setting up openssl (1.1.1f-1ubuntu2.11) ...
Processing triggers for man-db (2.9.1-1) ...

但正如您所看到的,它只是再次设置了 1.1.1f。

admin@mymachine:/mnt/c/Users/me$ openssl
OpenSSL> version
OpenSSL 1.1.1f  31 Mar 2020
OpenSSL>

这是我的 Ubuntu 版本:

admin@mymachine:/mnt/c/Users/me$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

我找到了这篇文章:https://code.luasoftware.com/tutorials/linux/upgrade-openssl-on-ubuntu-20/

但在深入研究之前,我想知道是否还有其他方法可以做到这一点/这是否是适用于 Windows 子系统的方法。

请,谢谢。

编辑1

与此问题相关的是如何更新 Ubuntu 本身?
我尝试过这个:

admin@mymachine:/mnt/c/Users/me$ do-release-upgrade
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.

但我不清楚开发版本和非 LTS 开发版本之间有什么区别。谷歌搜索,但如果您对这种方法有任何建议,请随时发表评论。

谢谢!

相关内容