安装 Marble 时出错:dpkg:依赖性问题阻止配置 Marble

安装 Marble 时出错:dpkg:依赖性问题阻止配置 Marble

我有一个带有 Debian 8 Jessie 的 Raspberry Pi 3,我正在尝试安装 Marble,但无法安装。我遇到了这个错误,我现在不知道该怎么办......

pi@raspberrypi:~/Desktop $ sudo dpkg -i marble_4.14.2-1_armhf.deb
(Reading database ... 131700 files and directories currently installed.)
Preparing to unpack marble_4.14.2-1_armhf.deb ...
Unpacking marble (4:4.14.2-1) over (4:4.14.2-1) ...
dpkg: dependency problems prevent configuration of marble:
marble depends on marble-data (>= 4:4.14.2-1); however:
Package marble-data is not installed.
marble depends on marble-plugins (= 4:4.14.2-1); however:
Package marble-plugins is not installed.
marble depends on kde-runtime (>> 4:4.10); however:
Package kde-runtime is not configured yet.
marble depends on libkdecore5 (>= 4:4.11); however:
Package libkdecore5 is not installed.
marble depends on libkdeui5 (>= 4:4.11); however:
Package libkdeui5 is not installed.
marble depends on libkio5 (>= 4:4.11); however:
Package libkio5 is not installed.
marble depends on libknewstuff3-4 (>= 4:4.11); however:
Package libknewstuff3-4 is not installed.
marble depends on libkparts4 (>= 4:4.11); however:
Package libkparts4 is not installed.
marble depends on libmarblewidget19 (= 4:4.14.2-1); however:
Package libmarblewidget19 is not installed.
marble depends on libplasma3 (>= 4:4.11); however:
Package libplasma3 is not installed.

dpkg: error processing package marble (--install):
dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Errors were encountered while processing:
marble

答案1

你找不到任何解决办法,因为你不了解问题。

“marble”包里有一堆依赖关系。 Marble 的工作需要这些依赖项。

单独打包依赖项可以使每个包保持较小的规模,并确保您只安装软件正常运行所需的内容。它允许单独修补或升级每个依赖项。它可以使已安装系统的大小保持较小。它可以防止同一系统上存在多个版本的共享库的“dll 地狱”。

简而言之,单独打包的依赖项是使用基于 Debian 的系统的巨大好处之一。

现在返回并再次阅读每条错误消息。现在应该更有意义了。

有两种方法可以解决您的问题

最简单的方法是使用 apt 而不是 dpkg。 Apt 将自动下载并安装依赖项,并且是大多数基于 Debian 的系统推荐的包管理器。

例如,在 Ubuntu 16.04 和 Debian 8(及更高版本)中,以下命令将为您完成所有操作:

sudo apt install marble

较旧的方法是使用 dpkg。 dpkg 不会下载和安装依赖项 - 它只是安装或卸载指示的包。 Apt 构建在 dpkg 之上,正是为了处理您的用例:需要下载和安装大量依赖项。

相关内容