您尚未登录。

#1 2023-04-01 23:33:17

Sergey
会员
注册时间: 2023-04-01
帖子: 3

【已解决】2023四月份镜像文件中archinstall出现attributeerror

Traceback (most recent call last):
File "/usr/bin/archinstall", line 8, in <module> sys.exit(run_as_a_module())
File "/usr/lib/python3.10/site-packages/archinstall/__init__.py",line 312, in run_as_a_module script.execute()
File "/usr/lib/python3.10/site-packages/archinstall/lib/profiles.py",line 195, in execute
  self.spec.loader.exec_module(sys.modules[self.namespace])
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib. bootstrap>", line 241, in _call_with_frames_remoued
File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 293, in <module> config_output
  = ConfigurationOutput(archinstall.arguments)
File "/usr/lib/python3.10/site-packages/archinstall/lib/configuration.py",line 49, in__init__ self.process_config()
File "/usr/lib/python3.10/site-packages/archinstall/lib/configuration.py",line 75, in__process_config
  self._user_credentials['encryption_password'] = self. _config[key].encryption_password
AttributeError: 'NoneType' object has no attribute 'encryption_password'
archinstall 17.80s user 12.68s systen 2% cpu 19:28.75 total
1 root@archiso ~ #
sad
应该是因为NoneType没能找到encryption_password这个属性,有懂Python的大佬看看吗?

最近编辑记录 Sergey (2023-04-02 10:56:30)

离线

#2 2023-04-02 09:08:20

Watermelon.Rei
会员
注册时间: 2021-12-29
帖子: 114

Re: 【已解决】2023四月份镜像文件中archinstall出现attributeerror

没有设置密码?

离线

#3 2023-04-02 09:17:08

Sergey
会员
注册时间: 2023-04-01
帖子: 3

Re: 【已解决】2023四月份镜像文件中archinstall出现attributeerror

它这个密码是磁盘密码,不是root密码,一般不都是可以不填的吗

离线

#4 2023-04-02 10:11:28

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,460
个人网站

Re: 【已解决】2023四月份镜像文件中archinstall出现attributeerror

离线

#5 2023-04-02 10:55:25

Sergey
会员
注册时间: 2023-04-01
帖子: 3

Re: 【已解决】2023四月份镜像文件中archinstall出现attributeerror

Tbh, the easiest way to fix #1704 is to:
nano +74 /usr/lib/python3.10/site-packages/archinstall/lib/configuration.py

- if key == 'disk_encryption':
+ if key == 'disk_encryption' and self._config[key]:
As the patch hasn't been released as a pacman package yet, which is why won't help currently.pacman -Syu archinstall
这个是作者的回复,现在可以标注为已解决了

离线

页脚