如何列出所有依赖问题?

如何列出所有依赖问题?

就像能够过滤破损包裹在 synaptic 中,有没有办法列出(CLI 或 GUI)所有依赖问题?

或者依赖性问题是否会显现出来?

libgd2-noxpm我很困惑,因为每次我安装libgd2-xpm

我遇到了同样的错误,当然,软件包是反向的:

dpkg: libgd2-noxpm: dependency problems, but removing anyway as you requested:
 graphviz depends on libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-noxpm is to be removed.
  Package libgd2-xpm is not installed.
 libgraphviz4 depends on libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-noxpm is to be removed.
  Package libgd2-xpm is not installed.
 libm17n-0 depends on libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-noxpm is to be removed.
  Package libgd2-xpm is not installed.
 webalizer depends on libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-noxpm is to be removed.
  Package libgd2-xpm is not installed.

例如,当我尝试安装时,libgd2-xpm它会抱怨,因为直到出现错误后它才安装,但我只是想能够列出所有依赖关系问题以确保万无一失。有什么想法吗?或者有人知道依赖关系问题是否确实会显示为损坏?

答案1

sudo apt-get check是你的朋友。 :)

从手册页中:

查看
check 是一个诊断工具;它更新包缓存并检查是否存在损坏的依赖关系

对于更精细的检查(半配置等),您可以尝试sudo dpkg -C

-C, --audit 搜索系统上仅部分安装的软件包。dpkg将建议如何处理它们以使其正常工作。

相关内容