Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Stretch apt-get update Fails - 403 Forbidden Release File

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
SilentG
Posts: 1
Joined: 2018-07-19 20:47

Stretch apt-get update Fails - 403 Forbidden Release File

#1 Post by SilentG »

amd64 installation of Stretch 9.5 under Hyper-V.

Installation is a server type deployment so no GUI or extra packages beyond the vanilla server type deployment.

This is our first installation of Stretch and my /etc/apt/sources.list file has the following:

Code: Select all

deb http://security.debian.org/debian-security stretch/updates main contrib non-free

deb http://deb.debian.org/debian/ stretch-updates main contrib non-free

deb http://deb.debian.org/debian stretch main contrib non-free
Right after installation I noticed that our Ansible playbook for post-install configuration was bombing out during 'apt-get update'.

Troubleshooting ruled out firewall rules, network configuration, etc.

When I run 'apt-get update' I see something like this:

Code: Select all

Ign:xx http://blah blah blah
Err: xx http://blah blah blah
403 Forbidden  [IP: 151.101.196.204 80]
...
W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file
various warnings related to the other repositories not having Release files
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 403 Forbidden  [IP: 151.101.196.204 80]
same errors for the other repositories
E: Some index files failed to download. They have been ignored, or old ones used instead.[code]
This is a Stretch thing that I can tell as our Jessie systems can 'apt-get update' without issue (and that leverages common hypervisors, firewall policies, etc).

This happens fairly late in the apt-get update process and not right off the bat.

I have poked around here, Google, etc and I see some indications that there might be a GPG related issue with Stretch (or was) or more strict connection checks with the base Stretch repositories but I haven't seen anything concrete and the error I'm seeing here versus other reports is more vague - 403, Releases missing, one probably causes the other, etc.

I double checked my repository list against the Debian sources and they look correct.

I have commented out all but one sources line and the issue follows the active repository entry in /etc/apt/sources.list. The issue also follows different mirrors so not obvious that I have a lemon of a mirror.

At this point I'm not sure what to do other than scrub the installation on Stretch and stick with Jessie but that isn't a long-term solution really.

For grins I tried multiple Stretch installations on multiple Hyper-V hypervisors and they all do the same thing so this has to be some configuration related deal or a shim that I need to put in place to make this go.

I have to be missing something small but important here.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Stretch apt-get update Fails - 403 Forbidden Release Fil

#2 Post by Head_on_a_Stick »

Try

Code: Select all

# mv /etc/apt/trusted.gpg{,.bak}
deadbang

Post Reply