What’s written in your /etc/apt/sources.list?
non-free must be there otherwise you can’t install nvidia packages.
My line in sources.list looks like:
deb http://deb.debian.org/debian/ buster main contrib non-free
If it is not there you can add non-free at the end. If you change something you always need to run: apt update to update the package list.