您尚未登录。

#1 2021-07-12 16:18:10

huahuapro
会员
注册时间: 2021-03-20
帖子: 39

用archinstall安装出现的奇怪问题

Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
Could not fetch an active mirror-list: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1129)>
Selecting mirror region require a least one region to be given as an option.
^CTraceback (most recent call last):
  File "/usr/bin/archinstall", line 33, in <module>
    sys.exit(load_entry_point('archinstall==2.2.0', 'console_scripts', 'archinstall')())
  File "/usr/lib/python3.9/site-packages/archinstall/__init__.py", line 87, in run_as_a_module
    script.execute()
  File "/usr/lib/python3.9/site-packages/archinstall/lib/profiles.py", line 161, in execute
    self.spec.loader.exec_module(sys.modules[self.namespace])
  File "<frozen importlib._bootstrap_external>", line 855, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/archinstall/examples/guided.py", line 436, in <module>
    ask_user_questions()
  File "/usr/lib/python3.9/site-packages/archinstall/examples/guided.py", line 46, in ask_user_questions
    archinstall.arguments['mirror-region'] = archinstall.select_mirror_regions(archinstall.list_mirrors())
  File "/usr/lib/python3.9/site-packages/archinstall/lib/mirrors.py", line 86, in list_mirrors
    response = urllib.request.urlopen(url)
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.9/http/client.py", line 1253, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1299, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1248, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1008, in _send_output
    self.send(msg)
  File "/usr/lib/python3.9/http/client.py", line 948, in send
    self.connect()
  File "/usr/lib/python3.9/http/client.py", line 1422, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
KeyboardInterrupt

我前两天还可以安装的,忽然今天出现这样的报错。
求助,谢谢!


我是小白,请关照。

离线

#2 2021-07-12 22:49:56

WeepingDogel
狗狗
所在地: 狗窝
注册时间: 2021-07-10
帖子: 7
个人网站

Re: 用archinstall安装出现的奇怪问题

请问是执行什么操作出现的

离线

#3 2021-07-13 16:41:23

千玄子
会员
所在地: 中国上海
注册时间: 2019-05-28
帖子: 84
个人网站

Re: 用archinstall安装出现的奇怪问题

archinstall 是根据地区来获取源列表的,所以你要先确定你 region

这也是你的报错信息里写的

Selecting mirror region require a least one region to be given as an option.

相关代码片段

user_interaction.py

def select_mirror_regions(mirrors, show_top_mirrors=True):
...
raise RequirementError("Selecting mirror region require a least one region to be given as an option.")

mirrors.py

def filter_mirrors_by_region(regions, destination='/etc/pacman.d/mirrorlist', sort_order=["https", "http"], *args, **kwargs) -> Union[bool, bytes]:
...
region_list = []
	for region in regions.split(','):
		region_list.append(f'country={region}')
	response = urllib.request.urlopen(urllib.request.Request(f"https://archlinux.org/mirrorlist/?{'&'.join(region_list)}&protocol=https&protocol=http&ip_version=4&ip_version=6&use_mirror_status=on'", headers={'User-Agent': 'ArchInstall'}))
...

探索未知使人迷醉

离线

#4 2021-07-14 11:23:00

huahuapro
会员
注册时间: 2021-03-20
帖子: 39

Re: 用archinstall安装出现的奇怪问题

WeepingDogel 说:

请问是执行什么操作出现的

就是執行archinstall之後出現的。


我是小白,请关照。

离线

#5 2021-07-14 12:58:50

huahuapro
会员
注册时间: 2021-03-20
帖子: 39

Re: 用archinstall安装出现的奇怪问题

千玄子 说:

archinstall 是根据地区来获取源列表的,所以你要先确定你 region

这也是你的报错信息里写的

Selecting mirror region require a least one region to be given as an option.

相关代码片段

user_interaction.py

def select_mirror_regions(mirrors, show_top_mirrors=True):
...
raise RequirementError("Selecting mirror region require a least one region to be given as an option.")

mirrors.py

def filter_mirrors_by_region(regions, destination='/etc/pacman.d/mirrorlist', sort_order=["https", "http"], *args, **kwargs) -> Union[bool, bytes]:
...
region_list = []
	for region in regions.split(','):
		region_list.append(f'country={region}')
	response = urllib.request.urlopen(urllib.request.Request(f"https://archlinux.org/mirrorlist/?{'&'.join(region_list)}&protocol=https&protocol=http&ip_version=4&ip_version=6&use_mirror_status=on'", headers={'User-Agent': 'ArchInstall'}))
...

請問具體怎麼操作的呢?謝謝。


我是小白,请关照。

离线

#6 2021-07-14 16:16:00

千玄子
会员
所在地: 中国上海
注册时间: 2019-05-28
帖子: 84
个人网站

Re: 用archinstall安装出现的奇怪问题

我没有使用过 archinstall,而且也没有看到你具体的输入,无法做出判断,我建议你先检查 region 的格式有没有问题

正常安装我们是 ln -sf /usr/share/zoneinfo/Region/City /etc/localtime 这样来指定 timezone 的


探索未知使人迷醉

离线

#7 2021-07-14 19:33:57

huahuapro
会员
注册时间: 2021-03-20
帖子: 39

Re: 用archinstall安装出现的奇怪问题

千玄子 说:

我没有使用过 archinstall,而且也没有看到你具体的输入,无法做出判断,我建议你先检查 region 的格式有没有问题

正常安装我们是 ln -sf /usr/share/zoneinfo/Region/City /etc/localtime 这样来指定 timezone 的

謝謝,回頭試一試。


我是小白,请关照。

离线

#8 2021-07-31 13:40:01

WeepingDogel
狗狗
所在地: 狗窝
注册时间: 2021-07-10
帖子: 7
个人网站

Re: 用archinstall安装出现的奇怪问题

huahuapro 说:
WeepingDogel 说:

请问是执行什么操作出现的

就是執行archinstall之後出現的。


我也没有使用过 archinstall , 一般我们都是跟着 Arch Wiki 上的手动安装指南进行安装的...

 ln -sf /usr/share/zoneinfo/Region(地区名)/City(城市名) /etc/localtime 

Installation guide (简体中文) - ArchWiki

离线

页脚