![我无法删除我没有安装的损坏软件包](https://linux22.com/image/1165257/%E6%88%91%E6%97%A0%E6%B3%95%E5%88%A0%E9%99%A4%E6%88%91%E6%B2%A1%E6%9C%89%E5%AE%89%E8%A3%85%E7%9A%84%E6%8D%9F%E5%9D%8F%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
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
应该可以防止将来再次出现同样的错误。