Locking Failed Issue!

Hello,
I tried to install Git, Heroku, Collectstatic in the terminal but the installation process interrupting then give me a massage “Locking Failed”

I tried couple of solution that I found on websites but they didn’t work.
please help me with this.

Regards,