[Linux Mint] Problem Launching Anki after instalation

I am installing Anki for the first time on Linux Mint. I went through all the steps to download it correctly through the website and install it through the terminal. However, when I type ‘anki’ to run it for the first time, nothing happens. The error it is giving me says “bash: /usr/bin/anki: No such file or directory”. I believe it installed correctly, as before this is says “Install complete. Type ‘anki’ to run.” but nothing shows up other than the error. Anki also does not show up in my Menu tab under applications.

I tried to look up solutions on here, but everything I am seeing is for windows or a completely separate problem.

Also, I’m a little clueless when it comes to coding, so please explain it like I don’t know what you’re talking about.

The script from the website should install anki in /usr/local/bin/anki. I assume you ran /usr/bin/anki instead of just anki, because the error would otherwise have been bash: anki: command not found.

It should. Maybe try to rerun the install script. Were there any erros during the install script? Because those commands should pass: anki/qt/launcher/lin/install.sh at main · ankitects/anki · GitHub.

If this worked, then the desktop image should show up.

Did you install an out-of-date packaged version? Linux Distro Packages - Anki Manual

I did very briefly, but it was giving me errors. I read the website, realized I did the wrong thing, and uninstalled it promptly.

1 Like

This is what happened when I installed it.

I will try running the commands again to see if anything different happens.

I looked at this page, but I couldn’t really tell if what was on my screen was correct. I have very little knowledge about coding. Some things I understand, but I could not tell what was supposed to show on my screen as opposed to what the computer needed, but wouldn’t have shown me.

1 Like

I don’t know what I did wrong the first time, but this worked! Anki is now up and running. If anyone knows and could explain if I made any mistakes they see on the first round, I would appreciate learning from this.

Small edit: Anki still isn’t showing up under my applications tab. It also will not let me pin the app to my panel. If anyone knows how to fix this please let me know

2 Likes

The output looks correct / expected.

Did you type exactly anki into the terminal after running sudo ./install? Because if you ran /usr/bin/anki instead (but the path or binary at that path doesn’t exist) then you get the bash: /usr/bin/anki: No such file or directory error. That’s what I meant in my first half of my first post.

If you did type just anki, then I have no idea what the issue was.

I assume you cannot pin anki to your panel because the app icon is missing (I use gnome on debian, so am not accustomed to using panels like that). If I am right, then it should fix itself once we get the icon to actually show.

Typically, you could try the following things:

  1. Log out of your linux machine and then log back in again.
  2. Reboot the device.

Probably one of those two should fix it, as the .desktop icon should be in /usr/local/share/applications/anki.desktop and the data should have been updated already by the install script.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.