Every time I try any "apt update" or "upgrade" or anything similar I get the error
dpkg: error processing package libgl1-mesa-glx:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
libgl1-mesa-glx:amd64
I don't really know what to do anymore, I tried all "configure" and "reconfigure" and "autoclean" commands and nothing seems to work.