Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@rgautam98

This comment has been minimized.

Copy link

commented Jan 27, 2017

Can you explain the use and the terms in 99fixbadproxy

@ax3l

This comment has been minimized.

Copy link

commented Jun 14, 2017

(Not an answer to the question above, just a backlink)
Relates SO question: https://askubuntu.com/questions/679233/failed-to-fetch-hash-sum-mismatch-tried-rm-apt-list-but-didnt-work

@yabin-kang

This comment has been minimized.

Copy link

commented Feb 27, 2019

this helped me to work around a apt-get install issue about error "Hash Sum MIsmatch" in docker.

@so-jelly

This comment has been minimized.

Copy link

commented Jul 16, 2019

Also can set options at runtime:
apt-get -o Acquire::BrokenProxy="true" -o Acquire::http::No-Cache="true" -o Acquire::http::Pipeline-Depth="0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.