-1

我在安装时收到此错误代码。我试过使用 sudo apt intall ./<filename>.deb

但它给出了这个错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 code : Depends: libgconf-2-4 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

还有这个:

sudo dpkg -i code_1.30.2-1546901646_amd64.deb

但它给出了另一个错误。

Selecting previously unselected package code.
(Reading database ... 340375 files and directories currently installed.)
Preparing to unpack code_1.30.2-1546901646_amd64.deb ...
Unpacking code (1.30.2-1546901646) ...
dpkg: dependency problems prevent configuration of code:
 code depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.
dpkg: error processing package code (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.61) ...
Errors were encountered while processing:
 code

甚至sudo apt --fix-broken install没有帮助。

4

1 回答 1

0

您需要按照错误状态安装 libgconf。你可以在这里找到它的 deb或使用 apt:

sudo apt install gconf
于 2019-01-14T14:29:23.920 回答