I am working with a Pi 2, Model B, with wheezy installed. It is connected to the Internet with an Ethernet cord and has a keyboard and Bluetooth dongle plugged into its USB ports, as well as a monitor connected to it through HDMI. That's the setup. I'm pretty new to working with a Pi, but I'm familiar with Linux.
I can ping Google.com with no problem, so I think the Internet is working on the pi. I don't think I'm on a proxy, either, because I checked my desktop, which uses the same Ethernet, on whatismyproxy.com and it didn't find one (not sure how reliable that is).
Every time I try to use apt-get (including apt-get update, install, upgrade, whatever), I get a bunch of 404 not found errors like this:
: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/wheezy/main/binary-armhf/Packages 404 Not Found
: Failed to fetch http://archive.raspbian.org/raspbian/dists/wheezy/main/source/Sources 404 Not Found
: Failed to fetch http://raspberrypi.collabora.com/dists/wheezy/rpi/binary-armhf/Packages 404 Not Found
Plus other 404 not found messages from the same domains (I don't list them all here because I'm typing this by hand). I have tried switching from the mirrordirector mirror to another one in my source.list file, as has been suggested in other posts in this forum (the http://lug.mtu.edu/raspbian one, as I'm in the US, in the mirror list), and I still got 404 messages. I also tried
and that also returned a 404 Not Found, after it said it had connected. I can browse to this library on a web browser just fine, on the Desktop computer that is on the same ethernet. Same with the lug.mtu.edu address, although it looks like that one has an extra 'raspbian' in the address, I tried it both with and without it.
I've been working on it for hours and still can't figure out what's wrong. Any suggestions? I want to be able to install packages on it.
To answer the comments,
ping mirrordirector.raspbian.org does work. I've figured out what's wrong, and I feel a bit dumb. Answer below.