# Cannot Sync on Ubuntu

**URL:** <https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446>\
**Category:** Help\
**Created:** [January 6, 2022, 11:34pm UTC](https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446 "2022-01-06T23:34:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SofaKing](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@SofaKing](https://forums.ankiweb.net/u/SofaKing)\
**Post date:** [January 6, 2022, 11:34pm UTC](https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446/1 "2022-01-06T23:34:59Z")

</div>

Not sure why, but cannot sync my cards to ankiweb, error code doesn’t seem to give a clue. Tried using mtr to ankiweb and it shows no packet loss to any server. I have version 2.1.15 on Ubuntu

This is the message given when trying to sync

Syncing failed:  
Traceback (most recent call last):  
File “/usr/share/anki/aqt/sync.py”, line 376, in \_sync  
ret = self.\_abortingSync()  
File “/usr/share/anki/aqt/sync.py”, line 356, in \_abortingSync  
return self.client.sync()  
File “/usr/share/anki/anki/sync.py”, line 120, in sync  
ret = self.server.sanityCheck2(client=c)  
File “/usr/share/anki/anki/sync.py”, line 614, in sanityCheck2  
return self.\_run(“sanityCheck2”, kw)  
File “/usr/share/anki/anki/sync.py”, line 624, in \_run  
self.req(cmd, io.BytesIO(json.dumps(data).encode(“utf8”))).decode(“utf8”))  
File “/usr/share/anki/anki/sync.py”, line 559, in req  
self.assertOk(r)  
File “/usr/share/anki/anki/sync.py”, line 498, in assertOk  
raise Exception(“Unknown response code: %s” % resp.status\_code)  
Exception: Unknown response code: 400

If someone could help that would be much appreciated! Thank you!

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [January 7, 2022, 3:31am UTC](https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446/2 "2022-01-07T03:31:19Z")

</div>

Updating your Anki should fix the issue

---

<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:** [January 7, 2022, 5:40am UTC](https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446/3 "2022-01-07T05:40:12Z")

</div>

More info: [Linux Distro Packages - Anki Manual](https://docs.ankiweb.net/platform/linux/distro-packages.html)

---

<div class="post-metadata">

**Author:** ![BlackBeans](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/blackbeans/32/2283_2.png) [@BlackBeans](https://forums.ankiweb.net/u/BlackBeans)\
**Post date:** [January 7, 2022, 6:36am UTC](https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446/4 "2022-01-07T06:36:27Z")

</div>

Unfortunately, Anki is known to be poorly packaged on most Linux distributions, however I have made a small list of ways of you have to actually install the latest Anki version on any distribution [here](https://forums.ankiweb.net/t/anki-on-chromeboook/15013/9).  
You should find at least one that suits you, although none is really satisfying because you circumnavigate your default package manager. If you really want to stick to a single way to install packages (which is reasonable), and if you use gnome-software to install your packages (the default in Ubuntu (Gnome or Unity), Xubuntu and Lubuntu), be aware that there are extensions to make it compatible with flatpak or snap, meaning you can install with these package managers through gnome-software (it’s not possible with nix as using an imperative way of installing packages is not the way it works).

---

<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:37am UTC](https://forums.ankiweb.net/t/cannot-sync-on-ubuntu/16446/5 "2023-05-01T04:37:29Z")

</div>


