I randomly started having trouble using
apt-get on a Raspberry Pi 3 running Raspian. I can remove packages just fine, but when I try to install one, I always get the message
E: Unable to locate package
The command is run while SSHing into the pi (if that should matter for some reason).
I found lots of things online saying to simply run
apt-get update, but that doesn't fix it for me. And when I try to install a package that is already up to date, the functionality is as expected. What's going on?