If you ever run into this command it means you need to enable the Expires module for apache - in most cases this can be done by running:
a2enmod expires
followed by restarting apache with:
systemctl restart apache
If you cannot enable those modules, then remove them from .htaccess or whatever is using Expires