在 ubuntu 上安装 libgconf-2-4

问题描述 投票:0回答:3

今天我在 USB 驱动器上制作了一个可启动的 ubuntu。我想为我的 ubuntu 下载不和谐,并从不和谐网站下载了该文件。但是,当我尝试安装时,出现缺少依赖项错误。错误是:

dpkg: dependency problems prevent configuration of discord:
 discord depends on libatomic1; however:
  Package libatomic1 is not installed.
 discord depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.
 discord depends on libappindicator1; however:
  Package libappindicator1 is not installed.
 discord depends on libc++1; however:
  Package libc++1 is not installed.

当我尝试安装 libgconf-2-4 时,我收到另一个错误:

Package libgconf-2-4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgconf-2-4' has no installation candidate

如何解决这个问题?

linux ubuntu discord deb
3个回答
9
投票

就我而言,我使用的是 ubuntu 20.04,我使用以下两个命令完成了

apt install libgconf-2-4

如果损坏则执行以下命令

apt --fix-broken install

0
投票

我正在使用 ubuntu 22.04,下面的命令为我修复了它

apt --fix-broken install

0
投票

在你的etc/apt/sources.list中应该有一些类似旧稳定的东西 获取:3 http://deb.debian.org/debian oldstable/main amd64 libgconf-2-4 amd64 3.2.6-7 [428 kB] 获取:4 http://deb.debian.org/debian oldstable/main amd64 libldap-2.4-2 amd64 2.4.57+dfsg-3+deb11u1 [232 kB]

etc/apt/sources.list 是当你注释掉或者不包含下面的命令时出现的问题

deb http://deb.debian.org/debian oldstable 主要非自由贡献

© www.soinside.com 2019 - 2024. All rights reserved.