openstack offline - ng apt cacher throws 403 for some packages

asked 2019-08-07 05:44:45 -0500

I m trying to deploy Openstack (queens) without internet by hosting all required content on a webserver.

I m facing problem with hosting APT packages.

I m Using apt-cacher-ng : to host apt packages, which apparently should cache all the packages that client installs via cacher proxy server.

But the problem is when I turn off internet on apt-cacher-ng -> clients throw error while apt-update and while installing some packages (in openstack ansible playbooks -> update apt-cache task is failing)

Following are some lines in logs at apt-cacher-ng server :

root@deployer:/var/cache/apt-cacher-ng# cat /var/log/apt-cacher-ng/apt-cacher.log |grep -i forbid 1565165068|E|433|172.16.38.38|403 Forbidden file type or location: http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-all/Packages.lz4 (http://security.ubuntu.com/ubuntu/dis...) 1565165068|E|439|172.16.38.38|403 Forbidden file type or location: http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-all/Packages.lz4 (http://security.ubuntu.com/ubuntu/dis...) 1565165068|E|433|172.16.36.155|403 Forbidden file type or location: http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-all/Packages.lz4 (http://security.ubuntu.com/ubuntu/dis...) 1565165069|E|436|172.16.36.155|403 Forbidden file type or location: http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-all/Packages.lz4 (http://us.archive.ubuntu.com/ubuntu/d...) 1565165824|E|454|172.16.39.18|403 Forbidden file type or location: http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/xenial-updates/queens/main/binary-all/Packages.lz4 (http://ubuntu-cloud.archive.canonical...)

first point to be noted is the link it is trying hit doesnt exists :this page "http://security.ubuntu.com/ubuntu/dists/xenial-security/multiverse/binary-all/Packages.lz4" doesnt exists - actually Packages.lz4 doesnt exists -> rather there is Packages.xz

edit retag flag offensive close merge delete