discord 在 ubuntu 22.04 上无法运行

discord 在 ubuntu 22.04 上无法运行

我下载了 discord .deb 文件并尝试通过几种方式进行安装。

sudo dpkg -i ./discord-0.0.18.deb

然后终端看起来像

(Reading database ... 255328 files and directories currently installed.)
Preparing to unpack ./discord-0.0.18.deb ...
Unpacking discord (0.0.18) over (0.0.18) ...
dpkg: dependency problems prevent configuration of discord:
 discord depends on libc++1; however:
  Package libc++1 is not installed.

dpkg: error processing package discord (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Errors were encountered while processing:
 discord

我尝试使用

sudo apt-get install ./discord-0.0.18.deb 

然后

(Reading database ... 255328 files and directories currently installed.)
Preparing to unpack ./discord-0.0.18.deb ...
Unpacking discord (0.0.18) over (0.0.18) ...
dpkg: dependency problems prevent configuration of discord:
 discord depends on libc++1; however:
  Package libc++1 is not installed.

dpkg: error processing package discord (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Errors were encountered while processing:
 discord

我尝试使用安装缺少的包

sudo apt install libc++1

但终端看起来像

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc++1 : Depends: libc++1-14 (>= 14~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

答案1

Discord 可以通过 snap 安装

安装 snap

可能已经安装
sudo apt install snapd-xdg-open

安装 discord

sudo snap install discord

相关内容