# Can't download Anki on terminal linux

**URL:** <https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563>\
**Category:** Help\
**Created:** [February 24, 2024, 5:29pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563 "2024-02-24T17:29:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 24, 2024, 5:29pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/1 "2024-02-24T17:29:34Z")

</div>

Hello Anki, I have been a user of this software for a very long time however, lately, I have been facing many issues.  
On Thursday, I opened Anki to use it for my GCSE mock revision however as I opened it anki said “An add-on you installed failed to load” so I decided to delete and re-download the addon. This add-on was a review heatmap.  
However every solution I tried didn’t work, so I contacted the developer of this add-on with screenshots via email, I was told that I have the older version of Anki and the older version of the add-on so he directed me to the Anki website where it told me how to install and upgrade Anki on Linux. Bear in mind I have a Galaxy Chromebook OS 2 which contains a terminal I have no clue how to use. So I tried using the guide from Anki it didn’t help so I went to YouTube and Reddit to seek other solutions however nothing worked until I stumbled upon a YouTube video which guided me through how to uninstall apps on Linux, I used this guide to uninstall Anki with my intentions been that after I have uninstalled anki I will download it again with the new version, however, this was not the case as I have spent 3 days trying to install anki back on the terminal again that I even seek help from AI apps giving commands. Every command I try they never work.  
Please Anki help me get this app back on my Chromebook as I am desperately trying to revise it for my upcoming GCSE mocks

---

<div class="post-metadata">

**Author:** ![guidigoi](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@guidigoi](https://forums.ankiweb.net/u/guidigoi)\
**Post date:** [February 25, 2024, 1:02pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/2 "2024-02-25T13:02:24Z")

</div>

Please, copy paste an example of the command lines your typing in terminal and the results even if it’s unclear to you. It should be something like this:

```auto
$ sudo apt install libxcb-xinerama0 libxcb-cursor0 libnss3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ tar xaf Downloads/anki-2XXX-linux-qt6.tar.zst
tar: Downloads/anki-2XXX-linux-qt6.tar.zst: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

```

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 3:59pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/3 "2024-02-25T15:59:34Z")

</div>

Should I just put in 2XXX or should I replace it with a version.  
If so can you recommend me the version to replace 2XXX

---

<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:** [February 25, 2024, 4:22pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/4 "2024-02-25T16:22:46Z")

</div>

Open a terminal and run the following commands, _replacing the filename as appropriate_.

```auto
tar xaf Downloads/anki-23.12.1-linux-qt6.tar.zst
cd anki-23.12.1-linux-qt6
sudo ./install.sh

```

[Latest version](https://apps.ankiweb.net/) Qt 6

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 5:21pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/5 "2024-02-25T17:21:23Z")

</div>

I have used the commands you suggested, however Linux came up with this

 ![17088816500711350974153153627213](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/6/b626efef4e2e75d11f512c82533675fc927b11e1.jpeg)

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 5:23pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/6 "2024-02-25T17:23:34Z")

</div>

I have used the command lines you told me to use

 ![1708881795329297822197640531646](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/3/e33aa225fa7eed2c5d2f70d21572d62380942dcd.jpeg)

---

<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:** [February 25, 2024, 6:05pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/7 "2024-02-25T18:05:07Z")

</div>

