CentOS 我想知道为什么在discord上安装失败

CentOS I want to know why the installation fails on discord

[我是日本人,使用 google 翻译]

虽然是演示图,启动成功,但是屏幕上方提示安装失败。这是什么原因?

occurred in handler for 'DISCORD_SPELLCHECK_SET_LOCALE': Error: Invalid language code provided: "ja-JP" is not a valid language code

参考saita: https://genuine-lamps.com/ja/linux/4422-how-to-install-discord-on-linux.html

# discord
Discord 0.0.16
Gtk-Message: 10:22:33.802: Failed to load module "pk-gtk-module"
Gtk-Message: 10:22:33.805: Failed to load module "pk-gtk-module"
Starting app.
Starting updater.
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: disabled
[Modules] Module updates: enabled
[Modules] Module install path: /root/snap/discord/130/.config/discord/0.0.16/modules
[Modules] Module installed file path: /root/snap/discord/130/.config/discord/0.0.16/modules/installed.json
[Modules] Module download path: /root/snap/discord/130/.config/discord/0.0.16/modules/pending
[Modules] No updates to install
[Modules] Host is up to date.
[Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
[Modules] No module updates available.

(Discord:23902): libappindicator-WARNING **: 10:22:34.100: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(Discord:23902): LIBDBUSMENU-GLIB-WARNING **: 10:22:34.100: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”
Error occurred in handler for 'DISCORD_SPELLCHECK_SET_LOCALE': Error: Invalid language code provided: "ja-JP" is not a valid language code
    at /root/snap/discord/130/.config/discord/0.0.16/modules/discord_desktop_core/core.asar/app/discord_native/browser/spellCheck.js:22:35
    at electron/js2c/browser_init.js:197:579
    at Object.<anonymous> (electron/js2c/browser_init.js:161:9805)
    at Object.emit (events.js:315:20)
    at Object.EventEmitter.emit (domain.js:467:12)

更新:这些天我实际上从 Flathub 安装了所有东西,这很容易。虽然如果您使用 Visual Studio 代码,请使用官网提供的 RPM 文件,因为终端在 Visual Studio Flatpak 版本的代码中无法正常工作。

我建议从 Flatpak 安装 Discord。 另外 CentOS 现在已经死了,我建议切换到 Fedora 36:

https://getfedora.org/(默认为 GNOME)

https://spins.fedoraproject.org/(更多 DE 选项)

如果您确实选择安装 Fedora,运行 此命令会将 Flathub 添加到内置商店并等待几分钟。几分钟后,Discord 将出现在商店中,然后从那里点击安装。

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo