Can't create update lock in /usr/local/var/homebrew/locks! Fix permissions by running: code example
Example 1: E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory
sudo killall apt-get
Example 2: homebrew permission
sudo chown -R $(whoami) $(brew --prefix)/*