Repository navigation
Description
Describe the bug
Toolbox bind mounts /var/lib/flatpak/ into the container if it exists on the host. This causes the installation of the flatpak package inside the toolbox to fail on fedora-32. https://bugzilla.redhat.com/show_bug.cgi?id=1759953
Steps how to reproduce the behaviour
[user@host ~]$ toolbox --log-level debug create --image registry.fedoraproject.org/f32/fedora-toolbox:32
...
[user@host ~]$ df /var/lib/flatpak/
Filesystem ... Mounted on
/dev/xvda3 ... /
[user@host ~]$ toolbox --log-level debug enter
...
⬢[user@toolbox ~]$ df /var/lib/flatpak/
Filesystem ... Mounted on
/dev/xvda3 ... /var/lib/flatpak
⬢[user@toolbox ~]$ ls -lnd /var/lib/flatpak/
drwxr-xr-x 3 65534 65534 4096 Sep 11 17:59 /var/lib/flatpak/
⬢[user@toolbox ~]$ sudo dnf install flatpak
...
Running scriptlet: flatpak-1.8.2-2.fc32.x86_64 64/66
Installing : flatpak-1.8.2-2.fc32.x86_64 64/66
Error unpacking rpm package flatpak-1.8.2-2.fc32.x86_64
Installing : xdg-desktop-portal-1.8.0-1.fc32.x86_64 65/66
error: unpacking of archive failed on file /var/lib/flatpak: cpio: chown
error: flatpak-1.8.2-2.fc32.x86_64: install failed
...
The complete log
[user@host ~]$ toolbox --log-level debug create --image registry.fedoraproject.org/f32/fedora-toolbox:32
DEBU Running as real user ID 1000
DEBU Resolved absolute path to the executable as /usr/bin/toolbox
DEBU Running on a cgroups v2 host
DEBU Checking if /etc/subgid and /etc/subuid have entries for user user
DEBU TOOLBOX_PATH is /usr/bin/toolbox
DEBU Toolbox config directory is /home/user/.config/toolbox
DEBU Current Podman version is 2.1.1
DEBU Old Podman version is 2.1.1
DEBU Migration not needed: Podman version 2.1.1 is unchanged
DEBU Resolving container and image names
DEBU Container: ''
DEBU Image: 'registry.fedoraproject.org/f32/fedora-toolbox:32'
DEBU Release: ''
DEBU Resolved container and image names
DEBU Container: 'fedora-toolbox-32'
DEBU Image: 'registry.fedoraproject.org/f32/fedora-toolbox:32'
DEBU Release: '32'
DEBU Checking if container fedora-toolbox-32 already exists
DEBU Looking for image registry.fedoraproject.org/f32/fedora-toolbox:32
DEBU Resolving fully qualified name for image registry.fedoraproject.org/f32/fedora-toolbox:32
DEBU Resolved image registry.fedoraproject.org/f32/fedora-toolbox:32 to registry.fedoraproject.org/f32/fedora-toolbox:32
DEBU Checking if 'podman create' supports '--mount type=devpts'
DEBU 'podman create' supports '--mount type=devpts'
DEBU Checking if 'podman create' supports '--ulimit host'
DEBU 'podman create' supports '--ulimit host'
DEBU Resolving path to the D-Bus system socket
DEBU /home/user canonicalized to /home/user
DEBU Checking if /usr is mounted read-only or read-write
DEBU Mount-point of /usr is /
DEBU Mount flags of /usr on the host are rw,noatime,discard
DEBU Resolving path to the KCM socket
DEBU failed to find a SOCK_STREAM socket for sssd-kcm.socket
DEBU Checking if /media is a symbolic link to /run/media
DEBU Checking if /mnt is a symbolic link to /var/mnt
DEBU Looking for toolbox.sh
DEBU Found /etc/profile.d/toolbox.sh
DEBU Checking if /home is a symbolic link to /var/home
DEBU Creating container fedora-toolbox-32:
DEBU podman
DEBU --log-level
DEBU error
DEBU create
DEBU --dns
DEBU none
DEBU --env
DEBU TOOLBOX_PATH=/usr/bin/toolbox
DEBU --hostname
DEBU toolbox
DEBU --ipc
DEBU host
DEBU --label
DEBU com.github.containers.toolbox=true
DEBU --label
DEBU com.github.debarshiray.toolbox=true
DEBU --mount
DEBU type=devpts,destination=/dev/pts
DEBU --name
DEBU fedora-toolbox-32
DEBU --network
DEBU host
DEBU --no-hosts
DEBU --pid
DEBU host
DEBU --privileged
DEBU --security-opt
DEBU label=disable
DEBU --ulimit
DEBU host
DEBU --userns=keep-id
DEBU --user
DEBU root:root
DEBU --volume
DEBU /boot:/run/host/boot:rslave
DEBU --volume
DEBU /etc:/run/host/etc
DEBU --volume
DEBU /dev:/dev:rslave
DEBU --volume
DEBU /run:/run/host/run:rslave
DEBU --volume
DEBU /tmp:/run/host/tmp:rslave
DEBU --volume
DEBU /var:/run/host/var:rslave
DEBU --volume
DEBU /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
DEBU --volume
DEBU /home/user:/home/user:rslave
DEBU --volume
DEBU /usr/bin/toolbox:/usr/bin/toolbox:ro
DEBU --volume
DEBU /usr:/run/host/usr:rw,rslave
DEBU --volume
DEBU /run/user/1000:/run/user/1000
DEBU --volume
DEBU /media:/media:rslave
DEBU --volume
DEBU /mnt:/mnt:rslave
DEBU --volume
DEBU /run/media:/run/media:rslave
DEBU --volume
DEBU /etc/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro
DEBU registry.fedoraproject.org/f32/fedora-toolbox:32
DEBU toolbox
DEBU --verbose
DEBU init-container
DEBU --home
DEBU /home/user
DEBU --monitor-host
DEBU --shell
DEBU /bin/bash
DEBU --uid
DEBU 1000
DEBU --user
DEBU user
Created container: fedora-toolbox-32
Enter with: toolbox enter
[user@host ~]$ df /var/lib/flatpak/
Filesystem ... Mounted on
/dev/xvda3 ... /
[user@host ~]$ toolbox --log-level debug enter
DEBU Running as real user ID 1000
DEBU Resolved absolute path to the executable as /usr/bin/toolbox
DEBU Running on a cgroups v2 host
DEBU Checking if /etc/subgid and /etc/subuid have entries for user user
DEBU TOOLBOX_PATH is /usr/bin/toolbox
DEBU Toolbox config directory is /home/user/.config/toolbox
DEBU Current Podman version is 2.1.1
DEBU Old Podman version is 2.1.1
DEBU Migration not needed: Podman version 2.1.1 is unchanged
DEBU Resolving container and image names
DEBU Container: ''
DEBU Image: ''
DEBU Release: ''
DEBU Resolved container and image names
DEBU Container: 'fedora-toolbox-32'
DEBU Image: 'fedora-toolbox:32'
DEBU Release: '32'
DEBU Checking if container fedora-toolbox-32 exists
DEBU Inspecting mounts of container fedora-toolbox-32
DEBU Starting container fedora-toolbox-32
DEBU Inspecting entry point of container fedora-toolbox-32
DEBU Entry point PID is a float64
DEBU Entry point of container fedora-toolbox-32 is toolbox (PID=2436)
DEBU Waiting for container fedora-toolbox-32 to finish initializing
DEBU Checking if initialization stamp /run/user/1000/toolbox/container-initialized-2436 exists
DEBU Container fedora-toolbox-32 is initialized
DEBU Looking for command /bin/bash in container fedora-toolbox-32
DEBU Checking if 'podman exec' supports disabling the detach keys
DEBU 'podman exec' supports disabling the detach keys
DEBU Creating list of environment variables to forward
DEBU COLORTERM=truecolor
DEBU DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBU DBUS_SYSTEM_BUS_ADDRESS is unset
DEBU DESKTOP_SESSION is unset
DEBU DISPLAY=:0
DEBU LANG=C.UTF-8
DEBU SHELL=/bin/bash
DEBU SSH_AUTH_SOCK=/tmp/ssh-tAGTa53iXWDH/agent.1322
DEBU TERM=xterm-256color
DEBU TOOLBOX_PATH=/usr/bin/toolbox
DEBU VTE_VERSION=6003
DEBU WAYLAND_DISPLAY is unset
DEBU XAUTHORITY is unset
DEBU XDG_CURRENT_DESKTOP is unset
DEBU XDG_DATA_DIRS=/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
DEBU XDG_MENU_PREFIX is unset
DEBU XDG_RUNTIME_DIR=/run/user/1000
DEBU XDG_SEAT=seat0
DEBU XDG_SESSION_DESKTOP is unset
DEBU XDG_SESSION_ID=c3
DEBU XDG_SESSION_TYPE=x11
DEBU XDG_VTNR=7
DEBU Running in container fedora-toolbox-32:
DEBU podman
DEBU --log-level
DEBU error
DEBU exec
DEBU --detach-keys
DEBU
DEBU --interactive
DEBU --tty
DEBU --user
DEBU user
DEBU --workdir
DEBU /home/user
DEBU --env=COLORTERM=truecolor
DEBU --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBU --env=DISPLAY=:0
DEBU --env=LANG=C.UTF-8
DEBU --env=SHELL=/bin/bash
DEBU --env=SSH_AUTH_SOCK=/tmp/ssh-tAGTa53iXWDH/agent.1322
DEBU --env=TERM=xterm-256color
DEBU --env=TOOLBOX_PATH=/usr/bin/toolbox
DEBU --env=VTE_VERSION=6003
DEBU --env=XDG_DATA_DIRS=/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
DEBU --env=XDG_RUNTIME_DIR=/run/user/1000
DEBU --env=XDG_SEAT=seat0
DEBU --env=XDG_SESSION_ID=c3
DEBU --env=XDG_SESSION_TYPE=x11
DEBU --env=XDG_VTNR=7
DEBU fedora-toolbox-32
DEBU capsh
DEBU --caps=
DEBU --
DEBU -c
DEBU exec "$@"
DEBU /bin/sh
DEBU /bin/bash
DEBU -l
Welcome to the Toolbox; a container where you can install and run
all your tools.
- Use DNF in the usual manner to install command line tools.
- To create a new tools container, run 'toolbox create'.
For more information, see the documentation.
⬢[user@toolbox ~]$ df /var/lib/flatpak/
Filesystem ... Mounted on
/dev/xvda3 ... /var/lib/flatpak
⬢[user@toolbox ~]$ ls -lnd /var/lib/flatpak/
drwxr-xr-x 3 65534 65534 4096 Sep 11 17:59 /var/lib/flatpak/
⬢[user@toolbox ~]$ sudo dnf install flatpak
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Fedora 32 openh264 (From Cisco) - x86_64 2.0 kB/s | 2.5 kB 00:01
Fedora Modular 32 - x86_64 2.2 MB/s | 4.9 MB 00:02
Fedora Modular 32 - x86_64 - Updates 2.7 MB/s | 3.9 MB 00:01
Fedora 32 - x86_64 - Updates 6.6 MB/s | 27 MB 00:04
Fedora 32 - x86_64 7.5 MB/s | 70 MB 00:09
Dependencies resolved.
==========================================================================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================================================================
Installing:
flatpak x86_64 1.8.2-2.fc32 updates 1.5 M
Installing dependencies:
ModemManager-glib x86_64 1.12.8-1.fc32 fedora 278 k
alsa-lib x86_64 1.2.3.2-1.fc32 updates 474 k
avahi-glib x86_64 0.7-24.fc32 updates 13 k
bubblewrap x86_64 0.4.1-1.fc32 fedora 51 k
cairo x86_64 1.16.0-8.fc32 updates 712 k
cairo-gobject x86_64 1.16.0-8.fc32 updates 19 k
dconf x86_64 0.36.0-1.fc32 fedora 110 k
dejavu-sans-fonts noarch 2.37-8.fc32 updates 1.3 M
flatpak-session-helper x86_64 1.8.2-2.fc32 updates 77 k
fontconfig x86_64 2.13.92-9.fc32 updates 265 k
fonts-filesystem noarch 2.0.3-1.fc32 fedora 7.8 k
freetype x86_64 2.10.4-1.fc32 updates 392 k
fribidi x86_64 1.0.9-1.fc32 fedora 85 k
fuse x86_64 2.9.9-9.fc32 fedora 82 k
fuse-common x86_64 3.9.1-1.fc32 fedora 8.2 k
fuse-libs x86_64 2.9.9-9.fc32 fedora 101 k
gdk-pixbuf2 x86_64 2.40.0-2.fc32 fedora 464 k
geoclue2 x86_64 2.5.6-2.fc32 updates 136 k
glib-networking x86_64 2.64.3-1.fc32 updates 160 k
graphite2 x86_64 1.3.14-1.fc32 updates 103 k
gsettings-desktop-schemas x86_64 3.36.1-1.fc32 updates 670 k
harfbuzz x86_64 2.6.4-3.fc32 fedora 599 k
hwdata noarch 0.340-1.fc32 updates 1.4 M
json-glib x86_64 1.4.4-4.fc32 fedora 144 k
langpacks-core-font-en noarch 3.0-3.fc32 fedora 9.4 k
libX11-xcb x86_64 1.6.12-1.fc32 updates 11 k
libXft x86_64 2.3.3-3.fc32 fedora 64 k
libXrender x86_64 0.9.10-11.fc32 fedora 27 k
libappstream-glib x86_64 0.7.17-1.fc32 fedora 335 k
libdatrie x86_64 0.2.9-11.fc32 fedora 32 k
libdrm x86_64 2.4.102-1.fc32 updates 159 k
libmodman x86_64 2.0.1-21.fc32 fedora 34 k
libnotify x86_64 0.7.9-1.fc32 fedora 43 k
libpciaccess x86_64 0.16-2.fc32 fedora 27 k
libpng x86_64 2:1.6.37-3.fc32 fedora 116 k
libproxy x86_64 0.4.15-19.fc32 updates 72 k
librsvg2 x86_64 2.48.8-1.fc32 updates 3.2 M
libsbc x86_64 1.4-5.fc32 fedora 44 k
libsoup x86_64 2.70.0-1.fc32 fedora 388 k
libstemmer x86_64 0-14.585svn.fc32 fedora 84 k
libthai x86_64 0.1.28-4.fc32 fedora 213 k
libwayland-client x86_64 1.18.0-1.fc32 fedora 35 k
libxshmfence x86_64 1.3-6.fc32 fedora 12 k
llvm-libs x86_64 10.0.1-4.fc32 updates 20 M
low-memory-monitor x86_64 2.0-4.fc32 fedora 34 k
mesa-vulkan-drivers x86_64 20.2.2-1.fc32 updates 3.4 M
mozjs60 x86_64 60.9.0-5.fc32 fedora 6.6 M
ostree-libs x86_64 2020.7-3.fc32 updates 419 k
pango x86_64 1.44.7-2.fc32 fedora 293 k
pipewire-libs x86_64 0.3.15-2.fc32 updates 910 k
pipewire0.2-libs x86_64 0.2.7-2.fc32 fedora 354 k
pixman x86_64 0.40.0-1.fc32 updates 270 k
polkit x86_64 0.116-7.fc32 fedora 146 k
polkit-libs x86_64 0.116-7.fc32 fedora 68 k
polkit-pkla-compat x86_64 0.1-16.fc32 fedora 45 k
rtkit x86_64 0.11-23.fc32 fedora 58 k
shared-mime-info x86_64 1.15-3.fc32 fedora 303 k
vulkan-loader x86_64 1.2.148.1-1.fc32 updates 128 k
xdg-dbus-proxy x86_64 0.1.2-2.fc32 fedora 43 k
Installing weak dependencies:
abattis-cantarell-fonts noarch 0.201-2.fc32 fedora 336 k
adobe-source-code-pro-fonts noarch 2.030.1.050-8.fc32 fedora 834 k
compat-f32-dejavu-sans-fonts noarch 2.37-8.fc32 updates 8.5 k
p11-kit-server x86_64 0.23.21-2.fc32 updates 189 k
pipewire x86_64 0.3.15-2.fc32 updates 138 k
xdg-desktop-portal x86_64 1.8.0-1.fc32 updates 435 k
Transaction Summary
==========================================================================================================================================================================
Install 66 Packages
Total download size: 49 M
Installed size: 185 M
Is this ok [y/N]: y
Downloading Packages:
(1/66): avahi-glib-0.7-24.fc32.x86_64.rpm 464 kB/s | 13 kB 00:00
(2/66): cairo-gobject-1.16.0-8.fc32.x86_64.rpm 1.5 MB/s | 19 kB 00:00
(3/66): compat-f32-dejavu-sans-fonts-2.37-8.fc32.noarch.rpm 496 kB/s | 8.5 kB 00:00
(4/66): alsa-lib-1.2.3.2-1.fc32.x86_64.rpm 5.1 MB/s | 474 kB 00:00
(5/66): cairo-1.16.0-8.fc32.x86_64.rpm 4.4 MB/s | 712 kB 00:00
(6/66): flatpak-session-helper-1.8.2-2.fc32.x86_64.rpm 4.4 MB/s | 77 kB 00:00
(7/66): dejavu-sans-fonts-2.37-8.fc32.noarch.rpm 8.8 MB/s | 1.3 MB 00:00
(8/66): fontconfig-2.13.92-9.fc32.x86_64.rpm 5.1 MB/s | 265 kB 00:00
(9/66): flatpak-1.8.2-2.fc32.x86_64.rpm 10 MB/s | 1.5 MB 00:00
(10/66): glib-networking-2.64.3-1.fc32.x86_64.rpm 9.7 MB/s | 160 kB 00:00
(11/66): geoclue2-2.5.6-2.fc32.x86_64.rpm 4.0 MB/s | 136 kB 00:00
(12/66): freetype-2.10.4-1.fc32.x86_64.rpm 7.1 MB/s | 392 kB 00:00
(13/66): graphite2-1.3.14-1.fc32.x86_64.rpm 3.6 MB/s | 103 kB 00:00
(14/66): libX11-xcb-1.6.12-1.fc32.x86_64.rpm 988 kB/s | 11 kB 00:00
(15/66): libdrm-2.4.102-1.fc32.x86_64.rpm 5.6 MB/s | 159 kB 00:00
(16/66): libproxy-0.4.15-19.fc32.x86_64.rpm 3.3 MB/s | 72 kB 00:00
(17/66): gsettings-desktop-schemas-3.36.1-1.fc32.x86_64.rpm 5.2 MB/s | 670 kB 00:00
(18/66): hwdata-0.340-1.fc32.noarch.rpm 9.3 MB/s | 1.4 MB 00:00
(19/66): librsvg2-2.48.8-1.fc32.x86_64.rpm 13 MB/s | 3.2 MB 00:00
(20/66): mesa-vulkan-drivers-20.2.2-1.fc32.x86_64.rpm 14 MB/s | 3.4 MB 00:00
(21/66): ostree-libs-2020.7-3.fc32.x86_64.rpm 6.1 MB/s | 419 kB 00:00
(22/66): p11-kit-server-0.23.21-2.fc32.x86_64.rpm 5.6 MB/s | 189 kB 00:00
(23/66): pipewire-0.3.15-2.fc32.x86_64.rpm 4.7 MB/s | 138 kB 00:00
(24/66): pixman-0.40.0-1.fc32.x86_64.rpm 7.0 MB/s | 270 kB 00:00
(25/66): vulkan-loader-1.2.148.1-1.fc32.x86_64.rpm 6.1 MB/s | 128 kB 00:00
(26/66): pipewire-libs-0.3.15-2.fc32.x86_64.rpm 9.8 MB/s | 910 kB 00:00
(27/66): xdg-desktop-portal-1.8.0-1.fc32.x86_64.rpm 5.8 MB/s | 435 kB 00:00
(28/66): ModemManager-glib-1.12.8-1.fc32.x86_64.rpm 662 kB/s | 278 kB 00:00
(29/66): abattis-cantarell-fonts-0.201-2.fc32.noarch.rpm 817 kB/s | 336 kB 00:00
(30/66): bubblewrap-0.4.1-1.fc32.x86_64.rpm 794 kB/s | 51 kB 00:00
(31/66): dconf-0.36.0-1.fc32.x86_64.rpm 1.5 MB/s | 110 kB 00:00
(32/66): fonts-filesystem-2.0.3-1.fc32.noarch.rpm 111 kB/s | 7.8 kB 00:00
(33/66): fribidi-1.0.9-1.fc32.x86_64.rpm 1.0 MB/s | 85 kB 00:00
(34/66): adobe-source-code-pro-fonts-2.030.1.050-8.fc32.noarch.rpm 1.9 MB/s | 834 kB 00:00
(35/66): fuse-2.9.9-9.fc32.x86_64.rpm 751 kB/s | 82 kB 00:00
(36/66): fuse-common-3.9.1-1.fc32.x86_64.rpm 132 kB/s | 8.2 kB 00:00
(37/66): fuse-libs-2.9.9-9.fc32.x86_64.rpm 1.2 MB/s | 101 kB 00:00
(38/66): harfbuzz-2.6.4-3.fc32.x86_64.rpm 4.0 MB/s | 599 kB 00:00
(39/66): gdk-pixbuf2-2.40.0-2.fc32.x86_64.rpm 2.3 MB/s | 464 kB 00:00
(40/66): json-glib-1.4.4-4.fc32.x86_64.rpm 1.6 MB/s | 144 kB 00:00
(41/66): langpacks-core-font-en-3.0-3.fc32.noarch.rpm 113 kB/s | 9.4 kB 00:00
(42/66): libXft-2.3.3-3.fc32.x86_64.rpm 922 kB/s | 64 kB 00:00
(43/66): libXrender-0.9.10-11.fc32.x86_64.rpm 302 kB/s | 27 kB 00:00
(44/66): libappstream-glib-0.7.17-1.fc32.x86_64.rpm 3.5 MB/s | 335 kB 00:00
(45/66): llvm-libs-10.0.1-4.fc32.x86_64.rpm 11 MB/s | 20 MB 00:01
(46/66): libdatrie-0.2.9-11.fc32.x86_64.rpm 219 kB/s | 32 kB 00:00
(47/66): libmodman-2.0.1-21.fc32.x86_64.rpm 374 kB/s | 34 kB 00:00
(48/66): libnotify-0.7.9-1.fc32.x86_64.rpm 540 kB/s | 43 kB 00:00
(49/66): libpng-1.6.37-3.fc32.x86_64.rpm 1.4 MB/s | 116 kB 00:00
(50/66): libsbc-1.4-5.fc32.x86_64.rpm 697 kB/s | 44 kB 00:00
(51/66): libpciaccess-0.16-2.fc32.x86_64.rpm 163 kB/s | 27 kB 00:00
(52/66): libsoup-2.70.0-1.fc32.x86_64.rpm 4.0 MB/s | 388 kB 00:00
(53/66): libstemmer-0-14.585svn.fc32.x86_64.rpm 1.2 MB/s | 84 kB 00:00
(54/66): libwayland-client-1.18.0-1.fc32.x86_64.rpm 509 kB/s | 35 kB 00:00
(55/66): libxshmfence-1.3-6.fc32.x86_64.rpm 169 kB/s | 12 kB 00:00
(56/66): low-memory-monitor-2.0-4.fc32.x86_64.rpm 506 kB/s | 34 kB 00:00
(57/66): libthai-0.1.28-4.fc32.x86_64.rpm 1.0 MB/s | 213 kB 00:00
(58/66): pango-1.44.7-2.fc32.x86_64.rpm 3.5 MB/s | 293 kB 00:00
(59/66): pipewire0.2-libs-0.2.7-2.fc32.x86_64.rpm 2.8 MB/s | 354 kB 00:00
(60/66): polkit-0.116-7.fc32.x86_64.rpm 1.5 MB/s | 146 kB 00:00
(61/66): polkit-libs-0.116-7.fc32.x86_64.rpm 892 kB/s | 68 kB 00:00
(62/66): polkit-pkla-compat-0.1-16.fc32.x86_64.rpm 628 kB/s | 45 kB 00:00
(63/66): rtkit-0.11-23.fc32.x86_64.rpm 729 kB/s | 58 kB 00:00
(64/66): shared-mime-info-1.15-3.fc32.x86_64.rpm 3.0 MB/s | 303 kB 00:00
(65/66): xdg-dbus-proxy-0.1.2-2.fc32.x86_64.rpm 562 kB/s | 43 kB 00:00
(66/66): mozjs60-60.9.0-5.fc32.x86_64.rpm 5.0 MB/s | 6.6 MB 00:01
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 10 MB/s | 49 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libpng-2:1.6.37-3.fc32.x86_64 1/66
Installing : freetype-2.10.4-1.fc32.x86_64 2/66
Installing : libXrender-0.9.10-11.fc32.x86_64 3/66
Installing : json-glib-1.4.4-4.fc32.x86_64 4/66
Installing : fonts-filesystem-2.0.3-1.fc32.noarch 5/66
Installing : dejavu-sans-fonts-2.37-8.fc32.noarch 6/66
Installing : polkit-libs-0.116-7.fc32.x86_64 7/66
Installing : alsa-lib-1.2.3.2-1.fc32.x86_64 8/66
Installing : libsbc-1.4-5.fc32.x86_64 9/66
Installing : fuse-libs-2.9.9-9.fc32.x86_64 10/66
Installing : pixman-0.40.0-1.fc32.x86_64 11/66
Installing : pipewire0.2-libs-0.2.7-2.fc32.x86_64 12/66
Installing : langpacks-core-font-en-3.0-3.fc32.noarch 13/66
Installing : fontconfig-2.13.92-9.fc32.x86_64 14/66
Running scriptlet: fontconfig-2.13.92-9.fc32.x86_64 14/66
Installing : cairo-1.16.0-8.fc32.x86_64 15/66
Installing : cairo-gobject-1.16.0-8.fc32.x86_64 16/66
Installing : libXft-2.3.3-3.fc32.x86_64 17/66
Installing : abattis-cantarell-fonts-0.201-2.fc32.noarch 18/66
Installing : adobe-source-code-pro-fonts-2.030.1.050-8.fc32.noarch 19/66
Installing : gsettings-desktop-schemas-3.36.1-1.fc32.x86_64 20/66
Installing : xdg-dbus-proxy-0.1.2-2.fc32.x86_64 21/66
Installing : shared-mime-info-1.15-3.fc32.x86_64 22/66
Running scriptlet: shared-mime-info-1.15-3.fc32.x86_64 22/66
Installing : gdk-pixbuf2-2.40.0-2.fc32.x86_64 23/66
Installing : libnotify-0.7.9-1.fc32.x86_64 24/66
Installing : mozjs60-60.9.0-5.fc32.x86_64 25/66
Running scriptlet: polkit-0.116-7.fc32.x86_64 26/66
Installing : polkit-0.116-7.fc32.x86_64 26/66
Running scriptlet: polkit-0.116-7.fc32.x86_64 26/66
Installing : polkit-pkla-compat-0.1-16.fc32.x86_64 27/66
Running scriptlet: rtkit-0.11-23.fc32.x86_64 28/66
Installing : rtkit-0.11-23.fc32.x86_64 28/66
Running scriptlet: rtkit-0.11-23.fc32.x86_64 28/66
Created symlink /etc/systemd/system/graphical.target.wants/rtkit-daemon.service → /usr/lib/systemd/system/rtkit-daemon.service.
Installing : low-memory-monitor-2.0-4.fc32.x86_64 29/66
Running scriptlet: low-memory-monitor-2.0-4.fc32.x86_64 29/66
Installing : libxshmfence-1.3-6.fc32.x86_64 30/66
Installing : libwayland-client-1.18.0-1.fc32.x86_64 31/66
Installing : libstemmer-0-14.585svn.fc32.x86_64 32/66
Installing : libmodman-2.0.1-21.fc32.x86_64 33/66
Installing : libproxy-0.4.15-19.fc32.x86_64 34/66
Installing : glib-networking-2.64.3-1.fc32.x86_64 35/66
Installing : libsoup-2.70.0-1.fc32.x86_64 36/66
Installing : libappstream-glib-0.7.17-1.fc32.x86_64 37/66
Installing : libdatrie-0.2.9-11.fc32.x86_64 38/66
Installing : libthai-0.1.28-4.fc32.x86_64 39/66
Installing : fuse-common-3.9.1-1.fc32.x86_64 40/66
Installing : fuse-2.9.9-9.fc32.x86_64 41/66
Installing : fribidi-1.0.9-1.fc32.x86_64 42/66
Installing : dconf-0.36.0-1.fc32.x86_64 43/66
Installing : bubblewrap-0.4.1-1.fc32.x86_64 44/66
Installing : ModemManager-glib-1.12.8-1.fc32.x86_64 45/66
Running scriptlet: ModemManager-glib-1.12.8-1.fc32.x86_64 45/66
Installing : p11-kit-server-0.23.21-2.fc32.x86_64 46/66
Installing : ostree-libs-2020.7-3.fc32.x86_64 47/66
Installing : llvm-libs-10.0.1-4.fc32.x86_64 48/66
Installing : libX11-xcb-1.6.12-1.fc32.x86_64 49/66
Installing : hwdata-0.340-1.fc32.noarch 50/66
Installing : libpciaccess-0.16-2.fc32.x86_64 51/66
Installing : libdrm-2.4.102-1.fc32.x86_64 52/66
Installing : vulkan-loader-1.2.148.1-1.fc32.x86_64 53/66
Installing : mesa-vulkan-drivers-20.2.2-1.fc32.x86_64 54/66
Running scriptlet: pipewire-0.3.15-2.fc32.x86_64 55/66
Installing : pipewire-0.3.15-2.fc32.x86_64 55/66
Running scriptlet: pipewire-0.3.15-2.fc32.x86_64 55/66
Created symlink /etc/systemd/user/sockets.target.wants/pipewire.socket → /usr/lib/systemd/user/pipewire.socket.
Installing : pipewire-libs-0.3.15-2.fc32.x86_64 56/66
Installing : graphite2-1.3.14-1.fc32.x86_64 57/66
Installing : harfbuzz-2.6.4-3.fc32.x86_64 58/66
Installing : pango-1.44.7-2.fc32.x86_64 59/66
Installing : librsvg2-2.48.8-1.fc32.x86_64 60/66
Installing : flatpak-session-helper-1.8.2-2.fc32.x86_64 61/66
Installing : avahi-glib-0.7-24.fc32.x86_64 62/66
Running scriptlet: geoclue2-2.5.6-2.fc32.x86_64 63/66
Installing : geoclue2-2.5.6-2.fc32.x86_64 63/66
Running scriptlet: geoclue2-2.5.6-2.fc32.x86_64 63/66
Running scriptlet: flatpak-1.8.2-2.fc32.x86_64 64/66
Installing : flatpak-1.8.2-2.fc32.x86_64 64/66
Error unpacking rpm package flatpak-1.8.2-2.fc32.x86_64
Installing : xdg-desktop-portal-1.8.0-1.fc32.x86_64 65/66
error: unpacking of archive failed on file /var/lib/flatpak: cpio: chown
error: flatpak-1.8.2-2.fc32.x86_64: install failed
Running scriptlet: xdg-desktop-portal-1.8.0-1.fc32.x86_64 65/66
Installing : compat-f32-dejavu-sans-fonts-2.37-8.fc32.noarch 66/66
Running scriptlet: dconf-0.36.0-1.fc32.x86_64 66/66
Running scriptlet: compat-f32-dejavu-sans-fonts-2.37-8.fc32.noarch 66/66
Verifying : alsa-lib-1.2.3.2-1.fc32.x86_64 1/66
Verifying : avahi-glib-0.7-24.fc32.x86_64 2/66
Verifying : cairo-1.16.0-8.fc32.x86_64 3/66
Verifying : cairo-gobject-1.16.0-8.fc32.x86_64 4/66
Verifying : compat-f32-dejavu-sans-fonts-2.37-8.fc32.noarch 5/66
Verifying : dejavu-sans-fonts-2.37-8.fc32.noarch 6/66
Verifying : flatpak-1.8.2-2.fc32.x86_64 7/66
Verifying : flatpak-session-helper-1.8.2-2.fc32.x86_64 8/66
Verifying : fontconfig-2.13.92-9.fc32.x86_64 9/66
Verifying : freetype-2.10.4-1.fc32.x86_64 10/66
Verifying : geoclue2-2.5.6-2.fc32.x86_64 11/66
Verifying : glib-networking-2.64.3-1.fc32.x86_64 12/66
Verifying : graphite2-1.3.14-1.fc32.x86_64 13/66
Verifying : gsettings-desktop-schemas-3.36.1-1.fc32.x86_64 14/66
Verifying : hwdata-0.340-1.fc32.noarch 15/66
Verifying : libX11-xcb-1.6.12-1.fc32.x86_64 16/66
Verifying : libdrm-2.4.102-1.fc32.x86_64 17/66
Verifying : libproxy-0.4.15-19.fc32.x86_64 18/66
Verifying : librsvg2-2.48.8-1.fc32.x86_64 19/66
Verifying : llvm-libs-10.0.1-4.fc32.x86_64 20/66
Verifying : mesa-vulkan-drivers-20.2.2-1.fc32.x86_64 21/66
Verifying : ostree-libs-2020.7-3.fc32.x86_64 22/66
Verifying : p11-kit-server-0.23.21-2.fc32.x86_64 23/66
Verifying : pipewire-0.3.15-2.fc32.x86_64 24/66
Verifying : pipewire-libs-0.3.15-2.fc32.x86_64 25/66
Verifying : pixman-0.40.0-1.fc32.x86_64 26/66
Verifying : vulkan-loader-1.2.148.1-1.fc32.x86_64 27/66
Verifying : xdg-desktop-portal-1.8.0-1.fc32.x86_64 28/66
Verifying : ModemManager-glib-1.12.8-1.fc32.x86_64 29/66
Verifying : abattis-cantarell-fonts-0.201-2.fc32.noarch 30/66
Verifying : adobe-source-code-pro-fonts-2.030.1.050-8.fc32.noarch 31/66
Verifying : bubblewrap-0.4.1-1.fc32.x86_64 32/66
Verifying : dconf-0.36.0-1.fc32.x86_64 33/66
Verifying : fonts-filesystem-2.0.3-1.fc32.noarch 34/66
Verifying : fribidi-1.0.9-1.fc32.x86_64 35/66
Verifying : fuse-2.9.9-9.fc32.x86_64 36/66
Verifying : fuse-common-3.9.1-1.fc32.x86_64 37/66
Verifying : fuse-libs-2.9.9-9.fc32.x86_64 38/66
Verifying : gdk-pixbuf2-2.40.0-2.fc32.x86_64 39/66
Verifying : harfbuzz-2.6.4-3.fc32.x86_64 40/66
Verifying : json-glib-1.4.4-4.fc32.x86_64 41/66
Verifying : langpacks-core-font-en-3.0-3.fc32.noarch 42/66
Verifying : libXft-2.3.3-3.fc32.x86_64 43/66
Verifying : libXrender-0.9.10-11.fc32.x86_64 44/66
Verifying : libappstream-glib-0.7.17-1.fc32.x86_64 45/66
Verifying : libdatrie-0.2.9-11.fc32.x86_64 46/66
Verifying : libmodman-2.0.1-21.fc32.x86_64 47/66
Verifying : libnotify-0.7.9-1.fc32.x86_64 48/66
Verifying : libpciaccess-0.16-2.fc32.x86_64 49/66
Verifying : libpng-2:1.6.37-3.fc32.x86_64 50/66
Verifying : libsbc-1.4-5.fc32.x86_64 51/66
Verifying : libsoup-2.70.0-1.fc32.x86_64 52/66
Verifying : libstemmer-0-14.585svn.fc32.x86_64 53/66
Verifying : libthai-0.1.28-4.fc32.x86_64 54/66
Verifying : libwayland-client-1.18.0-1.fc32.x86_64 55/66
Verifying : libxshmfence-1.3-6.fc32.x86_64 56/66
Verifying : low-memory-monitor-2.0-4.fc32.x86_64 57/66
Verifying : mozjs60-60.9.0-5.fc32.x86_64 58/66
Verifying : pango-1.44.7-2.fc32.x86_64 59/66
Verifying : pipewire0.2-libs-0.2.7-2.fc32.x86_64 60/66
Verifying : polkit-0.116-7.fc32.x86_64 61/66
Verifying : polkit-libs-0.116-7.fc32.x86_64 62/66
Verifying : polkit-pkla-compat-0.1-16.fc32.x86_64 63/66
Verifying : rtkit-0.11-23.fc32.x86_64 64/66
Verifying : shared-mime-info-1.15-3.fc32.x86_64 65/66
Verifying : xdg-dbus-proxy-0.1.2-2.fc32.x86_64 66/66
Installed:
ModemManager-glib-1.12.8-1.fc32.x86_64 abattis-cantarell-fonts-0.201-2.fc32.noarch adobe-source-code-pro-fonts-2.030.1.050-8.fc32.noarch
alsa-lib-1.2.3.2-1.fc32.x86_64 avahi-glib-0.7-24.fc32.x86_64 bubblewrap-0.4.1-1.fc32.x86_64
cairo-1.16.0-8.fc32.x86_64 cairo-gobject-1.16.0-8.fc32.x86_64 compat-f32-dejavu-sans-fonts-2.37-8.fc32.noarch
dconf-0.36.0-1.fc32.x86_64 dejavu-sans-fonts-2.37-8.fc32.noarch flatpak-session-helper-1.8.2-2.fc32.x86_64
fontconfig-2.13.92-9.fc32.x86_64 fonts-filesystem-2.0.3-1.fc32.noarch freetype-2.10.4-1.fc32.x86_64
fribidi-1.0.9-1.fc32.x86_64 fuse-2.9.9-9.fc32.x86_64 fuse-common-3.9.1-1.fc32.x86_64
fuse-libs-2.9.9-9.fc32.x86_64 gdk-pixbuf2-2.40.0-2.fc32.x86_64 geoclue2-2.5.6-2.fc32.x86_64
glib-networking-2.64.3-1.fc32.x86_64 graphite2-1.3.14-1.fc32.x86_64 gsettings-desktop-schemas-3.36.1-1.fc32.x86_64
harfbuzz-2.6.4-3.fc32.x86_64 hwdata-0.340-1.fc32.noarch json-glib-1.4.4-4.fc32.x86_64
langpacks-core-font-en-3.0-3.fc32.noarch libX11-xcb-1.6.12-1.fc32.x86_64 libXft-2.3.3-3.fc32.x86_64
libXrender-0.9.10-11.fc32.x86_64 libappstream-glib-0.7.17-1.fc32.x86_64 libdatrie-0.2.9-11.fc32.x86_64
libdrm-2.4.102-1.fc32.x86_64 libmodman-2.0.1-21.fc32.x86_64 libnotify-0.7.9-1.fc32.x86_64
libpciaccess-0.16-2.fc32.x86_64 libpng-2:1.6.37-3.fc32.x86_64 libproxy-0.4.15-19.fc32.x86_64
librsvg2-2.48.8-1.fc32.x86_64 libsbc-1.4-5.fc32.x86_64 libsoup-2.70.0-1.fc32.x86_64
libstemmer-0
Expected behaviour
It should be possible to install the flatpak package inside the toolbox.
Actual behaviour
The installation fails. See error message above.
Screenshots
none
Output of toolbox --version (v0.0.90+)
$ toolbox --version
toolbox version 0.0.97
Toolbox package info (rpm -q toolbox)
$ rpm -q toolbox
toolbox-0.0.97-1.fc32.x86_64
Output of podman version
$ podman version
Version: 2.1.1
API Version: 2.0.0
Go Version: go1.14.9
Built: Wed Sep 30 22:31:11 2020
OS/Arch: linux/amd64
Podman package info (rpm -q podman)
$ rpm -q podman
podman-2.1.1-7.fc32.x86_64
Info about your OS
$ cat /etc/fedora-release
Fedora release 32 (Thirty Two)
Additional context
After I deleted /var/lib/flatpak/ on the host I was able to successfully install flatpak. WARNING: if you are looking for a workaround, this is a wery bad workaround. It may leed to dataloss.
Activity
garrett commentedon Dec 7, 2020
In a libvirt bug (linked above), I found that umounting the directory before installing the package is a workaround for me.
I think it'd also work for installing flatpak for you too:
Before installing flatpak, you could
sudo umount /var/lib/flatpak— depending on what you want to do, you may need to re-mount the directory, which I think will happen the next time you do a fresh start of your container, which you can force by exiting your container and runningpodman stop fedora-toolbox-32(or whatever the name is). Otherwise, you may need to umount it each time you start it up, if you need the directory inside the container to not be clobbered.Meanwhile, I've been running flatpaks from inside the toolbox with an aliased script that checks if
/usr/bin/flatpak-spawnexists and uses it if so. (It exists in toolbox containers, but not by default on the host.) Mine's written as a fish function, as I'm using fish shell. Bash and Zsh could use a function too. Or you could have different configurations for your host system and the container. (So the container could then simply alias flatpak toflatpak-spawn --host /usr/bin/flatpak $argvand then you'd do nothing on the host, if you went this route.)My function routes flatpak to
flatpak-spawn --host /usr/bin/flatpak $argv;to run flatpaks on the host from inside the container instead of running flatpak inside the container, and on the host, it just routes it to/usr/bin/flatpak $argv;. This lets me use something like Meld both on the host and from within the container, with the same flatpak on the host.Again, these are all just workarounds, not proper fixes. But perhaps one of the above solutions might work for you for the time being, at least?
debarshiray commentedon Dec 21, 2020
Duplicate of #643