Skip to content

Instantly share code, notes, and snippets.

@JBlond
Forked from trastle/99fixbadproxy
Created October 11, 2021 08:01
Show Gist options
  • Save JBlond/3cead864451890c3c5a6fafa49fcbf76 to your computer and use it in GitHub Desktop.
Save JBlond/3cead864451890c3c5a6fafa49fcbf76 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment