Discord 无法启动

Discord 无法启动

我使用的是 Ubuntu 18.04 LTS 64 位。Discord 以前可以正常工作,但现在无法正常工作了。我收到以下错误:

adam@adam-desktop:~$ discord
/snap/discord/69/bin/desktop-launch: line 23: /home/adam/.config/user-dirs.dirs: Permission denied
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"

我已经尝试过以下操作:

adam@adam-desktop:~$ sudo apt-get install libatk-adaptor libgail-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libatk-adaptor is already the newest version (2.26.2-1).
libgail-common is already the newest version (2.24.32-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

有想法该怎么解决这个吗?

答案1

我让它工作了。我不得不重新下载 Discord:https://discordapp.com/download,然后运行以下命令:

sudo dpkg -i discord-0.0.5.deb

root@adam-desktop:/home/adam/Downloads# dpkg -i discord-0.0.5.deb
Selecting previously unselected package discord.
(Reading database ... 253573 files and directories currently installed.)
Preparing to unpack discord-0.0.5.deb ...
Unpacking discord (0.0.5) ...
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 desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 discord

注意错误,因此运行下一个命令sudo apt-get install -f::

root@adam-desktop:/home/adam/Downloads# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libc++1 libc++abi1
Suggested packages:
  clang
The following NEW packages will be installed:
  libc++1 libc++abi1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 240 kB of archives.
After this operation, 1,024 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libc++abi1 amd64 6.0-2 [56.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libc++1 amd64 6.0-2 [183 kB]
Fetched 240 kB in 0s (781 kB/s)  
Selecting previously unselected package libc++abi1:amd64.
(Reading database ... 253662 files and directories currently installed.)
Preparing to unpack .../libc++abi1_6.0-2_amd64.deb ...
Unpacking libc++abi1:amd64 (6.0-2) ...
Selecting previously unselected package libc++1:amd64.
Preparing to unpack .../libc++1_6.0-2_amd64.deb ...
Unpacking libc++1:amd64 (6.0-2) ...
Setting up libc++abi1:amd64 (6.0-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libc++1:amd64 (6.0-2) ...
Setting up discord (0.0.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ..

答案2

如果您从 Ubuntu/Snap 商店安装它,则需要授予 discord 一些权限。

打开安装页面:

在此处输入图片描述

在此处输入图片描述

我授予了所有权限。您可以尝试授予所需的权限并检查是否有效。如果您不介意,则只需授予所有权限即可。

相关内容