The error you’re pasting is from 2.1.15, so it sounds like you had an older version of Anki lying around.
The instructions say to run ‘sudo ./install.sh’. It sounds to me like you ran the script from your home folder instead. I will add a check for this.