当我从终端在 Ubuntu 16.04 中安装颜色选择器时,出现此错误。我使用此命令来安装它:
sudo dpkg -i pick-colour-picker_1.5-0~201606011144~ubuntu14.04.1_all.deb
(Reading database ... 263715 files and directories currently installed.)
Preparing to unpack pick-colour-picker_1.5-0~201606011144~ubuntu14.04.1_all.deb ...
Unpacking pick-colour-picker (1.5-0~201606011144~ubuntu14.04.1) over (1.5-0~201606011144~ubuntu14.04.1) ...
dpkg: dependency problems prevent configuration of pick-colour-picker:
pick-colour-picker depends on python-pkg-resources; however:
Package python-pkg-resources is not installed.
pick-colour-picker depends on python-gi-cairo; however:
Package python-gi-cairo is not installed.
dpkg: error processing package pick-colour-picker (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
pick-colour-picker
答案1
这似乎表示您尚未安装所有依赖项。尝试运行以下命令:
sudo apt -f install
这应该可以解决您的问题。如果不起作用,请尝试:
sudo apt install python-pkg-resources python-gi-cairo
在您的情况下,这两个包是颜色选择器缺少的依赖项。
答案2
由于某些依赖项未得到满足,您的软件包无法安装。我建议您安装 gdebi 并从中安装您的 .deb 软件包。它将自动安装所需的依赖包。
sudo apt-get install gdebi
安装后,右键单击 .deb 文件并使用 gdebi 打开它。干杯 :)
答案3
@Arman
在这种情况下,请执行以下操作:
首先将您的 deb 文件移动到 /var/cache/apt/archives/ 目录。然后运行以下命令:
sudo apt-get install package_name
执行该命令后,它会自动下载其依赖项。
亲爱的,如果你仍然想坚持使用 dpkg,那么:
您可以使用以下
sudo dpkg -i debfile
命令进行安装
sudo apt-get install -f
我希望这两个选项都能满足您的需求:)