相关疑难解决方法(0)

如何将 Ubuntu Server 中的镜像从区域更改为主?

我设置了一个 Lucid Server (10.04),我想将镜像从美国(或任何其他国家/地区)更改为主 Ubuntu 镜像。

例如,我在 sources.list 中的两个第一个条目是:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
Run Code Online (Sandbox Code Playgroud)

在桌面环境中,我会像这样选择主镜像:

软件来源

但是我如何从终端执行此操作,因为我没有安装图形环境!

server command-line software-sources apt-mirror

106
推荐指数
3
解决办法
30万
查看次数

错误 101:尝试更新时网络无法访问

我的 ubuntu 浏览这个正常无法访问任何站点,apt-get update甚至upgrade出现如下所示的错误,这可能是什么?

sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Hit:2 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease
Err:3 http://br.archive.ubuntu.com/ubuntu xenial InRelease                     
  Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80]
Err:4 http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 80]
Err:5 http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Cannot initiate the connection to br.archive.ubuntu.com:80 (2801:82:80ff:8000::5). - connect (101: Network is unreachable) [IP: 2801:82:80ff:8000::5 …
Run Code Online (Sandbox Code Playgroud)

upgrade updates apt

8
推荐指数
1
解决办法
3万
查看次数

Ubuntu 20.04 更新在 in.archive.ubuntu.com 上失败吗

印度位置的 apt-get 更新失败。它无法访问 in.archive.ubuntu.com。

以下是错误:

# apt-get update 
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease                  
Err:3 http://in.archive.ubuntu.com/ubuntu focal InRelease                         
  Cannot initiate the connection to in.archive.ubuntu.com:80 (2403:8940:ffff::f). - connect (101: Network is unreachable) Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
Err:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
  Cannot initiate the connection to in.archive.ubuntu.com:80 (2403:8940:ffff::f). - connect (101: Network is unreachable)
Err:5 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
  Cannot initiate the connection to in.archive.ubuntu.com:80 (2403:8940:ffff::f). - connect (101: Network is unreachable)
Reading package lists... Done …
Run Code Online (Sandbox Code Playgroud)

updates apt

2
推荐指数
1
解决办法
3万
查看次数