# Anki.Help.Linux

**URL:** <https://forums.ankiweb.net/t/anki-help-linux/12218>\
**Category:** Help\
**Created:** [August 11, 2021, 9:51pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218 "2021-08-11T21:51:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejo2404](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Alejo2404](https://forums.ankiweb.net/u/Alejo2404)\
**Post date:** [August 11, 2021, 9:51pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/1 "2021-08-11T21:51:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [August 11, 2021, 11:45pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/2 "2021-08-11T23:45:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tatsumoto](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/tatsumoto/32/5411_2.png) [@tatsumoto](https://forums.ankiweb.net/u/tatsumoto)\
**Post date:** [August 12, 2021, 12:58am UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/3 "2021-08-12T00:58:08Z")

</div>

Assuming that you’re trying to run `install.sh` 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.

```auto
$ pip3 install aqt
$ anki

```

That’s it.

---

<div class="post-metadata">

**Author:** ![Alejo2404](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Alejo2404](https://forums.ankiweb.net/u/Alejo2404)\
**Post date:** [August 12, 2021, 7:34pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/4 "2021-08-12T19:34:51Z")

</div>

thankiu  
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/ **init**.py”, line 15, in   
import anki.lang  
File “/home/lportillo/.local/lib/python3.8/site-packages/anki/lang.py”, line 12, in   
import anki.\_backend  
File “/home/lportillo/.local/lib/python3.8/site-packages/anki/\_backend/ **init**.py”, line 15, in   
from anki import backend\_pb2, i18n\_pb2  
File “/home/lportillo/.local/lib/python3.8/site-packages/anki/backend\_pb2.py”, line 22, in   
create\_key=\_descriptor.\_internal\_create\_key,  
AttributeError: module ‘google.protobuf.descriptor’ has no attribute ‘\_internal\_create\_key’

---

<div class="post-metadata">

**Author:** ![Alejo2404](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Alejo2404](https://forums.ankiweb.net/u/Alejo2404)\
**Post date:** [August 12, 2021, 7:36pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/5 "2021-08-12T19:36:23Z")

</div>

yeah  
thats exactly my problem

---

<div class="post-metadata">

**Author:** ![savage](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@savage](https://forums.ankiweb.net/u/savage)\
**Post date:** [August 12, 2021, 10:15pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/6 "2021-08-12T22:15:39Z")

</div>

You can use “sudo sh install.sh”

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [August 13, 2021, 2:39pm UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/7 "2021-08-13T14:39:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [August 15, 2021, 6:29am UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/8 "2021-08-15T06:29:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 4:55am UTC](https://forums.ankiweb.net/t/anki-help-linux/12218/9 "2023-05-01T04:55:29Z")

</div>


