dipendra@dipendra-Inspiron-3437:~$ sudo apt-get install --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
hostapd : Depends: initscripts (>= 2.88dsf-13.3) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
答案1
它将sudo apt-get --fix-broken install
取代sudo apt-get install --fix-broken
如果缺少任何依赖项,请尝试sudo apt-get --fix-missing install
您还可以尝试以下步骤:
sudo apt-get clean
sudo apt-get update
sudo apt-get autoremove
sudo apt-get install -f
sudo dpkg -a --configure
要安装启动脚本,请尝试:
sudo apt-get --dry-run install initscripts
您可以尝试通过以下方式删除损坏的包裹:
/var/log/dist-upgrade/apt.log
在文本编辑器中打开日志文件。- 找到所有“损坏”的包并使用 将其删除
sudo apt-get remove <package>
。
注意:在较新的版本中,日志位于/var/log/apt/term.log
。