AppImageCrafters / appimage-builder

GNU/Linux packaging solution using the AppImage format
MIT License
316 stars 58 forks source link

pacman error: you cannot perform this operation unless you are root #221

Open cinnamonmatexfce opened 2 years ago

cinnamonmatexfce commented 2 years ago

ArchLinux, I'm using this path: /home/username/.local/bin/appImage-builder/AppDir/usr/bin/PROGRAM

I'm executing appimage-builder from its directory (see above): $ ./appimage-builder-1.0.0-d3ce41f-x86_64.AppImage --generate

INFO:FilePackageResolver:/usr/bin/pacman -Fy /usr/lib/libSDL2-2.0.so.0 /usr/lib/libGL.so.1 /usr/lib/libGLU.so.1 /usr/lib/libz.so.1 /usr/lib/libm.so.6 /usr/lib/libstdc++.so.6 /usr/lib/libSDL2_net-2.0.so.0 /usr/lib/libgcc_s.so.1 /usr/lib/libc.so.6 /usr/lib/libGLdispatch.so.0 /usr/lib/libGLX.so.0 /usr/lib/libOpenGL.so.0 /usr/lib/libpthread.so.0 /usr/lib/libdl.so.2 /usr/lib/libX11.so.6 /usr/lib/libxcb.so.1 /usr/lib/libXau.so.6 /usr/lib/libXdmcp.so.6 /lib64/ld-linux-x86-64.so.2 /usr/lib/ld-linux-x86-64.so.2
error: you cannot perform this operation unless you are root.

P. S.: AppImageBuilder.yml has been created anyway...

azubieta commented 2 years ago

No, at least your application requires it. This is likely a bug.

I'm not a Archlinux expert so if you find a way to run the command from the logs without root please let me know so I can correct it.

cinnamonmatexfce commented 2 years ago

No, at least your application requires it. This is likely a bug.

I'm not a Archlinux expert so if you find a way to run the command from the logs without root please let me know so I can correct it.

I didn't try actually yet... But... I had a look closely to the output and indeed /usr/bin/pacman -Fyrequires elevated privileges, precisely the y switch:

-y, --refresh

Download a fresh copy of the master package database from the server(s) defined in pacman.conf(5). This should typically be used each time you use --sysupgrade or -u. Passing two --refresh or -y flags will force a refresh of all package databases, even if they appear to be up-to-date.

azubieta commented 2 years ago

So the solution would be to remove the -y ? It would be great If you could check the pacman.conf at appimage-build/pacman we use and provide an alternative setup that allows using a cache different from the one in the system (that's how we do it apt).

cinnamonmatexfce commented 2 years ago

I'm not a dev so unfortunately I wouldn't know how to help you neither where to look for the pacman.conf file. But I think I found some useful infos on reddit, please have a look at this: https://www.reddit.com/r/archlinux/comments/klneqi/comment/ghaagpa/?utm_source=share&utm_medium=web2x&context=3