"Last metadata expiration check" error

Whenever I try to update with ‘sudo dnf update’ or install any app, I always get the error ‘Last metadata expiration check: 0:00:07 ago on …’ .
Tried ‘yum clean expire-cache’ and ‘dnf clean all’ then updating the system. But still same errors :/.