Could not symlink bin/2to3–3.11
One of My app uses git-secret. This time I tried to upgrade the app likewise other apps. However my deploying workflow had been broken with this error.
It seems like something conflict.
brew link --overwrite
I tried overwrite python first, I thought removing is something dangerous.
brew link --overwrite python@3.11
However I overwrite python, another similar error occurred.
So I changed overwriting python version to 12.
brew link --overwrite python@3.12
But python 11 error occurred again.
Removing exists
I had to remove link and the error has been changed.
Therefore I removed idle3.11
also.
2to3
pydoc3.11
python3.11, python@3.12…
Final commands
I had to removes more symlinks. I don’t understand why brew unlink python3.xx
can’t solve it.
- name: Install Encrypter
run: |
rm '/usr/local/bin/2to3-3.11' # fix Could not symlink bin/2to3-3.11
rm '/usr/local/bin/2to3-3.12' # fix Could not symlink bin/2to3-3.12
rm /usr/local/bin/2to3 # fix Could not symlink bin/2to3
rm '/usr/local/bin/idle3.11' #fix Could not symlink bin/idle3.11
rm '/usr/local/bin/idle3.12' # fix Could not symlink bin/idle3.12
rm '/usr/local/bin/idle3' # fix Could not symlink bin/idle3
rm '/usr/local/bin/pydoc3.11' # fix Could not symlink bin/pydoc3.11
rm '/usr/local/bin/pydoc3.12' # fix Could not symlink bin/pydoc3.12
rm '/usr/local/bin/pydoc3' # fix Could not symlink bin/pydoc3
rm '/usr/local/bin/python3.11' # fix Could not symlink bin/python3.11
rm '/usr/local/bin/python3.12' # fix Could not symlink bin/python3.12
rm '/usr/local/bin/python3' # fix Could not symlink bin/python3
rm '/usr/local/bin/python3.11-config' # fix Could not symlink bin/python3.11-config
rm '/usr/local/bin/python3.12-config' # fix Could not symlink bin/python3.12-config
rm '/usr/local/bin/python3-config' # fix Could not symlink bin/python3-config
brew install git-secret
I tried to find about python conflict on Github runner repo, but there is no issue.
If you found this post helpful, please give it a round of applause 👏. Explore more iOS-related content in my other posts.