Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app
Forum Updated to NodeBB v4.3 + New Features

Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    martin155
    wrote on last edited by martin155
    #1

    Environment

    Windows: Windows 10 Version 2004 Build 20262.1010
    Your Distribution version: Kali 2020.4
    WSL2
    

    Steps to reproduce

    sudo apt-get install python3-pyqt5 p7zip-full parted util-linux python3-pyudev mtools python3-dbus python3-six
    

    Then I downloaded the multibootusb from https://codeload.github.com/mbusb/multibootusb/zip/master and I extracted the archive and run:

    sudo python3 ./multibootusb

    After that I get following error:

    Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
    [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
    Running multibootusb version 9.3.0 from source...
    Starting multibootusb GUI...
    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    
    Aborted
    

    After strace sudo python3 ./multibootusb I got:

    execve("/usr/bin/sudo", ["sudo", "python3", "./multibootusb"], 0x7ffd662d4900 /* 19 vars */) = 0
    access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
    brk(NULL)                               = 0x55c25482d000
    fcntl(0, F_GETFD)                       = 0
    fcntl(1, F_GETFD)                       = 0
    fcntl(2, F_GETFD)                       = 0
    access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/tls/haswell/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/tls/haswell/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/tls/haswell/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/tls/haswell", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/tls/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/tls/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/tls/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/tls", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/haswell/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/haswell/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/haswell/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/haswell", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/sudo/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=112114, ...}) = 0
    mmap(NULL, 112114, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f26000
    close(3)                                = 0
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libaudit.so.1", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3205\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=128944, ...}) = 0
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb189f24000
    mmap(NULL, 172200, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189ef9000
    mprotect(0x7fb189efc000, 114688, PROT_NONE) = 0
    mmap(0x7fb189efc000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fb189efc000
    mmap(0x7fb189f03000, 81920, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7fb189f03000
    mmap(0x7fb189f18000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7fb189f18000
    mmap(0x7fb189f1a000, 37032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189f1a000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/sudo/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220}\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=167888, ...}) = 0
    mmap(NULL, 179368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189ecd000
    mmap(0x7fb189ed4000, 102400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fb189ed4000
    mmap(0x7fb189eed000, 32768, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7fb189eed000
    mmap(0x7fb189ef5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x27000) = 0x7fb189ef5000
    mmap(0x7fb189ef7000, 7336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189ef7000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/sudo/libutil.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\22\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=14720, ...}) = 0
    mmap(NULL, 16656, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189ec8000
    mmap(0x7fb189ec9000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fb189ec9000
    mmap(0x7fb189eca000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189eca000
    mmap(0x7fb189ecb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189ecb000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/sudo/libsudo_util.so.0", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0Y\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=117472, ...}) = 0
    mmap(NULL, 121128, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189eaa000
    mmap(0x7fb189eaf000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb189eaf000
    mmap(0x7fb189ec0000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7fb189ec0000
    mmap(0x7fb189ec6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7fb189ec6000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/sudo/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 |\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=149608, ...}) = 0
    mmap(NULL, 136304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189e88000
    mmap(0x7fb189e8f000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fb189e8f000
    mmap(0x7fb189e9f000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fb189e9f000
    mmap(0x7fb189ea4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7fb189ea4000
    mmap(0x7fb189ea6000, 13424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189ea6000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/sudo/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@n\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0
    mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189cc3000
    mprotect(0x7fb189ce8000, 1662976, PROT_NONE) = 0
    mmap(0x7fb189ce8000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7fb189ce8000
    mmap(0x7fb189e33000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7fb189e33000
    mmap(0x7fb189e7e000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7fb189e7e000
    mmap(0x7fb189e84000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189e84000
    close(3)                                = 0
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcap-ng.so.0", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0#\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=26984, ...}) = 0
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb189cc1000
    mmap(NULL, 29064, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189cb9000
    mmap(0x7fb189cbb000, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189cbb000
    mmap(0x7fb189cbe000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb189cbe000
    mmap(0x7fb189cbf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb189cbf000
    close(3)                                = 0
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\"\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=584360, ...}) = 0
    mmap(NULL, 586664, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189c29000
    mmap(0x7fb189c2b000, 409600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189c2b000
    mmap(0x7fb189c8f000, 163840, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x66000) = 0x7fb189c8f000
    mmap(0x7fb189cb7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8d000) = 0x7fb189cb7000
    close(3)                                = 0
    openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0
    mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189c23000
    mmap(0x7fb189c24000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fb189c24000
    mmap(0x7fb189c26000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fb189c26000
    mmap(0x7fb189c27000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fb189c27000
    close(3)                                = 0
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb189c21000
    arch_prctl(ARCH_SET_FS, 0x7fb189c21d00) = 0
    mprotect(0x7fb189e7e000, 12288, PROT_READ) = 0
    mprotect(0x7fb189c27000, 4096, PROT_READ) = 0
    mprotect(0x7fb189ea4000, 4096, PROT_READ) = 0
    mprotect(0x7fb189cb7000, 4096, PROT_READ) = 0
    mprotect(0x7fb189cbf000, 4096, PROT_READ) = 0
    mprotect(0x7fb189ec6000, 4096, PROT_READ) = 0
    mprotect(0x7fb189ecb000, 4096, PROT_READ) = 0
    mprotect(0x7fb189ef5000, 4096, PROT_READ) = 0
    mprotect(0x7fb189f18000, 4096, PROT_READ) = 0
    mprotect(0x55c25437b000, 4096, PROT_READ) = 0
    mprotect(0x7fb189f6c000, 4096, PROT_READ) = 0
    munmap(0x7fb189f26000, 112114)          = 0
    set_tid_address(0x7fb189c21fd0)         = 11152
    set_robust_list(0x7fb189c21fe0, 24)     = 0
    rt_sigaction(SIGRTMIN, {sa_handler=0x7fb189e8f690, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fb189e9c140}, NULL, 8) = 0
    rt_sigaction(SIGRT_1, {sa_handler=0x7fb189e8f730, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fb189e9c140}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
    prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
    statfs("/sys/fs/selinux", 0x7ffd1a7d1c30) = -1 ENOENT (No such file or directory)
    statfs("/selinux", 0x7ffd1a7d1c30)      = -1 ENOENT (No such file or directory)
    brk(NULL)                               = 0x55c25482d000
    brk(0x55c25484e000)                     = 0x55c25484e000
    openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
    read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tt"..., 1024) = 474
    read(3, "", 1024)                       = 0
    close(3)                                = 0
    access("/etc/selinux/config", F_OK)     = -1 ENOENT (No such file or directory)
    prlimit64(0, RLIMIT_AS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_AS, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
    prlimit64(0, RLIMIT_CORE, NULL, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_CPU, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_CPU, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
    prlimit64(0, RLIMIT_DATA, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_DATA, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
    prlimit64(0, RLIMIT_FSIZE, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_FSIZE, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
    prlimit64(0, RLIMIT_LOCKS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_MEMLOCK, NULL, {rlim_cur=64*1024, rlim_max=64*1024}) = 0
    prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
    prlimit64(0, RLIMIT_NOFILE, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)
    prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)
    prlimit64(0, RLIMIT_NOFILE, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0
    prlimit64(0, RLIMIT_NPROC, NULL, {rlim_cur=23485, rlim_max=23485}) = 0
    prlimit64(0, RLIMIT_NPROC, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)
    prlimit64(0, RLIMIT_NPROC, {rlim_cur=23485, rlim_max=23485}, NULL) = 0
    prlimit64(0, RLIMIT_RSS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_RSS, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
    prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
    prlimit64(0, RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}, NULL) = 0
    fcntl(0, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
    fcntl(1, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
    fcntl(2, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
    openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=369, ...}) = 0
    mmap(NULL, 369, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f6b000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=27002, ...}) = 0
    mmap(NULL, 27002, PROT_READ, MAP_SHARED, 3, 0) = 0x7fb189f3b000
    close(3)                                = 0
    futex(0x7fb189e8367c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
    mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f3a000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
    mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f39000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=167, ...}) = 0
    mmap(NULL, 167, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f38000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0
    mmap(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f37000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
    mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f36000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
    mmap(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f35000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
    mmap(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f34000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=2586930, ...}) = 0
    mmap(NULL, 2586930, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb1899a9000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=3284, ...}) = 0
    mmap(NULL, 3284, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f33000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
    mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f32000
    close(3)                                = 0
    openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=340640, ...}) = 0
    mmap(NULL, 340640, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189955000
    close(3)                                = 0
    openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=2396, ...}) = 0
    fstat(3, {st_mode=S_IFREG|0644, st_size=2396, ...}) = 0
    read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 2396
    lseek(3, -1518, SEEK_CUR)               = 878
    read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 1518
    close(3)                                = 0
    stat("/etc/sudo.conf", {st_mode=S_IFREG|0644, st_size=3973, ...}) = 0
    openat(AT_FDCWD, "/etc/sudo.conf", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=3973, ...}) = 0
    read(3, "#\n# Default /etc/sudo.conf file\n"..., 4096) = 3973
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    geteuid()                               = 1000
    access("/usr/local/sbin/sudo", X_OK)    = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/sudo", X_OK)     = -1 ENOENT (No such file or directory)
    access("/usr/sbin/sudo", X_OK)          = -1 ENOENT (No such file or directory)
    access("/usr/bin/sudo", X_OK)           = 0
    stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=178504, ...}) = 0
    openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    write(2, "sudo", 4sudo)                     = 4
    write(2, ": ", 2: )                       = 2
    write(2, "effective uid is not 0, is /usr/"..., 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?) = 133
    ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
    )                       = 1
    write(2, "\n", 1
    )                       = 1
    exit_group(1)                           = ?
    +++ exited with 1 +++
    

    Can you please give me some advice how to run the GUI, thank you.

    Edit:

    export QT_DEBUG_PLUGINS=1
    sudo python3 ./multibootusb
    

    I did not get any aditional result with above commands.

    jsulmJ 1 Reply Last reply
    0
    • M martin155

      Environment

      Windows: Windows 10 Version 2004 Build 20262.1010
      Your Distribution version: Kali 2020.4
      WSL2
      

      Steps to reproduce

      sudo apt-get install python3-pyqt5 p7zip-full parted util-linux python3-pyudev mtools python3-dbus python3-six
      

      Then I downloaded the multibootusb from https://codeload.github.com/mbusb/multibootusb/zip/master and I extracted the archive and run:

      sudo python3 ./multibootusb

      After that I get following error:

      Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
      [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
      Running multibootusb version 9.3.0 from source...
      Starting multibootusb GUI...
      qt.qpa.xcb: could not connect to display
      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
      
      Aborted
      

      After strace sudo python3 ./multibootusb I got:

      execve("/usr/bin/sudo", ["sudo", "python3", "./multibootusb"], 0x7ffd662d4900 /* 19 vars */) = 0
      access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
      brk(NULL)                               = 0x55c25482d000
      fcntl(0, F_GETFD)                       = 0
      fcntl(1, F_GETFD)                       = 0
      fcntl(2, F_GETFD)                       = 0
      access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
      access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/tls/haswell/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/tls/haswell/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/tls/haswell/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/tls/haswell", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/tls/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/tls/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/tls/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/tls", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/haswell/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/haswell/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/haswell/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/haswell", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/x86_64/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo/x86_64", 0x7ffd1a7d0ea0) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/sudo/libaudit.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      stat("/usr/lib/sudo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
      openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=112114, ...}) = 0
      mmap(NULL, 112114, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f26000
      close(3)                                = 0
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libaudit.so.1", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3205\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=128944, ...}) = 0
      mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb189f24000
      mmap(NULL, 172200, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189ef9000
      mprotect(0x7fb189efc000, 114688, PROT_NONE) = 0
      mmap(0x7fb189efc000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fb189efc000
      mmap(0x7fb189f03000, 81920, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7fb189f03000
      mmap(0x7fb189f18000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7fb189f18000
      mmap(0x7fb189f1a000, 37032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189f1a000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/sudo/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220}\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=167888, ...}) = 0
      mmap(NULL, 179368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189ecd000
      mmap(0x7fb189ed4000, 102400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fb189ed4000
      mmap(0x7fb189eed000, 32768, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7fb189eed000
      mmap(0x7fb189ef5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x27000) = 0x7fb189ef5000
      mmap(0x7fb189ef7000, 7336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189ef7000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/sudo/libutil.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\22\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=14720, ...}) = 0
      mmap(NULL, 16656, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189ec8000
      mmap(0x7fb189ec9000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fb189ec9000
      mmap(0x7fb189eca000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189eca000
      mmap(0x7fb189ecb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189ecb000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/sudo/libsudo_util.so.0", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0Y\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=117472, ...}) = 0
      mmap(NULL, 121128, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189eaa000
      mmap(0x7fb189eaf000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb189eaf000
      mmap(0x7fb189ec0000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7fb189ec0000
      mmap(0x7fb189ec6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7fb189ec6000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/sudo/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 |\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0755, st_size=149608, ...}) = 0
      mmap(NULL, 136304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189e88000
      mmap(0x7fb189e8f000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fb189e8f000
      mmap(0x7fb189e9f000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fb189e9f000
      mmap(0x7fb189ea4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7fb189ea4000
      mmap(0x7fb189ea6000, 13424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189ea6000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/sudo/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@n\2\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0
      mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189cc3000
      mprotect(0x7fb189ce8000, 1662976, PROT_NONE) = 0
      mmap(0x7fb189ce8000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7fb189ce8000
      mmap(0x7fb189e33000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7fb189e33000
      mmap(0x7fb189e7e000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7fb189e7e000
      mmap(0x7fb189e84000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb189e84000
      close(3)                                = 0
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcap-ng.so.0", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0#\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=26984, ...}) = 0
      mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb189cc1000
      mmap(NULL, 29064, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189cb9000
      mmap(0x7fb189cbb000, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189cbb000
      mmap(0x7fb189cbe000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb189cbe000
      mmap(0x7fb189cbf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb189cbf000
      close(3)                                = 0
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\"\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=584360, ...}) = 0
      mmap(NULL, 586664, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189c29000
      mmap(0x7fb189c2b000, 409600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fb189c2b000
      mmap(0x7fb189c8f000, 163840, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x66000) = 0x7fb189c8f000
      mmap(0x7fb189cb7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8d000) = 0x7fb189cb7000
      close(3)                                = 0
      openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
      read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832
      fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0
      mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb189c23000
      mmap(0x7fb189c24000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fb189c24000
      mmap(0x7fb189c26000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fb189c26000
      mmap(0x7fb189c27000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fb189c27000
      close(3)                                = 0
      mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb189c21000
      arch_prctl(ARCH_SET_FS, 0x7fb189c21d00) = 0
      mprotect(0x7fb189e7e000, 12288, PROT_READ) = 0
      mprotect(0x7fb189c27000, 4096, PROT_READ) = 0
      mprotect(0x7fb189ea4000, 4096, PROT_READ) = 0
      mprotect(0x7fb189cb7000, 4096, PROT_READ) = 0
      mprotect(0x7fb189cbf000, 4096, PROT_READ) = 0
      mprotect(0x7fb189ec6000, 4096, PROT_READ) = 0
      mprotect(0x7fb189ecb000, 4096, PROT_READ) = 0
      mprotect(0x7fb189ef5000, 4096, PROT_READ) = 0
      mprotect(0x7fb189f18000, 4096, PROT_READ) = 0
      mprotect(0x55c25437b000, 4096, PROT_READ) = 0
      mprotect(0x7fb189f6c000, 4096, PROT_READ) = 0
      munmap(0x7fb189f26000, 112114)          = 0
      set_tid_address(0x7fb189c21fd0)         = 11152
      set_robust_list(0x7fb189c21fe0, 24)     = 0
      rt_sigaction(SIGRTMIN, {sa_handler=0x7fb189e8f690, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fb189e9c140}, NULL, 8) = 0
      rt_sigaction(SIGRT_1, {sa_handler=0x7fb189e8f730, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fb189e9c140}, NULL, 8) = 0
      rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
      prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
      statfs("/sys/fs/selinux", 0x7ffd1a7d1c30) = -1 ENOENT (No such file or directory)
      statfs("/selinux", 0x7ffd1a7d1c30)      = -1 ENOENT (No such file or directory)
      brk(NULL)                               = 0x55c25482d000
      brk(0x55c25484e000)                     = 0x55c25484e000
      openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
      read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tt"..., 1024) = 474
      read(3, "", 1024)                       = 0
      close(3)                                = 0
      access("/etc/selinux/config", F_OK)     = -1 ENOENT (No such file or directory)
      prlimit64(0, RLIMIT_AS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_AS, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
      prlimit64(0, RLIMIT_CORE, NULL, {rlim_cur=0, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_CPU, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_CPU, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
      prlimit64(0, RLIMIT_DATA, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_DATA, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
      prlimit64(0, RLIMIT_FSIZE, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_FSIZE, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
      prlimit64(0, RLIMIT_LOCKS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_MEMLOCK, NULL, {rlim_cur=64*1024, rlim_max=64*1024}) = 0
      prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
      prlimit64(0, RLIMIT_NOFILE, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)
      prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)
      prlimit64(0, RLIMIT_NOFILE, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0
      prlimit64(0, RLIMIT_NPROC, NULL, {rlim_cur=23485, rlim_max=23485}) = 0
      prlimit64(0, RLIMIT_NPROC, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)
      prlimit64(0, RLIMIT_NPROC, {rlim_cur=23485, rlim_max=23485}, NULL) = 0
      prlimit64(0, RLIMIT_RSS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_RSS, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = 0
      prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
      prlimit64(0, RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}, NULL) = 0
      fcntl(0, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
      fcntl(1, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
      fcntl(2, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
      openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=369, ...}) = 0
      mmap(NULL, 369, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f6b000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=27002, ...}) = 0
      mmap(NULL, 27002, PROT_READ, MAP_SHARED, 3, 0) = 0x7fb189f3b000
      close(3)                                = 0
      futex(0x7fb189e8367c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
      mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f3a000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
      mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f39000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=167, ...}) = 0
      mmap(NULL, 167, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f38000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0
      mmap(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f37000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
      mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f36000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
      mmap(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f35000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
      mmap(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f34000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=2586930, ...}) = 0
      mmap(NULL, 2586930, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb1899a9000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=3284, ...}) = 0
      mmap(NULL, 3284, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f33000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
      mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189f32000
      close(3)                                = 0
      openat(AT_FDCWD, "/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=340640, ...}) = 0
      mmap(NULL, 340640, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb189955000
      close(3)                                = 0
      openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=2396, ...}) = 0
      fstat(3, {st_mode=S_IFREG|0644, st_size=2396, ...}) = 0
      read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 2396
      lseek(3, -1518, SEEK_CUR)               = 878
      read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 1518
      close(3)                                = 0
      stat("/etc/sudo.conf", {st_mode=S_IFREG|0644, st_size=3973, ...}) = 0
      openat(AT_FDCWD, "/etc/sudo.conf", O_RDONLY) = 3
      fstat(3, {st_mode=S_IFREG|0644, st_size=3973, ...}) = 0
      read(3, "#\n# Default /etc/sudo.conf file\n"..., 4096) = 3973
      read(3, "", 4096)                       = 0
      close(3)                                = 0
      geteuid()                               = 1000
      access("/usr/local/sbin/sudo", X_OK)    = -1 ENOENT (No such file or directory)
      access("/usr/local/bin/sudo", X_OK)     = -1 ENOENT (No such file or directory)
      access("/usr/sbin/sudo", X_OK)          = -1 ENOENT (No such file or directory)
      access("/usr/bin/sudo", X_OK)           = 0
      stat("/usr/bin/sudo", {st_mode=S_IFREG|S_ISUID|0755, st_size=178504, ...}) = 0
      openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      write(2, "sudo", 4sudo)                     = 4
      write(2, ": ", 2: )                       = 2
      write(2, "effective uid is not 0, is /usr/"..., 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?) = 133
      ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
      )                       = 1
      write(2, "\n", 1
      )                       = 1
      exit_group(1)                           = ?
      +++ exited with 1 +++
      

      Can you please give me some advice how to run the GUI, thank you.

      Edit:

      export QT_DEBUG_PLUGINS=1
      sudo python3 ./multibootusb
      

      I did not get any aditional result with above commands.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @martin155 said in Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app:

      write(2, "effective uid is not 0, is /usr/"..., 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?) = 133
      ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0

      As you can see it complains about sudo used on a file system with nosudo flag set.
      Do you really have to start that app with sudo?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      1
      • jsulmJ jsulm

        @martin155 said in Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app:

        write(2, "effective uid is not 0, is /usr/"..., 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?) = 133
        ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0

        As you can see it complains about sudo used on a file system with nosudo flag set.
        Do you really have to start that app with sudo?

        M Offline
        M Offline
        martin155
        wrote on last edited by martin155
        #3

        @jsulm
        Yeah I think it is necessary. I have tried the app in Debian distro (which is working fine) but it requires the sudo authentication.

        Without sudo:

        python3 ./ multibootusb
        

        Here is what I get:

        Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
        [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
        Traceback (most recent call last):
          File "./multibootusb", line 225, in <module>
            osdriver.initialize()
          File "/home/admin/multibootusb-master/scripts/osdriver.py", line 456, in initialize
            the_handler = logging.handlers.RotatingFileHandler(
          File "/usr/lib/python3.8/logging/handlers.py", line 148, in __init__
            BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
          File "/usr/lib/python3.8/logging/handlers.py", line 55, in __init__
            logging.FileHandler.__init__(self, filename, mode, encoding, delay)
          File "/usr/lib/python3.8/logging/__init__.py", line 1143, in __init__
            StreamHandler.__init__(self, self._open())
          File "/usr/lib/python3.8/logging/__init__.py", line 1172, in _open
            return open(self.baseFilename, self.mode, encoding=self.encoding)
        PermissionError: [Errno 13] Permission denied: '/var/log/multibootusb.log'
        
        JonBJ jsulmJ 2 Replies Last reply
        0
        • M martin155

          @jsulm
          Yeah I think it is necessary. I have tried the app in Debian distro (which is working fine) but it requires the sudo authentication.

          Without sudo:

          python3 ./ multibootusb
          

          Here is what I get:

          Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
          [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
          Traceback (most recent call last):
            File "./multibootusb", line 225, in <module>
              osdriver.initialize()
            File "/home/admin/multibootusb-master/scripts/osdriver.py", line 456, in initialize
              the_handler = logging.handlers.RotatingFileHandler(
            File "/usr/lib/python3.8/logging/handlers.py", line 148, in __init__
              BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
            File "/usr/lib/python3.8/logging/handlers.py", line 55, in __init__
              logging.FileHandler.__init__(self, filename, mode, encoding, delay)
            File "/usr/lib/python3.8/logging/__init__.py", line 1143, in __init__
              StreamHandler.__init__(self, self._open())
            File "/usr/lib/python3.8/logging/__init__.py", line 1172, in _open
              return open(self.baseFilename, self.mode, encoding=self.encoding)
          PermissionError: [Errno 13] Permission denied: '/var/log/multibootusb.log'
          
          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @martin155
          Are you saying the only reason you need sudo is to have write/create access to /var/log/multibootusb.log? In which case, just sort out the permissions.

          1 Reply Last reply
          1
          • M martin155

            @jsulm
            Yeah I think it is necessary. I have tried the app in Debian distro (which is working fine) but it requires the sudo authentication.

            Without sudo:

            python3 ./ multibootusb
            

            Here is what I get:

            Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
            [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
            Traceback (most recent call last):
              File "./multibootusb", line 225, in <module>
                osdriver.initialize()
              File "/home/admin/multibootusb-master/scripts/osdriver.py", line 456, in initialize
                the_handler = logging.handlers.RotatingFileHandler(
              File "/usr/lib/python3.8/logging/handlers.py", line 148, in __init__
                BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
              File "/usr/lib/python3.8/logging/handlers.py", line 55, in __init__
                logging.FileHandler.__init__(self, filename, mode, encoding, delay)
              File "/usr/lib/python3.8/logging/__init__.py", line 1143, in __init__
                StreamHandler.__init__(self, self._open())
              File "/usr/lib/python3.8/logging/__init__.py", line 1172, in _open
                return open(self.baseFilename, self.mode, encoding=self.encoding)
            PermissionError: [Errno 13] Permission denied: '/var/log/multibootusb.log'
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @martin155 Fully agree with @JonB : instead of running whole app as root you should give it read/write access to the log file.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply
            1
            • jsulmJ jsulm

              @martin155 Fully agree with @JonB : instead of running whole app as root you should give it read/write access to the log file.

              M Offline
              M Offline
              martin155
              wrote on last edited by
              #6

              @jsulm
              I am not sure about that. Can you please tell me how to to test that. You mean:

              sudo  chmod +x /var/log/multibootusb.log
              

              Also I have tried to run app in

              /usr/bin
              

              There is multiboot (probably from the source) and multiboot-pkexec (installed from .deb). And I get the following:

              sudo multibootusb-pkexec
              Error checking for authorization org.debian.pkexec.run-multibootusb: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to open file ?/proc/14569/status?: No such file or directory
              
              sudo multibootusb
              /usr/bin/multibootusb:194: SyntaxWarning: "is not" with a literal. Did you mean "!="?
                if uninstall is True and config.usb_disk is not '':
              /usr/bin/multibootusb:196: SyntaxWarning: "is" with a literal. Did you mean "=="?
                elif uninstall is True and config.usb_disk is '':
              /usr/bin/multibootusb:200: SyntaxWarning: "is" with a literal. Did you mean "=="?
                elif config.image_path is '' and config.usb_disk is '':
              /usr/bin/multibootusb:200: SyntaxWarning: "is" with a literal. Did you mean "=="?
                elif config.image_path is '' and config.usb_disk is '':
              /usr/bin/multibootusb:203: SyntaxWarning: "is not" with a literal. Did you mean "!="?
                elif config.cli_syslinux is True and config.usb_disk is not '':
              /usr/bin/multibootusb:205: SyntaxWarning: "is" with a literal. Did you mean "=="?
                elif config.image_path is '' or config.usb_disk is '':
              /usr/bin/multibootusb:205: SyntaxWarning: "is" with a literal. Did you mean "=="?
                elif config.image_path is '' or config.usb_disk is '':
              Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
              [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
              Traceback (most recent call last):
                File "/usr/bin/multibootusb", line 187, in <module>
                  if config.debug is True:
              NameError: name 'config' is not defined
              
              jsulmJ 1 Reply Last reply
              0
              • M martin155

                @jsulm
                I am not sure about that. Can you please tell me how to to test that. You mean:

                sudo  chmod +x /var/log/multibootusb.log
                

                Also I have tried to run app in

                /usr/bin
                

                There is multiboot (probably from the source) and multiboot-pkexec (installed from .deb). And I get the following:

                sudo multibootusb-pkexec
                Error checking for authorization org.debian.pkexec.run-multibootusb: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to open file ?/proc/14569/status?: No such file or directory
                
                sudo multibootusb
                /usr/bin/multibootusb:194: SyntaxWarning: "is not" with a literal. Did you mean "!="?
                  if uninstall is True and config.usb_disk is not '':
                /usr/bin/multibootusb:196: SyntaxWarning: "is" with a literal. Did you mean "=="?
                  elif uninstall is True and config.usb_disk is '':
                /usr/bin/multibootusb:200: SyntaxWarning: "is" with a literal. Did you mean "=="?
                  elif config.image_path is '' and config.usb_disk is '':
                /usr/bin/multibootusb:200: SyntaxWarning: "is" with a literal. Did you mean "=="?
                  elif config.image_path is '' and config.usb_disk is '':
                /usr/bin/multibootusb:203: SyntaxWarning: "is not" with a literal. Did you mean "!="?
                  elif config.cli_syslinux is True and config.usb_disk is not '':
                /usr/bin/multibootusb:205: SyntaxWarning: "is" with a literal. Did you mean "=="?
                  elif config.image_path is '' or config.usb_disk is '':
                /usr/bin/multibootusb:205: SyntaxWarning: "is" with a literal. Did you mean "=="?
                  elif config.image_path is '' or config.usb_disk is '':
                Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
                [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
                Traceback (most recent call last):
                  File "/usr/bin/multibootusb", line 187, in <module>
                    if config.debug is True:
                NameError: name 'config' is not defined
                
                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @martin155 said in Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app:

                sudo multibootusb

                Do you have the shebang line at the top of your Python app?
                #!/usr/bin/env python

                If not you have to call it as you did before.

                "I am not sure about that. Can you please tell me how to to test that":

                # x means execution bit, you need /readwrite
                sudo  chmod o+rw /var/log/multibootusb.log
                

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @martin155 said in Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app:

                  sudo multibootusb

                  Do you have the shebang line at the top of your Python app?
                  #!/usr/bin/env python

                  If not you have to call it as you did before.

                  "I am not sure about that. Can you please tell me how to to test that":

                  # x means execution bit, you need /readwrite
                  sudo  chmod o+rw /var/log/multibootusb.log
                  
                  M Offline
                  M Offline
                  martin155
                  wrote on last edited by
                  #8

                  @jsulm
                  I have following shebang:

                  #!/usr/bin/env python3
                  

                  I have also tried (without any luck):

                  #!/usr/bin/python3
                  

                  And after I changed the rights to multibootusb.log I get the following when I start the app without sudo:

                  Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
                  [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
                  Running multibootusb version 9.3.0 from source...
                  Starting multibootusb GUI...
                  
                  
                  Admin privilege is required to run multibootusb.
                   If you are running from source try 'sudo python3 ./multibootusb'
                   or you can try 'multibootusb-pkexec' (post install)
                  
                  
                  qt.qpa.xcb: could not connect to display
                  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
                  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                  
                  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
                  
                  Aborted
                  
                  jsulmJ 1 Reply Last reply
                  0
                  • M martin155

                    @jsulm
                    I have following shebang:

                    #!/usr/bin/env python3
                    

                    I have also tried (without any luck):

                    #!/usr/bin/python3
                    

                    And after I changed the rights to multibootusb.log I get the following when I start the app without sudo:

                    Using python version  3.8.6 (default, Sep 25 2020, 09:36:53)
                    [GCC 10.2.0] on platform Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
                    Running multibootusb version 9.3.0 from source...
                    Starting multibootusb GUI...
                    
                    
                    Admin privilege is required to run multibootusb.
                     If you are running from source try 'sudo python3 ./multibootusb'
                     or you can try 'multibootusb-pkexec' (post install)
                    
                    
                    qt.qpa.xcb: could not connect to display
                    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
                    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                    
                    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
                    
                    Aborted
                    
                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @martin155 said in Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app:

                    Admin privilege is required to run multibootusb.

                    OK, then this app requires root.
                    Then you need to find a solution for
                    write(2, "effective uid is not 0, is /usr/"..., 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?) = 133
                    ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0

                    For example remove nosuid from mount derective (in /etc/fstab).

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    M 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @martin155 said in Kali WSL2 "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found" when starting the multiboot usb gui app:

                      Admin privilege is required to run multibootusb.

                      OK, then this app requires root.
                      Then you need to find a solution for
                      write(2, "effective uid is not 0, is /usr/"..., 133effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?) = 133
                      ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0

                      For example remove nosuid from mount derective (in /etc/fstab).

                      M Offline
                      M Offline
                      martin155
                      wrote on last edited by
                      #10

                      @jsulm

                      I don't have any configuration in /etc/fstab.

                      Problem is probably caused by the disks mounting and recognizing the disks in WSL2. When I open the app in standard Linux distro (I have tried the Debian) or in Windows everything works alright. The app likely doesn't see any disk (even though it is mounted) because of the use of WSL2.
                      I have tried to compile the code directly from Sublime Text and the GUI started but I was not able to select any disk. Then I tried to insert the flash drive and mount the disk manually but it still didn't show any disk available.
                      Furthermore with 'lsblk' I see only the ssd the distro is installed on (even though I have mounted other disk / flash drive).
                      So this would probably mean it is problem of WSL2 and/or maybe some change in app code is needed, right?

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved