bin456789 / reinstall

一键DD/重装脚本 (One-click reinstall OS on VPS)
GNU General Public License v3.0
2.87k stars 477 forks source link

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

Closed xkatld closed 1 month ago

xkatld commented 1 month ago

原来的系统: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就才可以正常运行

bin456789 commented 1 month ago

感谢反馈,已修复