Anki Installation in Template VM not propagating to AppVM

Hello Friends,

I want to start by mentioning that I did use the search function and found that using a standalone VM could be a solution. I also found a German topic discussing Anki, but it was based on the Fedora template, where the solution was straightforward since Fedora includes Anki in its software repository.

However, I’d still like to try and get this working with my current setup.

I’ve managed to set up AppVMs for other applications, such as Signal, Obsidian, and BitTorrent, each with its own template and AppVM. Here’s what I’ve done to set up an offline-only AppVM for Anki:

  1. I created an Anki template VM based on the Debian 12 template.
  2. Within this template VM, I connected to the internet, downloaded, and successfully installed Anki. It works perfectly within the template.
  3. Next, I created an AppVM for Anki based on this template. However, when I try to launch Anki in the AppVM, nothing happens. I can see the Anki icon in the app menu, but clicking it doesn’t start the application. Additionally, typing anki in the terminal gives a bash error that the command isn’t recognized.

Am I missing a step, or could there be an issue with my setup?

How exactly did you do it?
If you’ve installed it in /home/user or /usr/local directories then it won’t work because the files there are not inherited by the app qubes:
Templates | Qubes OS

1 Like

Here’s what I did:

  1. Downloaded anki from the website
  2. installed zstd
  3. Moved to the Downloads folder
  4. Ran this command “tar xaf ~/Downloads/anki” to extract it
  5. Cd’d to extracted anki folder
  6. installed using “sudo ./install.sh”

What’s the output of this command?

which anki
1 Like

lrwxrwxrwx 1 root root 26 Nov 4 00:40 /usr/local/bin/anki → /usr/local/share/anki/anki

It’s installing the app in the /usr/local directory so you need to run sudo ./install.sh in the app qube instead of a template.

1 Like

For debian, the anki website recommends that I also install the following dependencies

sudo apt install libxcb-xinerama0 libxcb-cursor0 libnss3

Would I also need to install these in the app?

And if I run sudo ./install.sh in the app qube, will the installation persist?

And if I need to do installation in the app qube, do I even need parent template vm?

You need to install them in the template.

Yes.

If you want to install the anki’s dependencies libxcb-xinerama0 libxcb-cursor0 libnss3 in a separate template then yes.

1 Like

Awesome, I got it working!

Thanks apparatus, your help is always greatly appreaciated.
Earnestly,
thanks.