Chmod: cannot access '/opt/obsidian/chrome-sandbox': No such file or directory

Steps to reproduce

Installation on Linux Mint 19.3 with Deb File from command line:

$ sudo dpkg -i ./obsidian_0.12.15_amd64.deb 
[sudo] password for xy:               
(Reading database ... 412137 files and directories currently installed.)
Preparing to unpack ./obsidian_0.12.15_amd64.deb ...
Unpacking obsidian (0.12.15) over (0.12.15) ...
Setting up obsidian (0.12.15) ...
chmod: cannot access '/opt/obsidian/chrome-sandbox': No such file or directory
Processing triggers for desktop-file-utils (0.23+linuxmint8) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

Expected result

app does not install
obsidian should be installed in /opt/obsidian

Actual result

app was installed in /opt/Obsidian ← Obsidian spelled with capital O

Environment

  • Operating system: Linux Mint 19.3 64bit / Kernel 4.15.0-159-generic x86_64
  • Obsidian version: obsidian_0.12.15_amd64.deb

Additional information

Bugfix:
After failed attempt I renamed /opt/Obsidian to /opt/obsidian and installed again.
This seems to solve the issue, obsidian is installed OK

I’ve downloaded and installed the deb package for Obsidian 0.12.15. When trying to start it, I got an error that the

Steps to reproduce

  1. wget https://github.com/obsidianmd/obsidian-releases/releases/download/v0.12.15/obsidian_0.12.15_amd64.deb
  2. sudo dpkg -i obsidian_0.12.15_amd64.deb
  3. obsidian

Expected result

obsidian starts normally

Actual result

obsidian
zsh: command not found: obsidian

Environment

  • Operating system: Ubuntu 18.04
  • Obsidian version: v0.12.15

Additional information

I’ve checked the actual installation location and where the symlink in /usr/bin points to.
Installation location: “/opt/Obsidian”
Symlink:
ls -l /usr/bin/obsidian
lrwxrwxrwx 1 root root 22 Sep 16 09:19 /usr/bin/obsidian → /opt/obsidian/obsidian

The path to the executable is wrong it’s /opt/obsidian/obsidian instead /opt/Obsidian/obsidian

To make the things work I’ve changed the symlink:
sudo rm /usr/bin/obsidian
sudo ln -s /opt/Obsidian/obsidian /usr/bin/obsidian

2 Likes

Same happens here on Ubuntu 20.04. Will use the suggested workaround.

When installing Obsidian through the .deb file provided on the official homepage, a broken symlink is created in /usr/bin.

/usr/bin/obsidian after installation points to /opt/obsidian/obsidian… The actual path, however, is /opt/Obsidian/obsidian. Of course the .desktop file still works but there is no “shortcut” binary available. It’s just a minor flaw and not a critical bug.

Steps to reproduce

  1. Download .deb file from Download - Obsidian
  2. Install with dpkg -i ./obsidian-version.deb or similar.
  3. Try to start Obsidian from shell with obsidian.

Expected result

Obsidian starts.

Actual result

obsidian command not found because /usr/bin/obsidian -> /opt/obsidian/obsidian doesn’t exist.

Environment

  • Operating system: Ubuntu 20.04
  • Debug info: No debug info necessary, since it doesn’t affect the app itself.

Additional information

the issue:


fixed by:
220123_135304_screenshot

Thanks for moving my report! I had searched for others but didn’t see this one. My bad.