It seems that Maxmind has changed the way they are zipping their databases and the getgeocountry
script is not functioning properly. You can get a new copy of the script by pulling the source from the GitHub site either by a git pull - or downloading the latest Debian package if you’ve upgraded.
To fix things: go to /var/lib/GeoIP
and install the new script. Use ls -l
to see where GeoLite2-Country-CSV
is pointing. It should be pointing at a directory, and not into a directory. If it’s pointing to a file, then
$ sudo rm GeoLite2-Country-CSV
$ sudo ln -s <MOST RECENT> GeoLite2-Country-CSV
Then run getgeocountry
to make sure things work. Then you can delete all but the most recent directory.