bin456789/reinstall

在aws亚马逊云中的Debian系统里重装提示python2的密码模块问题

Closed this issue · 1 comments

原来的系统:Debian10
要安装的系统:Debian12
遇到的问题:截图或者登录 SSH 获取日志 /reinstall.log

***** MOD ALPINE INITRD *****
52864 blocks
https://raw.githubusercontent.com/bin456789/reinstall/main/trans.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  143k  100  143k    0     0   165k      0 --:--:-- --:--:-- --:--:--  165k
https://raw.githubusercontent.com/bin456789/reinstall/main/alpine-network.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9391  100  9391    0     0  27702      0 --:--:-- --:--:-- --:--:-- 27620
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'mksalt'
Error: Line 1875 return 1
        crypted=$(python2 -c "import crypt; print(crypt.crypt('$password', crypt.mksalt(crypt.METHOD_SHA512)))")

手动把脚本里python2改成python3就才可以正常运行

感谢反馈,已修复