-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
OS: macOSawaiting-deploymentCode complete; awaiting deployment and/or deployment in progressCode complete; awaiting deployment and/or deployment in progressbugSomething isn't workingSomething isn't working
Description
Description
When I use brew install cppcheck cpplint include-what-you-use
, I get the error:
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
rm '/usr/local/bin/2to3'
To force the link and overwrite all conflicting files:
brew link --overwrite python@3.9
To list all files that would be deleted:
brew link --overwrite --dry-run python@3.9
Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3
This issue has emerged recently. That command worked well one week ago.
Virtual environments affected
- Ubuntu 16.04
- Ubuntu 18.04
- Ubuntu 20.04
- macOS 10.15
- macOS 11
- Windows Server 2016
- Windows Server 2019
- Windows Server 2022
Image version and build link
Environment: macos-11
Version: 20210831.3
Included Software: https://github.com/actions/virtual-environments/blob/macOS-11/20210831.3/images/macos/macos-11-Readme.md
Image Release: https://github.com/actions/virtual-environments/releases/tag/macOS-11%2F20210831.3
Is it regression?
https://github.com/actions/virtual-environments/releases/tag/macOS-10.15%2F20210814.1
Expected behavior
OK
Actual behavior
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
rm '/usr/local/bin/2to3'
To force the link and overwrite all conflicting files:
brew link --overwrite python@3.9
To list all files that would be deleted:
brew link --overwrite --dry-run python@3.9
Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3
Repro steps
brew install cppcheck cpplint include-what-you-use
Metadata
Metadata
Assignees
Labels
OS: macOSawaiting-deploymentCode complete; awaiting deployment and/or deployment in progressCode complete; awaiting deployment and/or deployment in progressbugSomething isn't workingSomething isn't working