Opensuse
無法在 Opensuse 42.3 上安裝 Discord 應用程序?
我正在嘗試在 Opensuse 42.3 上安裝Discord 應用程序。
我下載了tar.gz並提取了它的內容。然後我通過執行命令使
discord.desktop
文件可執行sudo chmod +x ./Discord/discord.desktop
。然後我點兩下該
discord.desktop
文件,但它沒有成功執行。下面是打開後的視窗截圖:我嘗試從命令行啟動 Discord,但收到以下錯誤:
:~> sudo chmod +x Downloads/Discord/discord.desktop [sudo] password for root: :~> ./Downloads/Discord/discord.desktop ./Downloads/Discord/discord.desktop: line 1: [Desktop: command not found ./Downloads/Discord/discord.desktop: line 4: unexpected EOF while looking for matching `'' ./Downloads/Discord/discord.desktop: line 10: syntax error: unexpected end of file
discord.desktop 的內容是 -
rajkumar@linux-7owj:~> cat 下載/Discord/discord.desktop
[Desktop Entry] Name=Discord StartupWMClass=discord Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. GenericName=Internet Messenger Exec=/usr/share/discord/Discord Icon=discord Type=Application Categories=Network;InstantMessaging;
X-Session Errors 沒有給出任何有用的結果。我在執行不和諧之前和之後都試過了
rajkumar@linux-7owj:~> tail -f ~/.xsession-errors tail: cannot open '/home/rajkumar/.xsession-errors' for reading: No such file or directory tail: no files remaining
以下是我的作業系統詳細資訊:
:~> lsb_release LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
通過使用 snap 安裝 Opensuse 在 Opensuse 上啟動不和諧時,會出現以下錯誤:
Gtk-Message: Failed to load module "canberra-gtk-module" Discord 0.0.4 Starting updater. [Modules] Modules initializing [Modules] Distribution: remote [Modules] Host updates: enabled [Modules] Module updates: enabled [Modules] Module install path: /home/tjiho/snap/discord/52/.config/discord/0.0.4/modules [Modules] Module installed file path: /home/tjiho/snap/discord/52/.config/discord/0.0.4/modules/installed.json [Modules] Module download path: /home/tjiho/snap/discord/52/.config/discord/0.0.4/modules/pending [11045:0219/154734.826940:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Noto Sans, sans #0 0x000001e57c8e <unknown> #1 0x000001e6a80b <unknown> #2 0x00000198780d <unknown> #3 0x00000198744f <unknown> #4 0x000001988106 <unknown> #5 0x000001972469 <unknown> #6 0x000000b3271e <unknown> #7 0x000000d87a03 <unknown> #8 0x000003c22106 atom::api::WebContents::InitWithSessionAndOptions() #9 0x000003c2298f atom::api::WebContents::WebContents() #10 0x000003c2d886 atom::api::WebContents::Create() #11 0x000003c3fb35 atom::api::Window::Window() #12 0x000003c4164c atom::api::Window::New() #13 0x000003be75f0 mate::internal::InvokeNew<>() #14 0x000003be7780 mate::internal::Dispatcher<>::DispatchToCallback() #15 0x7f388e3e6e6f <unknown> #16 0x7f388e7f637b <unknown> #17 0x7f388e7f5e39 <unknown> #18 0x0c816f2843a7 <unknown> Aborted (core dumped)
我能做些什麼來解決這個問題?
您可以使用 flatpack 安裝它:
$ sudo zypper install flatpak $ sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo $ sudo flatpak install --from https://flathub.org/repo/appstream/com.discordapp.Discord.flatpakref
然後註銷並登錄,您將安裝 dicord
對於其他可能不想使用 flatpak 的人,您可能只是缺少 libc++1 包。我在 Ubuntu 上遇到了同樣的問題。
- 完全退出 Discord(從系統托盤退出)。
- 安裝 libc++1:
須藤 zypper 安裝
這是我在 Ask Ubuntu 上提供的答案:
使用 gzip 包 (Discord 0.0.4) 在 XUbuntu 16.04 上同樣的問題。安裝“libc++1”包並成功啟動 Discord——不再有空視窗:
sudo aptitude 安裝 libc++1
注意:我發現論壇文章指出“libc++”是必需的,並安裝了應包含 libc++ 的 clang 工具鏈包。這不起作用,所以我懷疑較新版本的 Discord 需要 libc++1 提供的較新 libc++