How to Disable the Ubuntu ‘GeoIP’ Database Updates (geoipupdate)

The Redundant Database Downloader

In many Ubuntu server deployments, especially those running web servers or security tools, a package called geoipupdate may be installed. This utility runs on a schedule (usually via a cron job or systemd timer) to connect to MaxMind’s servers and download the latest GeoIP databases, which map IP addresses to physical geographical locations (countries, cities).

However, MaxMind changed their licensing model, and the free GeoLite2 databases now require a registered account and a specific license key configured in /etc/GeoIP.conf. If you have simply inherited a server or installed a package that pulled in geoipupdate as a dependency without configuring a license key, the update script will silently fail every single day. Furthermore, if you are not actively using IP geolocation in your applications, running the updater is a complete waste of network bandwidth and cron resources. You should disable it.

How to Disable the GeoIP Updater

The easiest way to stop the updates is to disable the systemd timer responsible for triggering it.

  1. Open your Ubuntu Terminal (or connect via SSH).
  2. First, check if the systemd timer is currently active:
systemctl list-timers | grep geoip
  1. If you see geoipupdate.timer in the list, you can stop it immediately:
sudo systemctl stop geoipupdate.timer
  1. Disable the timer so it does not resume automatically upon a server reboot:
sudo systemctl disable geoipupdate.timer
  1. If your system is using an older, traditional cron job instead of systemd, you must remove or comment out the script located in the cron directory:
sudo rm /etc/cron.d/geoipupdate

(Alternatively, you can just uninstall the package entirely if no other software depends on it by running sudo apt remove geoipupdate).

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.