我正在尝试使用 . 在我的 Kali Linux(紫色版)上安装 Spotify 和 Discord apt install <package name/deb file>
。
然而我遇到了依赖问题。通常,Kali 会自动安装这些依赖项,但似乎无法安装此依赖项:
libgconf-2-4
为了提供更多信息,这里有一些附加信息:
└─$ sudo apt install ./discord-0.0.29.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'discord' instead of './discord-0.0.29.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
discord : Depends: libgconf-2-4 but it is not installable
Recommends: libappindicator1 but it is not installable or
libayatana-appindicator1 but it is not installable
E: Unable to correct problems, you have held broken packages.
└─$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2023.3
Codename: kali-rolling
└─$ sudo cat /etc/apt/sources.list
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
我尝试按照sudo apt install libgconf-2-4
网上的许多说明手动安装它,但结果导致找不到该包:
E: Unable to locate package libgconf-2-4
我尝试更新软件包列表并成功完全更新整个系统:
└─$ sudo apt update && sudo apt full-upgrade -Vy && sudo apt autoremove -y && sudo apt autoclean
Hit:1 http://repository.spotify.com stable InRelease
Hit:2 http://mirror.aktkn.sg/kali kali-rolling InRelease
Hit:3 https://packages.microsoft.com/repos/code stable InRelease
Ign:4 https://repo.hotspotshield.com/deb/rel/all release InRelease
Hit:5 https://repo.hotspotshield.com/deb/rel/all release Release
Ign:6 https://repo.hotspotshield.com/deb/rel/all release Release.gpg
Hit:7 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
最后,我尝试使用以下方法修复损坏的安装:
sudo apt --fix-broken install
所有这些尝试都没有使局势取得进展。非常感谢任何帮助。
答案1
libgconf-2-4
曾是从卡利移除8 月 7 日,随后从 Debian 中删除它。由于 Kali 是滚动发行版,因此没有可靠的方法来安装该软件包 - 从技术上讲,您可以尝试安装该软件包的旧副本,但您将不得不处理将来可能导致的任何问题。
您必须等待更新的 Discord 软件包(或索要一个)。鉴于该库将在下个月发布的 Ubuntu 23.10 中不可用,因此您不必等待太久。
(无论如何,Kali 不是通用发行版,因此您不应该依赖在那里安装第三方软件包。)
答案2
我希望安装 Spotify。安装“snap”软件的解决方案
sudo apt update
sudo apt install snapd
sudo snap install spotify
O en tu caso:
sudo snap install discord