Try the following based on this [thread](https://support.google.com/chromebook/thread/165361446/where-s-the-download-folder-in-linux-files?hl=en)

```auto
cd Downloads
tar xaf Downloads/anki-23.12.1-linux-qt6.tar.zst
cd anki-23.12.1-linux-qt6
sudo ./install.sh

```

if it doesn’t work, then

```auto
cd /mnt/chromeos/MyFiles/Downloads
tar xaf /mnt/chromeos/MyFiles/Downloads/anki-23.12.1-linux-qt6.tar.zst
cd anki-23.12.1-linux-qt6
sudo ./install.sh

```

* * *

Another easy way to set up anki would be using flatpak  
[Chrome OS Flathub Setup | Flathub](https://flathub.org/setup/Chrome%20OS)  
then [Install Anki on Linux | Flathub](https://flathub.org/apps/net.ankiweb.Anki)

Support is Unofficial

> You are welcome to continue using your distro’s version of Anki if you prefer, but if you run into any issues, you will need to report them to your distribution’s package maintainers.  
> [Linux Distro Packages - Anki Manual](https://docs.ankiweb.net/platform/linux/distro-packages.html)

Let us know which method it worked

Could you do `uname -m` to see if your system is ARM/Aarch64 or 64bits Intel/AMD

Flatpak will install the latest version if it is 64 bits, but will install the older version for ARM/Aarch64

latest versions of ARM/Aarch64 can be installed via [python wheels](https://betas.ankiweb.net/#via-pypipip) (idk how to setup)

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 6:29pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/8 "2024-02-25T18:29:02Z")

</div>

Hi have tried the first command line

 ![17088857041777726146302307557779](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/9/c/9cfe71d4baf5bdec2bd9ac16eb1e5ddfba0ec18f.jpeg)

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 6:29pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/9 "2024-02-25T18:29:56Z")

</div>

I have tried the second command line

 ![17088857701204877811333131338162](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/1/f17f4de2b7d7f3439049cf658e930608d433df34.jpeg)

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 6:31pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/10 "2024-02-25T18:31:12Z")

</div>

Can you guide me through in how to get flathub please

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 6:35pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/11 "2024-02-25T18:35:33Z")

</div>

I have put in uname

 ![17088860628757647584312300966648](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/b/6b48b528ed8b9c01d6199d5498c29ba638207e70.jpeg)

- m

However on my setting on the about chromeos it says this

 ![17088861141483504695057900686330](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/7/e7379064c4553f5c78c4bc4cb5da84b125a620e7.jpeg)

---

<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:** [February 25, 2024, 6:42pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/12 "2024-02-25T18:42:02Z")

</div>

The setup is pretty straight forward

> **[Chrome OS Flathub Setup | Flathub](https://flathub.org/setup/Chrome%20OS)**
>
> Set up Flathub to install and update apps on your system.

then once it is done, just

```auto
flatpak install flathub net.ankiweb.Anki

```

> **[Install Anki on Linux | Flathub](https://flathub.org/apps/net.ankiweb.Anki)**
>
> Powerful, intelligent flash cards

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 6:46pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/13 "2024-02-25T18:46:59Z")

</div>

I am very sorry to continuously bother,  
I have used the guide you linked to get flathub

 ![IMG_20240225_184544_edit_163614646759408](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/0/008bc3499cb85049858ce112fa743fc101389a6e.jpeg)  
 ![IMG_20240225_184518](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/2/d2d90c42a97af954265dcf46bbbb07edb1d2982d.jpeg)  
 ![IMG_20240225_184404_edit_163532979193795](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/8/b838cb56f39d43b568534a5cee5fed875f4ca87e.jpeg)

---

<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:** [February 25, 2024, 6:49pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/14 "2024-02-25T18:49:08Z")

</div>

Remember step 5. Restart

> To complete setup, restart Linux. You can do this by right-clicking terminal, and then clicking “Shut down Linux”. Now all you have to do is [install some apps](https://flathub.org/)!

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 25, 2024, 7:05pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/15 "2024-02-25T19:05:14Z")

</div>

I have completed step 5.However I can’t find flat pack anywhere, although i have got this

 ![IMG_20240225_190434_edit_164470689774902](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/3/c31e79b416b4ea8ae7ba63e2701507df3a7da106.jpeg)

---

<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:** [February 25, 2024, 7:13pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/16 "2024-02-25T19:13:35Z")

</div>

Sorry, thought the icon would appear once Anki was installed, then use this

```auto
flatpak run net.ankiweb.Anki

```

After you start anki, right click the icon and try to pin the app in your desktop/docker/toolbar

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 26, 2024, 6:05am UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/17 "2024-02-26T06:05:57Z")

</div>

I have successfully done it, however it says

 ![17088933856806479554265150276895](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/a/fa1c31221ff9a97c19b819deb02ff1732d427a16.jpeg)  
I have got the Anki icon appeared on the system  
 ![17088934816698788546955326695740](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/a/8/a8a64b749f1ce8741d182b9c031231bcaa4b2ac3.jpeg)  
However, when I open it, it just comes up with this  
 ![17088935280577446560037614931524](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/5/35236d2cf3fe92083d58975328770b253a67bb82.jpeg)

---

<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:** [February 26, 2024, 3:53pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/18 "2024-02-26T15:53:02Z")

</div>

> Linux on Chromebook runs via a container and uses Wayland. Any gui program which is not able to use Wayland will not run.  
> [Reddit - Dive into anything](https://www.reddit.com/r/chromeos/comments/v09e2w/linux_in_chrome_os_using_wayland/?rdt=38601)

Anki support on Wayland works, but it is not perfect, you can track and report issues here:

> <https://github.com/ankitects/anki/issues/1767>
>
> \- \[x\] Qt 6.2.2, probably Qt5 too: editor sometimes pastes as text, sometimes pas…tes as html (mimeData.hasHtml() is returning intermittently false). Does not occur for me when using xwayland + QT\_QPA\_PLATFORM=xcb. Maybe related to https://bugreports.qt.io/browse/QTBUG-74330 (fixed in 6.3)
> \- \[\] Qt 5/6.2.2/6.3: client side decorations are not supported, so when used on Gnome/Mutter, there are no borders/titlebars
> \- \[x\] Qt 5/6.2.2: window.raise() is not supported, so clicking on 'add' to bring an existing add window to the top does not work (fixed in 6.3 for Sway, but not Gnome)
> \- \[\] Qt 5/6.2.2/6.3: fullscreen mode renders Anki transparent (confirmed on 2.1.51 RC2, Manjaro Gnome; doesn't happen with Sway)
> https://forums.ankiweb.net/t/blury-interface-with-gnome-wayland-and-fractional-scaling/19196/3?u=kleinerpirat
> 
> Anki will link users to this page when they run Anki on a Wayland system.

---

<div class="post-metadata">

**Author:** ![Richmond2007](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Richmond2007](https://forums.ankiweb.net/u/Richmond2007)\
**Post date:** [February 26, 2024, 6:31pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/19 "2024-02-26T18:31:09Z")

</div>

sorry to keep bothering you, however, I am confused about what you want me to do next please.

---

<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:** [February 26, 2024, 6:41pm UTC](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563/20 "2024-02-26T18:41:26Z")

</div>

It runs fine right? you can access anki installation prompt

just ignore the terminal warning

Is the prompt not installing?

> [@Anki won't open properly after flatpak install](https://forums.ankiweb.net/t/anki-wont-open-properly-after-flatpak-install/41640):
>
> Hey guys, the process of trying to install anki on my chromebook has been very difficult and time consuming, I’m not familiar with Linux or anything computer code related so if I’m doing something wrong I would never know. Anyway, I followed the steps from another thread here and installed anki through flatpak. Anki successfully installed finally after many attempts to install through Linux! However, when I open the Anki application I am prompted to select a language, after selecting English (US…

* * *

Reported in [Installation crashing in x86\_64 for Chromebooks · Issue #135 · flathub/net.ankiweb.Anki · GitHub](https://github.com/flathub/net.ankiweb.Anki/issues/135)

For now, try using AnkiDroid in the play store until the issue is fixed

[Next page](https://forums.ankiweb.net/t/cant-download-anki-on-terminal-linux/41563.md?page=2)
