image: debian/sid arch: amd64 tasks: - build: | set -e uname -a cat /etc/os-release date sudo apt-get update sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y wget wget --debug http://d-i.debian.org # Now let's verify that d-i.debian.org got to wget-hsts: cat "$HOME/.wget-hsts" # Now let's try again, this time with wget-hsts: wget http://d-i.debian.org wget --debug http://d-i.debian.org sudo apt-get update sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y apt-cacher-ng # If you install apt-cacher-ng in interactive shell, then you may get a question "enable passthrough?". Answer "No" # Now apt-cacher-ng should be running. If it is not running, you can run it manually using "/etc/init.d/apt-cacher-ng start" export http_proxy=http://localhost:3142/ # Let's verify that apt-cacher-ng works: wget http://deb.debian.org wget --debug http://deb.debian.org wget https://d-i.debian.org wget --debug https://d-i.debian.org # As you see, $http_proxy is ignored for https:// URLs # Now let's finally run command, which (I think) is buggy: wget http://d-i.debian.org || : wget --debug http://d-i.debian.org || : wget --version dpkg -l wget dpkg -l apt-cacher-ng