I am trying to install flatpak together with some apps in docker container and build the application in Dockerfile based on ubuntu 20.04.
I managed to install flatpak, but when I try to instrall WPS office or Spotify I get this warning:
bwrap: Creating new namespace failed: Operation not permitted
Warning: While trying to apply extra data: apply_extra script failed, exit status 256
then in next step I get:
error: Failed to install com.wps.Office: While trying to apply extra data: apply_extra script failed, exit status 256
The command '/bin/sh -c flatpak install flathub com.wps.Office -y' returned a non-zero code: 1
The same error i got if I try to install spotify.
On the other hand, if I install other apps like chess I got only the first warning and the apps was installed.
Any ideas how to solve this error?