Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pacman doesn't work - pacman-key needs to be run as root #356

Open
davispuh opened this issue Sep 27, 2024 · 0 comments
Open

pacman doesn't work - pacman-key needs to be run as root #356

davispuh opened this issue Sep 27, 2024 · 0 comments

Comments

@davispuh
Copy link

When using pacman with appimage-builder I'm getting

$ appimage-builder
INFO:main:Running main script
INFO:main:Running pacman deploy
WARNING:pacman:Setting option: SigLevel = Optional TrustAll
pkill: killing pid 412609 failed: Operation not permitted
INFO:pacman:Using system keyrings
==> ERROR: pacman-key needs to be run as root for this operation.
ERROR:root:"['/tmp/.mount_appimanwawE5/usr/bin/fakeroot', '/bin/pacman-key', '--config', '/mnt/proj/appimage-build/pacman/pacman.conf', '--init']" execution failed
Traceback (most recent call last):
  File "/tmp/.mount_appimanwawE5/usr/bin/appimage-builder", line 8, in <module>
    sys.exit(__main__())
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/__main__.py", line 50, in __main__
    invoker.execute(commands)
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/invoker.py", line 29, in execute
    command()
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/commands/pacman_deploy.py", line 42, in __call__
    venv = Venv(
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/pacman/venv.py", line 60, in __init__
    self._configure_keyring()
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/pacman/venv.py", line 183, in _configure_keyring
    self._run_command("{fakeroot} {pacman-key} --config {config} --init")
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/pacman/venv.py", line 234, in _run_command
    shell.assert_successful_result(_proc)
  File "/tmp/.mount_appimanwawE5/usr/lib/python3.8/site-packages/appimagebuilder/utils/shell.py", line 35, in assert_successful_result
    raise RuntimeError(
RuntimeError: "['/tmp/.mount_appimanwawE5/usr/bin/fakeroot', '/bin/pacman-key', '--config', '/mnt/proj/appimage-build/pacman/pacman.conf', '--init']" execution failed with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant