我有一个软件包被列为可升级,但在发布时没有升级apt upgrade
像这样:
$ sudo apt list --upgradable -a
Listing... Done
dotnet-runtime-2.0.0/xenial 2.0.0-1 amd64 [upgradable from: 2.0.0-1]
dotnet-runtime-2.0.0/zesty,now 2.0.0-1 amd64 [installed,upgradable to: 2.0.0-1]
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ dpkg -s dotnet-runtime-2.0.0
Package: dotnet-runtime-2.0.0
Status: install ok installed
[...]
Version: 2.0.0-1
我是否遗漏了什么?
答案1
由于以下原因,什么也不会发生:
dotnet-runtime-2.0.0/xenial 2.0.0-1 amd64 [upgradable from: 2.0.0-1]
dotnet-runtime-2.0.0/zesty,now 2.0.0-1 amd64 [installed,upgradable to: 2.0.0-1]
两行都说:2.0.0-1
,运行sudo apt update
以更新你的包索引。