Installation on debian 10

Hello, I have git cloned the unreal engine source form another machine , then a copied it to the current machine from a usb hard drive.
When I run Setup.sh i get this error:

Registering git hooks... (this will override existing ones!)
./Setup.sh: riga 40: Engine/Build/BatchFiles/Linux/GitDependencies.sh: Permesso negato

I am using Debian 10 Buster.
I already have unreal engine 4.24.3 compiled in another directory, I want to maintain the old version before to compile the new one because if there are problems I can use the old one.

Hi, how did you copy the files?
When you need to copy or move Git repositories, I recommend using tools like rsync to keep the permissions and properties of the files unchanged.
Also I have experienced in the past that copying the files on an intermediate support such as a USB drive, depending on the filesystem of the drive some flags of the files are still changed, but I have not found a solution to this.
To prevent this from happening I suggest you to use a usb drive formatted in a filesystem such as ext4 or, if you can, use rsync for copying via network from one PC to another.