I have had this problem for a while now and have now decided to ask here. I asked on the raspberry pi subreddit, but found no help.
Whenever I try to use apt-get to update or install something, the pi get stuck trying to connect to mirrordirector.raspbian.org.
The terminal looks like this when trying to install jq for example:
pi@raspberry:~ $ sudo apt-get install jq
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
jq
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 96.1 kB of archives.
After this operation, 232 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
jq
Install these packages without verification? [y/N] y
0% [Connecting to mirrordirector.raspbian.org (2001:41c9:1:3ce::11)]
And after a while, I get this:
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main jq armhf 1.4-2.1
404 Not Found [IP: 5.153.225.207 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/j/jq/jq_1.4- 2.1_armhf.deb 404 Not Found [IP: 5.153.225.207 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
As it says on the last line, to try apt-get update, I would, but I get the same result. Getting stuck at 0% thing to connect.
Thanks in advance.
sudo apt update
BEFORE trying any installation to ensure your repositories are up to date. If this doesn't work post the error message, but the cause is likely the same. PS this does look like the current version ofjq
.