我只是安装了 Xubuntu 20.04,并进行了初始设置sudo apt upgrade
,然后重新启动。现在,我正在尝试安装dkms
,并收到此信息。发生了什么?
~$ sudo apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
dkms : Depends: gcc but it is not going to be installed or
c-compiler
Depends: dpkg-dev but it is not going to be installed
Depends: make or
build-essential but it is not going to be installed
Recommends: fakeroot
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
当没有任何东西应该损坏时,我犹豫是否要尝试修复损坏的东西。这是一个骨架安装!
答案1
我找到了答案。我尝试从.deb
文件中安装包,但由于缺少dkms
,导致配置失败,这就是我尝试安装 的原因dkms
。当我清除未配置的包并再次尝试安装 时dkms
,它运行正常。
不确定为什么未配置的包会破坏安装其他包的能力......