curl https://exampleconfig.com/api/v1/config/original/2b32d08be3b653925c80f5ded1175ab8?hint=docker-gzip-indexes
wget -O docker-gzip-indexes https://exampleconfig.com/api/v1/config/original/2b32d08be3b653925c80f5ded1175ab8?hint=docker-gzip-indexes
# Since Docker users using "RUN apt-get update && apt-get install -y ..." in # their Dockerfiles don't go delete the lists files afterwards, we want them to # be as small as possible on-disk, so we explicitly request that Apt keep them # compressed on-disk too instead of decompressing them. # For comparison, an "apt-get update" layer without this on a pristine # "debian:wheezy" base image was "29.88 MB", where with this it was only # "8.273 MB". Acquire::GzipIndexes "true";
sudo apt update && sudo apt install apt
sudo apt update && sudo apt install apt
Use this original configuration file when you need to restore APT to its default state after misconfiguration, during fresh installations, or as a baseline for customization. It's particularly useful for troubleshooting when your current config isn't working properly.
Download this file and replace your current configuration at /etc/apt/apt.conf.d/docker-gzip-indexes
. Make sure to backup your existing configuration first, then restart the APT service to apply the changes.
This is the factory-default configuration that ships with APT on Debian 9 (Stretch). While it provides a secure baseline, you should review and customize security settings based on your specific production requirements and compliance needs.
This configuration is specifically from Debian 9 (Stretch). Different operating systems and versions may have slightly different default settings, security patches, or feature availability. Check the compatibility section above for other OS versions.
Yes, this original configuration is excellent for troubleshooting. Compare it with your current settings to identify modifications that might be causing issues, or temporarily replace your config with this one to isolate problems.