web-dev-qa-db-ja.com

Flatpak 1.6.2のインストール後の問題

ChromebookのCroutonでUbuntu 18.04を使用していますが、Flatpakをインストールしようとしました。インストール中にすべてがうまくいきましたが、flathubから何もダウンロードできず、flathubで何かしようとするたびにエラーが発生します。

今私はSpotifyアプリをインストールしようとしました、そしてそれは言います

「com.spotify.Client from flathub」をインストールできません:追加のデータを適用しようとしています:apply_extraスクリプトが失敗しました、終了ステータス256

それについてインターネットで何も見つかりませんでした。私は このチュートリアル を使用してFlatpak 1.6.2をインストールしました(有用な情報の場合)。

私に何ができる?

3
blubiboy98

19.10で動作させるために行ったこと

$ Sudo add-apt-repository ppa:alexlarsson/flatpak
$ Sudo apt install flatpak
The following NEW packages will be installed:
  flatpak libostree-1-1

Sudo apt install gnome-software-plugin-flatpak
The following NEW packages will be installed:
  gnome-software-plugin-flatpak libflatpak0

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

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

$ echo $XDG_DATA_DIRS
/usr/share/ubuntu-wayland:/usr/local/share:/usr/share:/var/lib/snapd/desktop

$ flatpak install flathub com.spotify.Client

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for matches…
Required runtime for com.spotify.Client/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/19.08) found in remote flathub
Do you want to install it? [Y/n]: 

com.spotify.Client permissions:
    ipc           network              pulseaudio          x11
    dri           file access [1]      dbus access [2]     bus ownership [3]
    tags [4]

    [1] xdg-music:ro, xdg-pictures:ro
    [2] org.freedesktop.Notifications, org.gnome.SessionManager,

        ID                                     Branch   Op   Remote    Download
 1. [✓] org.freedesktop.Platform.GL.default    19.08    i    flathub    93,1 MB / 92,6 MB
 2. [✓] org.freedesktop.Platform.Locale        19.08    i    flathub     3,2 MB / 318,2 MB
 3. [✓] org.freedesktop.Platform.VAAPI.Intel   19.08    i    flathub     8,6 MB / 8,7 MB
 4. [✗] org.freedesktop.Platform.openh264      19.08    i    flathub   594,2 kB / 593,4 kB
 5. [✓] org.gtk.Gtk3theme.Yaru-light           3.22     i    flathub   153,5 kB / 207,6 kB
 6. [✓] org.freedesktop.Platform               19.08    i    flathub   244,3 MB / 238,1 MB
 7. [✓] com.spotify.Client                     stable   i    flathub   135,7 MB / 131,9 MB

Warning: org.freedesktop.Platform.openh264 not installed
Installation complete.

$ flatpak install flathub org.freedesktop.Platform.openh264/x86_64/19.08

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for matches…


        ID                                   Branch    Op    Remote    Download
 1. [✓] org.freedesktop.Platform.openh264    19.08     i     flathub   593,6 kB / 593,4 kB

Installation complete.

$ flatpak run com.spotify.Client

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

/app/extra/bin/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/bin/spotify)
Gtk-Message: 19:58:38.385: Failed to load module "atk-bridge"
Gtk-Message: 19:58:38.423: Failed to load module "canberra-gtk-module"
/app/extra/share/spotify/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/share/spotify/spotify)
/proc/self/exe: /app/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)
/proc/self/exe: /app/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

Spitifyが正常に開始しました: spotify window

実行した場合は、$記号で始まるコマンドを確認してください。

また、新しいユーザーを作成してみることもできます。

Sudo adduser newuser && Sudo usermod -aG Sudo newuser

それを使用してログインし、再試行してください。

1
Gryu