Score:0

Newwork Problems with apt update

gd flag

When I ran sudo apt update -o Acquire::ForceIPv4=true, apt stucked at this line:

0% [Connecting to archive.ubuntu.com (91.189.91.39)] [Connecting to security.ubuntu.com (91.189.91.39)]

It looks like there is some problem with my network? By the way, I'm in Mainland China. So the network connection is restricted by the GFW. But I've set up proxy:

export http_proxy="${PROXY_HTTP}"
export HTTP_PROXY="${PROXY_HTTP}"

export https_proxy="${PROXY_HTTP}"
export HTTPS_proxy="${PROXY_HTTP}"

And it works well, my ip is in TaiPei:

$ curl cip.cc
IP      : 165.154.226.126
地址    : 加拿大  安大略省  ikano.com

数据二  : 台湾省台北市 | scloud.sg

数据三  : 加拿大安大略奥克维尔

Error message:

Err:4 http://archive.ubuntu.com/ubuntu jammy InRelease
  Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.39) ...
firefly2442 avatar
mk flag
Have you tried switching to a mirror in China? e.g. `https://mirrors.tuna.tsinghua.edu.cn/ubuntu/` You can look in `/etc/apt/sources.list` and `/etc/apt/sources.list.d/` for making changes. I would recommend backing up the file first that way you can always revert if it doesn't work out. Then run the `apt update` command that you listed above again.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.