# Ubuntu – How to fix “E:The package linux-modules-5.4.0-56-generic needs to be reinstalled, but I can’t find an archive for it.”

sudo apt update && sudp apt upgrade -y now shows the error message

E:The package linux-modules-5.4.0-56-generic needs to be reinstalled. But I can't find an archive for it.


and nothing proceeds.
How can I fix this problem?

Thanks.

sudo apt remove linux-modules-5.4.0-56-generic