我想在 Ubuntu 20.04 中安装 net-tools 包,但出现错误。我尝试过:
sudo apt install net-tools
这给了我这个错误:
dpkg: error processing package ni-bds (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ni-kal
ni-usrp-rio-dkms
ni-usrp-rio
ni-p2p
ni-p2p-dkms
ni-rio-dkms
ni-bds-dkms
ni-usrp-rio-libs
libnip2p1
ni-rio
ni-fpga-interface
ni-bds
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
第一次运行:
sudo apt update
然后修复损坏的软件包:
sudo apt -f install
如果需要,您可以使用以下命令手动配置所有软件包,但这可能不是必需的:
sudo dpkg --configure -a
或者配置一个单独的包(如本例所示):
sudo dpkg --configure ni-kal