Hi and welcome @imushir
When an install fails perhaps remove the previous artifacts to start with a fresh clean system?
How do I uninstall erpnext my server? - #7 by PeterDF
"
Just delete your frappe-bench and bench-repo folders and remove the “frappe” user
"
These notes may help too Administrator's Guide Take 1 - #2 by digipime