I installed a new Raspbian stretch image today and wanted to install git on it. I started with an apt update and upgrade which went fine. Installing git however produced the following error:
When checking the repository the listed packages were not available, only deb9u3 is available online resulting in the error:
Code: Select all
[email protected]:~ $ sudo apt install git -y Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: git-man liberror-perl Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn The following NEW packages will be installed: git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 4,812 kB/4,839 kB of archives. After this operation, 26.3 MB of additional disk space will be used. Err:1 http://raspbian.raspberrypi.org/raspbian stretch/main armhf git-man all 1:2.11.0-3+deb9u2 404 Not Found [IP: 22.214.171.124 80] Err:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u2 404 Not Found [IP: 126.96.36.199 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/git/git-man_2.11.0-3+deb9u2_all.deb 404 Not Found [IP: 188.8.131.52 80] E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/g/git/git_2.11.0-3+deb9u2_armhf.deb 404 Not Found [IP: 184.108.40.206 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[ ] git-man_2.11.0-3+deb9u3_all.deb 27-May-2018 19:16 1.4M Details
[ ] git_2.11.0-3+deb9u3_armhf.deb 30-May-2018 00:04 3.2M Details
apt update or apt update --fix-missing couldn't change anything, the policy would remain on deb9u2. I had to download and installed deb9u3 manually.