Hallo liebe Gemeinde,
ich schreibe an einem Arch Linux Installation Script das meine Bedürfnisse voll abdeckt.
Leider bin ich an einem unüberwindlichen punkt gekommen und ich bin inzwischen total ratlos.
Ich hoffe einer von euch kann evtl. helfen.
Ich möchte mit meinem Script in der chroot Umgebung von der Live CD aus in dem neuen System Flatpak Pakete installieren. Aber leider Scheiter es. Ich bekomme folgende Fehlermeldung:
[root@archiso ide]# flatpak install -v -y flathub com.google.AndroidStudio
Note that the directories
'/var/lib/flatpak/exports/share'
'/root/.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.
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /root/.local/share/flatpak
Looking for matches…
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using curl
F: Received 10001 bytes
F: Loading https://dl.flathub.org/repo/summaries/656846c03468c48790e91223e19dc43a1be851a642ff73bbca06d578f129528d.idx.sig using curl
F: Received 592 bytes
F: Fetching indexed summary delta 8d456181bd28de0d9eef98f0f7753b50690f90342baeda449f0947a3d54adb38-83ace9896aebe3c781d246d13d18d13a3dec5cf0b4187d053ec59ba6e5af1656.delta for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summaries/8d456181bd28de0d9eef98f0f7753b50690f90342baeda449f0947a3d54adb38-83ace9896aebe3c781d246d13d18d13a3dec5cf0b4187d053ec59ba6e5af1656.delta using curl
F: Received 36328 bytes
F: Transaction: install flathub:app/com.google.AndroidStudio/x86_64/stable[]
F: Looking for remote metadata updates for flathub
F: marking op install:app/com.google.AndroidStudio/x86_64/stable resolved to 49fb8033fafab363f0a1a416140fdcefe694be61c4928b536a400cbf5699029d
F: Updating dependency org.freedesktop.Sdk/x86_64/23.08 of com.google.AndroidStudio/x86_64/stable
F: Transaction: update flathub:runtime/org.freedesktop.Sdk/x86_64/23.08[$old]
F: marking op update:runtime/org.freedesktop.Sdk/x86_64/23.08 resolved to 7b47cee98944ace0259eff15ece1c11842cbd2fdfa0683970afb55fb308f25dc
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/23.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/23.08-extra[]
F: Transaction: install/update flathub:runtime/org.freedesktop.Sdk.Locale/x86_64/23.08[*]
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0[$old]
F: Transaction: install/update flathub:runtime/com.google.AndroidStudio.Locale/x86_64/stable[*]
F: marking op install/update:runtime/com.google.AndroidStudio.Locale/x86_64/stable resolved to ddd6d8852b76afba7ea13696e962f0899b8e3844e160795cd0af1d6ebd12cd36
F: marking op install/update:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0 resolved to bf24f23f3ba385f6e8c9215ed94d979db99814b0b614504a23a6d0751dc5f063
F: marking op install/update:runtime/org.freedesktop.Sdk.Locale/x86_64/23.08 resolved to d851cb771c463a89ed9342bc084033c4491e63c2fc156cde31bbf1f4619ccd50
F: marking op install/update:runtime/org.freedesktop.Platform.GL.default/x86_64/23.08-extra resolved to a4f8429e8acc5e21cfeead862df3a0eb6412398ac43b6ed6c791ce2c2d5ee73a
F: marking op install/update:runtime/org.freedesktop.Platform.GL.default/x86_64/23.08 resolved to 8072b73fee6e39cf85919381f67a116fa73605509383f538825eb54f6db9d4ff
F: Checking installation ‘system’ for EOL unused refs and autoprunes
F: Checking installation ‘system’ by checking for dependent refs in ‘user’
F: Checking installation ‘system’ for EOL unused refs and autoprunes
F: Checking installation ‘system’ by checking for dependent refs in ‘user’
com.google.AndroidStudio permissions:
ipc network pulseaudio ssh-auth x11 devices multiarch file access [1] dbus access [2]
[1] host, xdg-run/keyring
[2] org.freedesktop.Flatpak, org.freedesktop.Notifications, org.freedesktop.secrets
- com.google.AndroidStudio.Locale stable i flathub < 54.4 kB
- org.freedesktop.Platform.openh264 2.2.0 i flathub < 944.3 kB
- com.google.AndroidStudio stable i flathub < 1.2 GB
Installing 1/3…
F: flatpak_dir_pull: Using commit ddd6d8852b76afba7ea13696e962f0899b8e3844e160795cd0af1d6ebd12cd36 for pull of ref runtime/com.google.AndroidStudio.Locale/x86_64/stable from remote flathub
Installing 1/3… 0% 0 bytes/s
Installing 1/3… █████████████████▏ 86%
Installing 1/3… ████████████████████ 100%
F: No checksum specified, getting tip of runtime/com.google.AndroidStudio.Locale/x86_64/stable from origin flathub
F: tip resolved to: ddd6d8852b76afba7ea13696e962f0899b8e3844e160795cd0af1d6ebd12cd36
F: Skipping parental controls check for runtime/com.google.AndroidStudio.Locale/x86_64/stable due to running as root
Installing 2/3…
F: flatpak_dir_pull: Using commit bf24f23f3ba385f6e8c9215ed94d979db99814b0b614504a23a6d0751dc5f063 for pull of ref runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0 from remote flathub
Installing 2/3… 0% 0 bytes/s
Installing 2/3… █ 5%
F: Loading http://ciscobinary.openh264.org/libopenh264-2.2.0-linux64.6.so.bz2 using curl
Installing 2/3… ████████████████████ 100%
F: Received 613660 bytes
F: No checksum specified, getting tip of runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0 from origin flathub
F: tip resolved to: bf24f23f3ba385f6e8c9215ed94d979db99814b0b614504a23a6d0751dc5f063
F: extracting extra data to /var/lib/flatpak/runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0/.bf24f23f3ba385f6e8c9215ed94d979db99814b0b614504a23a6d0751dc5f063-iqh6Um/files/extra
F: Disallowing ipc access
F: Disallowing network access
F: Failed to run in transient scope: No systemd user session available, cgroups not available
F: Running /app/bin/apply_extra
bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.
Warning: While trying to apply extra data: apply_extra script failed, exit status 256
Installing 3/3…
F: flatpak_dir_pull: Using commit 49fb8033fafab363f0a1a416140fdcefe694be61c4928b536a400cbf5699029d for pull of ref app/com.google.AndroidStudio/x86_64/stable from remote flathub
Installing 3/3… 0% 0 bytes/s
Installing 3/3… █▌ 8%
Installing 3/3… █▌ 8%
F: Loading https://dl.google.com/dl/android/studio/ide-zips/2023.2.1.25/android-studio-2023.2.1.25-linux.tar.gz using curl
Installing 3/3… █▊ 9% 21.2 MB/s
Installing 3/3… ██ 10% 19.2 MB/s
Installing 3/3… ██▍ 12% 18.6 MB/s
Installing 3/3… ██▌ 13% 18.3 MB/s 00:26
Installing 3/3… ██▊ 14% 18.0 MB/s 00:30
Installing 3/3… ███▏ 16% 17.6 MB/s 00:31
Installing 3/3… ███▍ 17% 17.5 MB/s 00:34
Installing 3/3… ███▌ 18% 17.5 MB/s 00:36
Installing 3/3… ████ 20% 17.4 MB/s 00:36
Installing 3/3… ████▏ 21% 17.4 MB/s 00:37
Installing 3/3… ████▍ 22% 17.2 MB/s 00:39
Installing 3/3… ████▌ 23% 17.2 MB/s 00:40
Installing 3/3… █████ 25% 17.2 MB/s 00:39
Installing 3/3… █████▏ 26% 17.2 MB/s 00:39
Installing 3/3… █████▍ 27% 17.2 MB/s 00:40
Installing 3/3… █████▊ 29% 17.1 MB/s 00:39
Installing 3/3… ██████ 30% 17.1 MB/s 00:39
Installing 3/3… ██████▏ 31% 17.1 MB/s 00:40
Installing 3/3… ██████▌ 33% 17.1 MB/s 00:38
Installing 3/3… ██████▊ 34% 17.1 MB/s 00:38
Installing 3/3… ███████ 35% 17.1 MB/s 00:39
Installing 3/3… ███████▏ 36% 17.0 MB/s 00:39
Installing 3/3… ███████▌ 38% 17.0 MB/s 00:37
Installing 3/3… ███████▊ 39% 17.0 MB/s 00:37
Installing 3/3… ████████ 40% 17.0 MB/s 00:37
Installing 3/3… ████████▍ 42% 17.0 MB/s 00:35
Installing 3/3… ████████▌ 43% 17.0 MB/s 00:35
Installing 3/3… ████████▊ 44% 17.0 MB/s 00:35
Installing 3/3… █████████ 45% 17.0 MB/s 00:35
Installing 3/3… █████████▍ 47% 17.0 MB/s 00:33
Installing 3/3… █████████▌ 48% 17.0 MB/s 00:33
Installing 3/3… █████████▊ 49% 17.0 MB/s 00:33
Installing 3/3… ██████████▏ 51% 17.0 MB/s 00:31
Installing 3/3… ██████████▍ 52% 17.0 MB/s 00:31
Installing 3/3… ██████████▌ 53% 17.0 MB/s 00:31
Installing 3/3… ███████████ 55% 17.0 MB/s 00:29
Installing 3/3… ███████████▏ 56% 16.9 MB/s 00:29
Installing 3/3… ███████████▍ 57% 17.0 MB/s 00:28
Installing 3/3… ███████████▌ 58% 17.0 MB/s 00:28
Installing 3/3… ████████████ 60% 17.0 MB/s 00:26
Installing 3/3… ████████████▏ 61% 17.0 MB/s 00:26
Installing 3/3… ████████████▍ 62% 16.9 MB/s 00:25
Installing 3/3… ████████████▊ 64% 17.0 MB/s 00:24
Installing 3/3… █████████████ 65% 17.0 MB/s 00:23
Installing 3/3… █████████████▏ 66% 17.0 MB/s 00:23
Installing 3/3… █████████████▌ 68% 17.0 MB/s 00:21
Installing 3/3… █████████████▊ 69% 17.0 MB/s 00:21
Installing 3/3… ██████████████ 70% 16.9 MB/s 00:20
Installing 3/3… ██████████████▏ 71% 16.9 MB/s 00:20
Installing 3/3… ██████████████▌ 73% 16.9 MB/s 00:18
Installing 3/3… ██████████████▊ 74% 16.9 MB/s 00:17
Installing 3/3… ███████████████ 75% 16.9 MB/s 00:17
Installing 3/3… ███████████████▍ 77% 16.9 MB/s 00:15
Installing 3/3… ███████████████▌ 78% 16.9 MB/s 00:15
Installing 3/3… ███████████████▊ 79% 16.9 MB/s 00:14
Installing 3/3… ████████████████▏ 81% 16.9 MB/s 00:13
Installing 3/3… ████████████████▍ 82% 16.9 MB/s 00:12
Installing 3/3… ████████████████▌ 83% 16.9 MB/s 00:11
Installing 3/3… ████████████████▊ 84% 16.9 MB/s 00:11
Installing 3/3… █████████████████▏ 86% 16.9 MB/s 00:09
Installing 3/3… █████████████████▍ 87% 16.9 MB/s 00:09
Installing 3/3… █████████████████▌ 88% 16.9 MB/s 00:08
Installing 3/3… ██████████████████ 90% 16.9 MB/s 00:07
Installing 3/3… ██████████████████▏ 91% 16.9 MB/s 00:06
Installing 3/3… ██████████████████▍ 92% 16.9 MB/s 00:05
Installing 3/3… ██████████████████▌ 93% 16.9 MB/s 00:04
Installing 3/3… ███████████████████ 95% 16.9 MB/s 00:03
Installing 3/3… ███████████████████▏ 96% 16.9 MB/s 00:02
Installing 3/3… ███████████████████▍ 97% 16.9 MB/s 00:02
Installing 3/3… ███████████████████▊ 99% 16.9 MB/s 00:00
Installing 3/3… ███████████████████▊ 99% 17.0 MB/s 00:00
F: Received 1182253614 bytes
F: No checksum specified, getting tip of app/com.google.AndroidStudio/x86_64/stable from origin flathub
F: tip resolved to: 49fb8033fafab363f0a1a416140fdcefe694be61c4928b536a400cbf5699029d
F: extracting extra data to /var/lib/flatpak/app/com.google.AndroidStudio/x86_64/stable/.49fb8033fafab363f0a1a416140fdcefe694be61c4928b536a400cbf5699029d-oFVWNi/files/extra
F: Opening system flatpak installation at path /var/lib/flatpak
F: /var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/23.08/7b47cee98944ace0259eff15ece1c11842cbd2fdfa0683970afb55fb308f25dc/files/lib32 does not exist
F: Disallowing ipc access
F: Disallowing network access
F: Failed to run in transient scope: No systemd user session available, cgroups not available
F: Running /app/bin/apply_extra
bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.
Error: While trying to apply extra data: apply_extra script failed, exit status 256
error: Failed to install com.google.AndroidStudio: While trying to apply extra data: apply_extra script failed, exit status 256
[root@archiso ide]# echo $?
1
Mein Ziel ist es, das nach dem das Script gelaufen ist das System vollständig eingerichtet ist und ich nach dem ersten Boot nicht noch weitere Pakete installieren oder andere Konfigurationen durchführen muss.