I tried putting sudo ./ but it says that is not valid. Help?

did you open the terminal inside of the anki file?
otherwise, “will appear bash: ./ No such file or directory”

Assuming that you’re trying to run to install Anki, why don’t you try installing Anki with pip? It’s the easiest way I’ve found so far, and it can install the latest version regardless of what distro you’re running.

$ pip3 install aqt
$ anki

That’s it.

edit:this error appear:
Traceback (most recent call last):
File “/home/lportillo/.local/bin/anki”, line 5, in
from aqt import run
File “/home/lportillo/.local/lib/python3.8/site-packages/aqt/”, line 15, in
import anki.lang
File “/home/lportillo/.local/lib/python3.8/site-packages/anki/”, line 12, in
import anki._backend
File “/home/lportillo/.local/lib/python3.8/site-packages/anki/_backend/”, line 15, in
from anki import backend_pb2, i18n_pb2
File “/home/lportillo/.local/lib/python3.8/site-packages/anki/”, line 22, in
AttributeError: module ‘google.protobuf.descriptor’ has no attribute ‘_internal_create_key’

thats exactly my problem

You can use “sudo sh”

On recent Ubuntu (Pop os, mint, zorin os, elementary os…) installations, please use ‘sudo apt install libxcb-xinerama0’ before installing

Once downloaded, the following commands in a terminal window will install Anki system-wide. The $ is the prompt character, and shouldn’t be typed in. Make sure what you’re entering in matches the file you downloaded.

About Pre-built Python wheels
$ python3.8 -m venv ~/pyenv
$ ~/pyenv/bin/pip install --upgrade pip
$ ~/pyenv/bin/pip install aqt

Then to run Anki:
$ ~/pyenv/bin/anki

That error can be resolved with ‘pip install --upgrade protobuf’, or installing a newer version from your distro.