Skip to content

Instantly share code, notes, and snippets.

@wonderbeyond
Last active March 14, 2025 23:53
Show Gist options
  • Save wonderbeyond/3448c2f281062d61716efa1d8083a102 to your computer and use it in GitHub Desktop.
Save wonderbeyond/3448c2f281062d61716efa1d8083a102 to your computer and use it in GitHub Desktop.
[ubuntu][socks5][proxy] Set proxy for apt
@firvida
Copy link

firvida commented Mar 16, 2022

Using this and works good!!!

@cabralesperez
Copy link

helped me, thank you very much

@ppc52776
Copy link

Thanks!!!

@jianmo-z
Copy link

Thanks, work for me

@DFazeli
Copy link

DFazeli commented Dec 5, 2022

Thank you very much, it worked for me too.

@Vinnsent
Copy link

Thanks man, after almost hour of struggling i found your solution and it worked like charm!

@mnaderian
Copy link

How is it possible to add exceptions? Like if we want some URLs to be bypassed?

@Yegorov
Copy link

Yegorov commented Dec 24, 2024

Also work for me sudo http_proxy=socks5h://localhost:1080 apt-get update

@AMD-NICK
Copy link

@cctv130
Copy link

cctv130 commented Mar 14, 2025

Ign:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:1 https://download.docker.com/linux/ubuntu jammy InRelease
Err:1 https://download.docker.com/linux/ubuntu jammy InRelease
Could not handshake: The TLS connection was non-properly terminated. [IP: 192.168.124.5 10810]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment