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 |
another backlink:
https://askubuntu.com/a/809808
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
Now also failures with fetching packages
E: Failed to fetch http://******/main/f/fonts-dejavu/fonts-dejavu-core_2.35-1_all.deb Hash Sum mismatch
E: Failed to fetch http://******main/u/ucf/ucf_3.0036_all.deb Hash Sum mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I'll try again with the same options for install
EDIT: it solved the issue