Skip to content

Instantly share code, notes, and snippets.

@wonderbeyond
Last active August 22, 2025 14:42
Show Gist options
  • Select an option

  • Save wonderbeyond/3448c2f281062d61716efa1d8083a102 to your computer and use it in GitHub Desktop.

Select an option

Save wonderbeyond/3448c2f281062d61716efa1d8083a102 to your computer and use it in GitHub Desktop.
[ubuntu][socks5][proxy] Set proxy for apt
@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]

@Gintoki98
Copy link

Worked like a charm, I'm using shadowsocks to connect and it creates a socks5 proxy at localhost, so this was a blessing when I found how to use APT through a proxy

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