I'm struggling with uploading my own deck to Anki. I found that when I tried uploading my deck on this page, it always got me the error "Malformed deck package".

So I tried downloading styled_impord from their official site, and open it, then compress it again with the following command, but got the same error.

zip -r -X new_import.zip styled_import

What made the error happening? Is this a bug? Or maybe am I wrong with compressing the deck?

1 Answer 1


I finally found out that zip command on macOS does not work in other platforms, and Anki must not use mac on its server.

So instead of zip, use ditto command as written in this answer:

ditto -ck --norsrc directory directory.zip

And the import finally succeeded.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.