balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
29.64k stars 2.1k forks source link

Missing directory in /opt during install - solved by symlink. #3640

Closed dmcardlenl closed 1 year ago

dmcardlenl commented 2 years ago

Missing directory in /opt during install - solved by symlink. /usr/bin/balena-etcher-electron points to /opt/balena-etcher-electron/balena-etcher-electron in /opt ln -s ./balenaEtcher ./balena-etcher-electron needed - or similar - YMMV.

lurch commented 2 years ago

See also #3486

dmcardlenl commented 2 years ago

Yes, I didn't think I'd be the first to encounter this...I'll look later...

On Wed, 24 Nov 2021 at 03:13, Andrew Scheller @.***> wrote:

See also #3486 https://github.com/balena-io/etcher/issues/3486

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/balena-io/etcher/issues/3640#issuecomment-977400039, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANPRIZQNVWESJ5O3XLRB6G3UNRC3NANCNFSM5IU4OU4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Alex313031 commented 2 years ago

@lurch @dmcardlenl Yup. chmod: cannot access '/opt/balena-etcher-electron/chrome-sandbox this has been an issue for as long as I have used etcher on linux. It will still run fine without making a symlink or copying /opt/balenaEtcher to /opt/balena-etcher-electron, but it is annoying nonetheless. It is probably an artifact from the days when the .debs were called and installed to "balena-etcher-electron". With how nitpicky (a good thing) balena is about fixing little things here and there in etcher, you would think they would have resolved this a long time ago.

bedawi commented 2 years ago

I can confirm this error on Fedora 35 when version 1.7.3-1 is installed from RPM.

This link is broken: /usr/bin/balena-etcher-electron -> /opt/balena-etcher-electron/balena-etcher-electron

To fix the problem I run:

sudo rm /usr/bin/balena-etcher-electron
sudo ln -s /opt/balenaEtcher/balena-etcher-electron /usr/bin/balena-etcher-electron
ghost commented 2 years ago

Also on Fedora 35, same issue. Thanks @bedawi for that quick fix.

dfunckt commented 1 year ago

Dupe of #3486