我正试图在ubuntu20.04.2上倾诉微软dotnet的无人值守升级。
我在无人值守的升级配置中添加了“源”和“允许的源”部分:
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";
"${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
"microsoft-ubuntu-focal-prod:focal";
};..。正如apt列表所报告的那样,有一些dotnet升级正在等待--可升级的:
aspnetcore-runtime-5.0/focal 5.0.7-1 amd64 [upgradable from: 5.0.6-1]
dotnet-host/focal 5.0.7-1 amd64 [upgradable from: 5.0.6-1]
dotnet-hostfxr-5.0/focal 5.0.7-1 amd64 [upgradable from: 5.0.6-1]
dotnet-runtime-5.0/focal 5.0.7-1 amd64 [upgradable from: 5.0.6-1]
dotnet-runtime-deps-5.0/focal 5.0.7-1 amd64 [upgradable from: 5.0.6-1]..。然而,当我在无人值守的情况下运行sudo -升级-模拟运行-调试时,我得到:
Checking: aspnetcore-runtime-5.0 ([])
adjusting candidate version: aspnetcore-runtime-5.0=5.0.6-1
Checking: dotnet-host ([])
adjusting candidate version: dotnet-host=5.0.6-1
Checking: dotnet-hostfxr-5.0 ([])
adjusting candidate version: dotnet-hostfxr-5.0=5.0.6-1
Checking: dotnet-runtime-5.0 ([])
adjusting candidate version: dotnet-runtime-5.0=5.0.6-1
Checking: dotnet-runtime-deps-5.0 ([])
adjusting candidate version: dotnet-runtime-deps-5.0=5.0.6-1
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
Packages blacklist due to conffile prompts: []
No packages found that can be upgraded unattended and no pending auto-removals
The list of kept packages can't be calculated in dry-run mode.有什么想法吗?为什么5x dotnet软件包没有升级?
提前谢谢!
发布于 2022-10-17 11:44:01
“原产地”的语法也包括发行版代码,如unattended-upgrades --dry-run --debug的输出所示:
检查: dotnet-hostfxr-6.0 ()
(在我的例子中,它是“仿生”而不是“焦点”)。因此,在Unattended-Upgrade::Allowed-Origins中,您需要的不是“microsoft-ubuntu- of :of”,而是“microsoft-ubuntu-of焦焦点”。
这应该使它独立于发布:
"microsoft-ubuntu-${distro_codename}-prod ${distro_codename}:${distro_codename}";https://askubuntu.com/questions/1344944
复制相似问题