我无法删除我没有安装的损坏软件包

我无法删除我没有安装的损坏软件包
sudo dpkg --remove --force-remove-reinstreq dotnet-runtime-2.0.0
dpkg: warning: ignoring request to remove dotnet-runtime-2.0.0 which isn't installed
The following packages have unmet dependencies:
 dotnet-sdk-2.2 : Depends: aspnetcore-runtime-2.2 (>= 2.2.3) but it is not going to be installed
                  Depends: dotnet-runtime-2.2 (>= 2.2.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

该错误告诉您这dotnet-sdk取决于dotnet-runtime

sudo apt remove dotnet-sdk 

应该可以防止将来再次出现同样的错误。

相关内容