Skip to content

Instantly share code, notes, and snippets.

@trastle
Last active February 7, 2022 13:46
Show Gist options
  • Save trastle/5722089 to your computer and use it in GitHub Desktop.
Save trastle/5722089 to your computer and use it in GitHub Desktop.
Fixing the issue with apt caused by a bad local proxy: -1- Create 99fixbadproxy at: /etc/apt/apt.conf.d/99fixbadproxy -2- Run clear.sh
Acquire::http::Pipeline-Depth "0";
Acquire::http::No-Cache=True;
Acquire::BrokenProxy=true;
#!/bin/bash
sudo rm /var/lib/apt/lists/*
sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update
@ostanislaw
Copy link

another backlink:
https://askubuntu.com/a/809808

@nautikk
Copy link

nautikk commented Jul 19, 2021

Can you explain the use and the terms in 99fixbadproxy

Inside Dockerfile add this

RUN touch /etc/apt/apt.conf.d/99fixbadproxy

RUN echo "Acquire::http::Pipeline-Depth 0;Acquire::http::No-Cache true;Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99fixbadproxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment