The root cause of this (still using file://
syntax in the AWS CLI V1's bundled installer's install
script) has been addressed in 1.40.4 on 2025-04-29 via https://github.com/aws/aws-cli/pull/9420. Let us know if you're still seeing the issue with V1 installers published after that date.