gpt4 book ai didi

ubuntu - 在 ubuntu 中重置 http_proxy

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:08 29 4
gpt4 key购买 nike

我正在使用 ubuntu 12.04每当我在终端中使用 sudo apt-get update 或从软件管理器下载任何东西时,它都会显示 can't resolve "proxy.iiith.ac.in "现在我不想使用代理.

所以,我尝试了以下事情。

  • 从系统设置更改 -> ntework -> 使代理无 -> 在系统范围内应用

  • 我更改了/etc/apt/apt.conf.d 文件..

    Acquire::http::proxy "";
    Acquire::https::proxy "";
    Acquire::ftp::proxy "";
    Acquire::socks::proxy "";

但还是不行。

最佳答案

三件事,

1) There are some lines added to environment file in etc so delete these lines like

acquire http_proxy = "proxy.xyz.ac.in"

acquire https_proxy = "proxy.xyz.ac.in"

acquire ftp_proxy = "proxy.xyz.ac.in"

acquire socks_proxy = "proxy.xyz.ac.in"

2) Similarly in apt.conf inetc/apt file same lines need to be deleted if you are not using any proxy.

3) And then in terminal execute following commands

unset http_proxy

unset https_proxy

unset ftp_proxy

unset socks_proxy

它对我有用。

关于ubuntu - 在 ubuntu 中重置 http_proxy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24984600/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com