首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无人值守的dotnet升级不工作

无人值守的dotnet升级不工作
EN

Ask Ubuntu用户
提问于 2021-06-10 08:53:23
回答 1查看 143关注 0票数 2

我正试图在ubuntu20.04.2上倾诉微软dotnet的无人值守升级。

我在无人值守的升级配置中添加了“源”和“允许的源”部分:

代码语言:javascript
复制
    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升级正在等待--可升级的:

代码语言:javascript
复制
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 -升级-模拟运行-调试时,我得到:

代码语言:javascript
复制
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软件包没有升级?

提前谢谢!

EN

回答 1

Ask Ubuntu用户

发布于 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焦点”。

这应该使它独立于发布:

代码语言:javascript
复制
"microsoft-ubuntu-${distro_codename}-prod ${distro_codename}:${distro_codename}";
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1344944

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档