Last active
September 10, 2024 11:19
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acquire::http::Pipeline-Depth "0"; | |
Acquire::http::No-Cache=True; | |
Acquire::BrokenProxy=true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo rm /var/lib/apt/lists/* | |
sudo rm /var/lib/apt/lists/partial/* | |
sudo apt-get update |
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
another backlink:
https://askubuntu.com/a/809808