【问题标题】:How to resolve this error while installing VSCode in Kali Linux?在 Kali Linux 中安装 VSCode 时如何解决此错误?
【发布时间】:2019-01-14 14:17:13
【问题描述】:

我在安装时收到此错误代码。 我试过使用 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 也无济于事。

【问题讨论】:

标签: visual-studio-code kali-linux


【解决方案1】:

您需要按照错误状态安装 libgconf。您可以为它找到一个 deb here 或使用 apt:

sudo apt install gconf

【讨论】:

    猜你喜欢
    • 2021-12-23
    • 1970-01-01
    • 1970-01-01
    • 2018-10-11
    • 2022-11-22
    • 2021-03-25
    • 2016-11-10
    • 1970-01-01
    • 2020-07-30
    相关资源
    最近更新 更多