Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
29
rated 0 times [  29] [ 0]  / answers: 1 / hits: 6370  / 2 Years ago, wed, september 7, 2022, 11:25:31

I live in Ethiopia and the government blocks all urls with the word "proxy" in them. I couldn't use that word in the title above because that would make the url contain the word proxy.



When I apt-get upgrade I get errors because some packages like libproxy1, libproxy1-plugin-gsettings, libproxy1-plugin-networkmanager, python-libproxy all contain the p word.



Therefore, it is all blocked. I tried putting the urls into proxy sites, but they all just returned to their home page.



Are there any other solutions?


More From » apt

 Answers
5

The packages get blocked because your government apparently uses a URL filter. You can circumvent this by using FTP instead of HTTP to upgrade. To do this edit the file /etc/apt/sources.list and replace all occurrences of http with ftp.



You can also do it with these commands in a terminal:



sudo cp /etc/apt/sources.list{,.old}
sudo sed -i 's/http/ftp/g' /etc/apt/sources.list


Now try to update your package list and install the updates



sudo apt-get update && sudo apt-get upgrade


You will need to repeat the process for additional software sources (i.e. PPAs) that live in the directory /etc/apt/sources.list.d/. (credit goes to reddit user noname-_-)


[#33951] Wednesday, September 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wherejuic

Total Points: 53
Total Questions: 123
Total Answers: 117

Location: Zambia
Member since Mon, Jan 23, 2023
1 Year ago
wherejuic questions
Thu, Aug 19, 21, 18:07, 3 Years ago
Wed, May 12, 21, 03:23, 3 Years ago
Sat, Nov 13, 21, 05:27, 3 Years ago
Mon, Sep 5, 22, 17:36, 2 Years ago
;