[SOLVED] Error using Etcher (AppImage) on manjaro linux (Permission Denied)
See original GitHub issue-
Etcher version:
-
Operating system and architecture:
- Manjaro Linux (x64)
- (uname -a)
Linux simon-tp 4.19.56-1-MANJARO #1 SMP PREEMPT Wed Jun 26 03:35:21 UTC 2019 x86_64 GNU/Linux
-
Image flashed:
-
Do you see any meaningful error information in the DevTools?
- Yes, see issue detail below
Summary (includes solution):
When trying to flash an SD card using the AppImage packaged version of Etcher, running on Manjaro Linux, the process fails with a generic error message. Opening the DevTools console gives more details into the error and suggests this is a permissions issue
"Command failed: cd "/home/simon"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; sh '/tmp/tmp-1683OiD12Fzl2VQu.cmd'"
/tmp/tmp-1683OiD12Fzl2VQu.cmd: line 64: /run/user/1000/appimagelauncherfs/0000.AppImage: Permission denied
"
The issue is solved by deleting the package appimagelauncher
and rebooting the system (not sure if the reboot is really necessary, but I did it and it worked). Others might need to also remove libappimage
(from extra) but that was not the case for me.
Referenced forum solution: https://forum.manjaro.org/t/solved-appimage-woes-when-building-package/86654/6
Steps to reproduce:
Note: You need to have DevTools open in etcher before doing these steps in order to see the logs (CTRL+SHIFT+I) (I, not L)
- Ensure
community/appimagelauncher
is installed (the issue could arise because ofextra/libappimage
as well, given the forum post that I read but it was not installed in my case; 1.1 To verify if one (or both) of these packages is installed, runsudo pacman -Ss appimage
; - Follow the steps to flash an external device in etcher’s UI with any valid combination of external drive & image (you can use the image I linked in this post);
- Notice the following error:
The devtools shows the following stacktrace:
"Error: Command failed: cd "/home/simon"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; sh '/tmp/tmp-1683OiD12Fzl2VQu.cmd'"
/tmp/tmp-1683OiD12Fzl2VQu.cmd: line 64: /run/user/1000/appimagelauncherfs/0000.AppImage: Permission denied
at ChildProcess.exithandler (child_process.js:303:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close [as _onclose] (net.js:596:12)"
I didn’t push further to understand exactly what was going on but I thought I’d document it for others because finding out the solution was a very frustrating process for me.
Cheers !
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top GitHub Comments
Thanks for the report, very detailed and useful. Closing, will reference if other users encounter the same issue
Since this is solved I believe it can be closed but I’ll leave it open for a few days in case people need to see it. If the project contributors decide differently, I fully understand.