radareorg/iaito

Unable to run iaito on WSL Ubuntu 20.04

lihas opened this issue · 5 comments

lihas commented

Environment

$ date
Thu Jul 13 08:37:14 IST 2023
$ r2 -v
radare2 4.2.1 0 @ linux-x86-64 git.4.2.1
commit: unknown build:
$ iaito -v
iaito: command not found
$ uname -ms
Linux x86_64

Description

Using release: Version: 5.8.8 (previous: 5.8.6)

I followed the instructions given at https://github.com/radareorg/iaito/releases

sudo flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.radare.iaito
export QT_QPA_PLATFORM=wayland   # only mandatory on windows
flatpak run org.radare.iaito

The last line flatpak run org.radare.iaito throws the following error.

flatpak run org.radare.iaito
bwrap: Creating new namespace failed, likely because the kernel does not support user namespaces.  bwrap must be installed setuid on such systems.

Whole log:

$ sudo flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
$ sudo flatpak install flathub org.radare.iaito
Looking for matches…
Required runtime for org.radare.iaito/x86_64/stable (runtime/org.kde.Platform/x86_64/5.15-22.08) found in remote flathub
Do you want to install it? [Y/n]: Y

org.radare.iaito permissions:
    ipc                   fallback-x11       wayland      x11      dri      file access [1]
    dbus access [2]

    [1] xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.kconfig.notify


        ID                                               Branch            Op       Remote        Download
        ID                                               Branch            Op       Remote        Download
 1. [✓] org.freedesktop.Platform.GL.Debug.default        22.08             i        flathub       440.4 MB / 447.9 MB
 2. [✓] org.freedesktop.Platform.GL.Debug.default        22.08-extra       i        flathub       129.1 MB / 447.9 MB
        ID                                               Branch            Op       Remote        Download
 1. [✓] org.freedesktop.Platform.GL.Debug.default        22.08             i        flathub       440.4 MB / 447.9 MB
 2. [✓] org.freedesktop.Platform.GL.Debug.default        22.08-extra       i        flathub       129.1 MB / 447.9 MB
 3. [✓] org.freedesktop.Platform.GL.default              22.08             i        flathub       142.8 MB / 143.1 MB
 4. [✓] org.freedesktop.Platform.GL.default              22.08-extra       i        flathub        16.2 MB / 143.1 MB
 5. [✗] org.freedesktop.Platform.openh264                2.2.0             i        flathub       883.1 kB / 944.3 kB
 6. [✓] org.kde.KStyle.Adwaita                           5.15-22.08        i        flathub         6.6 MB / 6.6 MB
 7. [✓] org.kde.Platform.Locale                          5.15-22.08        i        flathub       160.0 MB / 355.0 MB
 8. [✓] org.kde.Platform                                 5.15-22.08        i        flathub       259.8 MB / 323.9 MB
 9. [✓] org.radare.iaito.translations                    stable            i        flathub        78.3 kB / 452.6 kB
10. [✓] org.radare.iaito                                 stable            i        flathub        28.4 MB / 29.7 MB

Warning: While trying to apply extra data: apply_extra script failed, exit status 256
Warning: Not exporting file org.radare.iaito.appdata.xml of unsupported type.
Warning: Not exporting file org.radare.iaito.translations.metainfo.xml of unsupported type.
Warning: Not exporting file org.radare.iaito.webui.metainfo.xml of unsupported type.
Installation complete.
$ flatpak run org.radare.iaito
bwrap: Creating new namespace failed, likely because the kernel does not support user namespaces.  bwrap must be installed setuid on such systems.
error: ldconfig failed, exit status 256
$ export QT_QPA_PLATFORM=wayland
$ flatpak run org.radare.iaito
bwrap: Creating new namespace failed, likely because the kernel does not support user namespaces.  bwrap must be installed setuid on such systems.
trufae commented

Seems like you have something broken in your wsl. the steps you did are fine and work for me. But you may want to fix some permissions. Maybe this link helps: https://discourse.nixos.org/t/flatpak-requires-sudo-to-run-applications-solved/879

I'm facing similar issues here. I'm running Ubuntu 22.04 on WSL2 (Windows 11)
image

@JurisBog we need more information.

What kind of Ubuntu in WSL are you using?
Are you using WSL2 or WSL1?

Looks like you don't have DBUS running which is strange for a Ubuntu VM like in WSL2.

Are you using some kind of distrobox or the official Ubuntu from Microsoft Store?

Did you enable systemd manually inside Ubuntu? or are you using the default?

Did you enable systemd manually inside Ubuntu? or are you using the default?

That's the step I was missing, we're all good now! (I must've missed the shutdown step or something, not too sure)
image

So it was a natter of adding these lines in /etc/wsl.conf ? Maybe good to update the readme accordingly. Can you confirm and do the change?

[boot]
systemd=true