etcher
etcher copied to clipboard
Ubuntu install orphaned path
... Setting up balena-etcher-electron (1.5.117) ... chmod: cannot access '/opt/balena-etcher-electron/chrome-sandbox': No such file or directory
Yes, the postinst
file is out of sync with the filesystem.
kbee@system76:~/tmp/etcher/control$ cat postinst
#!/bin/bash
# Link to the binary
ln -sf '/opt/balena-etcher-electron/balena-etcher-electron' '/usr/bin/balena-etcher-electron'
# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/balena-etcher-electron/chrome-sandbox' || true
update-mime-database /usr/share/mime || true
update-desktop-database /usr/share/applications || true
@thundron I'm also seeing this same error after following the instructions in #3051 (I'm running Ubuntu 18.04 LTS)
Need to get 86.8 MB of archives.
After this operation, 4,291 kB disk space will be freed.
Get:1 https://dl.cloudsmith.io/public/balena/etcher/deb/ubuntu bionic/main amd64 balena-etcher-electron amd64 1.5.117 [86.8 MB]
Fetched 86.8 MB in 7s (12.3 MB/s)
(Reading database ... 589767 files and directories currently installed.)
Preparing to unpack .../balena-etcher-electron_1.5.117_amd64.deb ...
Unpacking balena-etcher-electron (1.5.117) over (1.5.100) ...
Setting up balena-etcher-electron (1.5.117) ...
chmod: cannot access '/opt/balena-etcher-electron/chrome-sandbox': No such file or directory
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
However if I ls /opt
I see that there is a /opt/balenaEtcher
directory? And
$ ls -l /usr/bin/balena-etcher-electron
lrwxrwxrwx 1 root root 50 May 3 08:10 /usr/bin/balena-etcher-electron -> /opt/balena-etcher-electron/balena-etcher-electron
is a broken symlink :confused:
It looks like there is something wrong with the path. Following commands provided by @kb2ma above using /opt/balenaEtcher
as directory works properly:
# Link to the binary
ln -sf '/opt/balenaEtcher/balena-etcher-electron' '/usr/bin/balena-etcher-electron'
# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/balenaEtcher/chrome-sandbox' || true
update-mime-database /usr/share/mime || true
update-desktop-database /usr/share/applications || true
I guess this path is build using some sort of convention and the convention is broken.
@lurch @kb2ma Would you mind if I create a PR to solve this?
No need to ask my permission! I don't work on this project, I'm just an "interested 3rd party" :wink:
duplicated issue: https://github.com/balena-io/etcher/issues/3074
fix: https://github.com/balena-io/etcher/commit/d8cb8f78154910f46b70f4b2537d57169b1a0b60
duplicated issue: #3074
Seems strange that a bug apparently fixed in Feb 2020 would still be affecting Etcher in May 2021? :confused: :man_shrugging:
Is this issue fixed?
Is this issue fixed?
It looks like the fix was released. However, .deb package still have the issue, so not sure what release is packaged inside the current .deb package.
@valdominic following the above steps provided by @kb2ma should fix the issue in my Debian
@M3LiNdRu I've just taken a look at the issue you linked to, and I think that's a similar-but-different error. #3074 seems to be about a bug in the script used to start Etcher, whereas this issue is about a bug in the package used to install Etcher?
Is this issue fixed?
It looks like the fix was released. However, .deb package still have the issue, so not sure what release is packaged inside the current .deb package.
@valdominic following the above steps provided by @kb2ma should fix the issue in my Debian
@M3LiNdRu , when i try to run the fix that @kb2ma has provided above, it gives me an error
Here is the error
bash: /home/debianbox/tmp/etcher/control$: No such file or directory
I'm having this issue as well FYI.
How is this still broken?
Not sure, but i just tried uninstalling and reinstalling it again and still have getting the same 'chmod: cannot access '/opt/balena-etcher-electron/chrome-sandbox': No such file or directory' error.
Could this be the reason why my bootable USB is not working at boot time? It's showing up in explorer and i can work with the files. but it's not booting up my system with the loaded Distro.
bumping this because the control file is STILL broken
scriptPath here is set incorrectly https://github.com/balena-io/etcher/blob/master/afterPack.js
I just tried to install the apt package and this issue is still occuring. Is nobody working on this?
I just tried to install the apt package and this issue is still occuring. Is nobody working on this?
@do-nat What linux distribution are you using?
FYI, not reproduced on Debian 11
@M3LiNdRu I'm using PopOS, which is an Ubuntu derivate
I just got this issue on a default install of Ubuntu 22.10
chmod: cannot access '/opt/balena-etcher-electron/chrome-sandbox': No such file or directory
It seems the actual folder is /opt/balenaEtcher/
and not ls -la /opt/balena-etcher-electron/
ls -la /opt/balenaEtcher/:
balena-etcher-electron.bin
chrome_100_percent.pak
chrome_200_percent.pak
chrome-sandbox
icudtl.dat
libEGL.so
libffmpeg.so
libGLESv2.so
libvk_swiftshader.so
libvulkan.so.1
LICENSE.electron.txt
LICENSES.chromium.html
locales
resources
resources.pak
snapshot_blob.bin
swiftshader
v8_context_snapshot.bin
vk_swiftshader_icd.json