# Trouble on importing ankideck

**URL:** <https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312>\
**Category:** Help\
**Created:** [October 3, 2023, 12:02pm UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312 "2023-10-03T12:02:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenMiau](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@GreenMiau](https://forums.ankiweb.net/u/GreenMiau)\
**Post date:** [October 3, 2023, 12:02pm UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/1 "2023-10-03T12:02:56Z")

</div>

I recieved the deck as a zip file. I unzipped it and renamed the supposed deck named ‘‘collection.anki2’’ to an apkg file. But when I try to import it it says ‘‘invalid zip archive: could not find central directory end’’

---

<div class="post-metadata">

**Author:** ![PitrusCitrus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/pitruscitrus/32/15983_2.png) [@PitrusCitrus](https://forums.ankiweb.net/u/PitrusCitrus)\
**Post date:** [October 3, 2023, 5:02pm UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/2 "2023-10-03T17:02:55Z")

</div>

It seems whoever sent you the file has sent their collection file instead of a deck. You can get the decks out of that, but easiest may be for them to export the deck as intended and send you the expected .apkg file instead.

Check out this relevant thread:

> [@Extension name is "anki2" how can I open this file with Anki?](https://forums.ankiweb.net/t/extension-name-is-anki2-how-can-i-open-this-file-with-anki/3372):
>
> hello, a friend of mine sent me a file which consist extension name anki2 collection.anki2 like this and I can open this file with my laptop and all the other files extension name is apkg. thus, I also changed extension name but it’s still not working and he said he can open this file in his laptop. and asked me if I updated with latest version and I did and tried again. and still it is not working. so, if there is anyone who knows how to solve this problem. can you answer me? slight_smile

---

<div class="post-metadata">

**Author:** ![GreenMiau](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@GreenMiau](https://forums.ankiweb.net/u/GreenMiau)\
**Post date:** [October 3, 2023, 5:48pm UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/3 "2023-10-03T17:48:20Z")

</div>

Thanks for the quick response! Sadly I can’t ask the person. Is there a step by step tutorial on how to get the deck out of it?

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [October 3, 2023, 6:47pm UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/4 "2023-10-03T18:47:11Z")

</div>

The downloaded zip file might be an apkg file that was renamed from .apkg to .zip. Try to import it by changing its extension from .zip to .apkg or use File \> Import and select the zip file.

---

<div class="post-metadata">

**Author:** ![PitrusCitrus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/pitruscitrus/32/15983_2.png) [@PitrusCitrus](https://forums.ankiweb.net/u/PitrusCitrus)\
**Post date:** [October 3, 2023, 7:15pm UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/5 "2023-10-03T19:15:18Z")

</div>

First of all, you’ll want to create a new Anki profile. In the top left of the main window, click _ **File \> Switch Profile** _ and create a new profile with a distinct name from there, and then close Anki.

Next, you’ll want to navigate to your _Anki2_ folder. It’s location will vary depending on your operating system. You’ll find instructions on how to find in [this section of the manual](https://docs.ankiweb.net/files.html#file-locations). Consider making a backup of the _Anki2_ folder before proceeding to make any changes.

Inside the _Anki2_ folder, you will see an additional folder for each of your profiles. Enter the folder corresponding to the profile you just created. Replace the _collection.anki2_ with the file of the same name from the zip archive you received.

If the zip archive you received also contains a folder called _collection.media_ and a file called _collection.media.db2_, put those in the same way. If those files are missing any images or sounds will be missing from the cards.

Open Anki again and select your new profile. You may find several decks here. Click the cog wheel on the deck of interest and export, not including scheduling information.

Switch back to your regular profile and import the deck you just exported.

Hope that helps, cheers! 🙂

---

<div class="post-metadata">

**Author:** ![GreenMiau](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@GreenMiau](https://forums.ankiweb.net/u/GreenMiau)\
**Post date:** [October 13, 2023, 9:18am UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/6 "2023-10-13T09:18:53Z")

</div>

Sorry for the late reply. It worked! Thank you so much 🙂

---

<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:** [November 12, 2023, 9:19am UTC](https://forums.ankiweb.net/t/trouble-on-importing-ankideck/35312/7 "2023-11-12T09:19:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
