Closed rgaudin closed 4 years ago
In GitLab by @thiolliere on Sep 18, 2017, 21:01
fatal line formatted:
`fatal: [localhost]: FAILED! => {
"cache_update_time": 1504614382,
"cache_updated": false,
"changed": false,
"failed": true,
"msg":
'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'hostapd'' failed: E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/w/wpa/hostapd_2.3-1+deb8u4_armhf.deb Connection failed [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
"stderr":
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/w/wpa/hostapd_2.3-1+deb8u4_armhf.deb Connection failed [IP: 2a00:1098:0:80:1000:75:0:3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
"stdout":
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libnl-route-3-200
The following NEW packages will be installed:
hostapd libnl-route-3-200
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 559 kB of archives.
After this operation, 1473 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libnl-route-3-200 armhf 3.2.24-2 [99.5 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main hostapd armhf 1:2.3-1+deb8u4 [459 kB]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main hostapd armhf 1:2.3-1+deb8u4
Connection failed [IP: 2a00:1098:0:80:1000:75:0:3 80]
Fetched 99.5 kB in 3min 30s (471 B/s)
In GitLab by @Kelson42 on Sep 19, 2017, 18:42
@thiolliere ok, so we have here the traditional sporadic problem that the file is not available on the deb repo.
I have made a few researches and found that mirrordirector.raspbian.org is actually a mirrorbrain instance which redirects to X mirrors (same technology as for download.kiwix.org). Depending how this is done (how mirrors deal with the master and how often the master check the mirrors) this kind of things can be relatively error prone.
It seem that the master is archive.raspbian.org.
To workaround this problem which seems to happen quite often, I would recommend - in case of error - to change the repo to archive.raspbian.org and retry the apt-get requests. This seems to relatively easy with Ansible https://docs.ansible.com/ansible/latest/apt_repository_module.html. Put the default repo. back afterward.
Does that sounds a reasonable approach?
In GitLab by @thiolliere on Sep 28, 2017, 11:37
we use apt-get in two different ways:
If we want to use archive.raspbian.org why not use it by default even not in case of error ? it would be easier to implement. we could reset to mirror at the end of the installation
In GitLab by @Kelson42 on Sep 29, 2017, 06:46
@thiolliere I think here if that fix the problem this would acceptable to directly use archive.raspbian.org. At least we should try that solution IMO.
In GitLab by @thiolliere on Oct 3, 2017, 18:26
closed via commit fa7aadd4a910ff222fb1f0d650dadcf268966bb7
In GitLab by @Popolechien on Sep 6, 2017, 05:39