E:错误,pkgProblemResolver ::解决生成的中断,这可能是由持有的包引起的
我不确定是什么导致了这个错误,但这是整个错误所说的内容,而且这也是作为通知,并阻止我使用Update Manager更新任何软件 – 请提供一些帮助或告诉我如何弄清楚是什么要解决它。
Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade. Please report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
这篇文章可以解决您的问题。 总结一下,
- 在文本编辑器中打开
/var/log/dist-upgrade/apt.log
日志文件。 - 找到任何“损坏”的包并使用
sudo apt-get remove
删除它们。
注意:在较新的版本中,日志位于/var/log/apt/term.log
。
尝试:
sudo apt-get update && sudo apt-get upgrade
然后再次运行update-manager。
包错误安装可能导致此错误。
您有两种选择,1)修复损坏的安装,或2)回滚(或删除)损坏的安装。
由于上面没有提到,要回滚并删除损坏的安装,请退出synaptic(如果您还在其中),然后将这些命令输入终端:
sudo apt-get update # Make sure your package list is up to date sudo apt-get autoremove # Removes "no longer required" packages
然后确认已破坏的软件包已消失,请返回synaptic并选择Edit
| Fix broken packages
,应该没有破损的包裹。
请注意,这不会修复损坏的安装,它只是允许您在突触中再次进行其他安装或删除等操作。
发生了什么事情,你开始一个软件包安装,然后部分通过它,并在安装了一些依赖项之后,出现了问题,留下了未使用的依赖软件包,以及一个不完整的安装。
问题是我安装了一些没有升级路径的软件包,也就是说,在Precise中没有。 为了调试这个,我查看了/var/log/dist-upgrade/apt.log
文件,它识别出“已损坏”的软件包。 我只需要apt-get remove
它们,进行发布升级,然后我可以重新安装它们。
有时当你使用apt-get升级你的机器时,你会看到一个包被“保留”。
通常要升级你要运行的机器:
sudo apt-get update sudo apt-get upgrade
修复包已被保留:
sudo apt-get dist-upgrade // dist-upgrade in addition to performing the function of upgrade, // also intelligently handles changing dependencies with new versions // of packages; apt-get has a "smart" conflict resolution system, and // it will attempt to upgrade the most important packages at the // expense of less important ones if necessary. So, dist-upgrade // command may remove some packages. The /etc/apt/sources.list file // contains a list of locations from which to retrieve desired package // files. See also apt_preferences(5) for a mechanism for overriding // the general settings for individual packages.
这将升级具有更新版本的软件包,并安装执行此操作所需的任何新依赖项。