WSL: Linuxbrew unable to update, install python
When I try to install python3 with linuxbrew, I get the following error message:
alex@ALEXANDERPC:/mnt/c/users/Alexander/Downloads$ brew install python3
Error: Unsupported special dependency :perl
Please report this bug:
https://github.com/Linuxbrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
/home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:123:in parse_symbol_spec' /home/alex/.linuxbrew/Library/Homebrew/compat/dependency_collector.rb:17:inparse_symbol_spec’
/home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:73:in parse_spec' /home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:61:inbuild’
/home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:48:in block in fetch' /home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:48:infetch’
/home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:48:in fetch' /home/alex/.linuxbrew/Library/Homebrew/dependency_collector.rb:38:inadd’
/home/alex/.linuxbrew/Library/Homebrew/software_spec.rb:155:in depends_on' /home/alex/.linuxbrew/Library/Homebrew/formula.rb:1862:inblock in depends_on’
/home/alex/.linuxbrew/Library/Homebrew/formula.rb:1862:in each' /home/alex/.linuxbrew/Library/Homebrew/formula.rb:1862:independs_on’
/home/alex/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb:33:in <class:Openssl>' /home/alex/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb:1:inload_formula’
/home/alex/.linuxbrew/Library/Homebrew/formulary.rb:21:in module_eval' /home/alex/.linuxbrew/Library/Homebrew/formulary.rb:21:inload_formula’
/home/alex/.linuxbrew/Library/Homebrew/formulary.rb:34:in load_formula_from_path' /home/alex/.linuxbrew/Library/Homebrew/formulary.rb:83:inload_file’
/home/alex/.linuxbrew/Library/Homebrew/formulary.rb:74:in klass' /home/alex/.linuxbrew/Library/Homebrew/formulary.rb:70:inget_formula’
/home/alex/.linuxbrew/Library/Homebrew/formulary.rb:207:in factory' /home/alex/.linuxbrew/Library/Homebrew/dependency.rb:32:into_formula’
/home/alex/.linuxbrew/Library/Homebrew/dependency.rb:93:in block in expand' /home/alex/.linuxbrew/Library/Homebrew/dependencies.rb:9:ineach’
/home/alex/.linuxbrew/Library/Homebrew/dependencies.rb:9:in each' /home/alex/.linuxbrew/Library/Homebrew/dependency.rb:80:inexpand’
/home/alex/.linuxbrew/Library/Homebrew/formula.rb:1223:in recursive_dependencies' /home/alex/.linuxbrew/Library/Homebrew/requirement.rb:196:inexpand’
/home/alex/.linuxbrew/Library/Homebrew/formula.rb:1229:in recursive_requirements' /home/alex/.linuxbrew/Library/Homebrew/formula_installer.rb:313:inexpand_requirements’
/home/alex/.linuxbrew/Library/Homebrew/formula_installer.rb:263:in compute_dependencies' /home/alex/.linuxbrew/Library/Homebrew/formula_installer.rb:130:inverify_deps_exist’
/home/alex/.linuxbrew/Library/Homebrew/formula_installer.rb:123:in prelude' /home/alex/.linuxbrew/Library/Homebrew/cmd/install.rb:231:ininstall_formula’
/home/alex/.linuxbrew/Library/Homebrew/cmd/install.rb:93:in block in install' /home/alex/.linuxbrew/Library/Homebrew/cmd/install.rb:93:ineach’
/home/alex/.linuxbrew/Library/Homebrew/cmd/install.rb:93:in install' /home/alex/.linuxbrew/Library/brew.rb:84:in<main>’
When I try to update linuxbrew, I get the following error:
alex@ALEXANDERPC:/mnt/c/users/Alexander/Downloads$ brew update Initialized empty Git repository in /home/alex/.linuxbrew/.git/ remote: Counting objects: 478, done. remote: Compressing objects: 100% (434/434), done. remote: Total 478 (delta 27), reused 320 (delta 17), pack-reused 0 Receiving objects: 100% (478/478), 772.50 KiB | 1.47 MiB/s, done. Resolving deltas: 100% (27/27), done. From https://github.com/Linuxbrew/brew
- [new branch] master -> origin/master fatal: cannot rmdir ‘Library/Formula’: Directory not empty
Any help?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 35 (3 by maintainers)
@sjackman - Yes this fix was in yesterday’ss Windows Insider build (15002).
@domenkozar Join here: https://insider.windows.com/
Then in your Windows 10 VM, open the Windows Store and log in with your Microsoft account (person icon to the left of the search bar at the top-right). After entering your MS account details you can choose to only sign in to the store rather than altering your whole Windows profile to use MS account.
Finally, open Settings, select
Update & Security. ClickAdvanced Settingsat the bottom and finally follow theGet Insider Preview Buildssection.Currently this is only in fast ring.
Yes, when the fix reaches insider builds the fixinbound tag should be moved to fixed.
After updating the elf parsing logic in the lxcore driver, I was able to run
brew test hello. The fix should be out in an insider build soon.No worries, just wanted to double check. Searching for the failure message above I found a related failure that described running
brew updatefirst - https://github.com/Microsoft/BashOnWindows/issues/471#issuecomment-224369880. That seemed to resolve the failure on both native Ubuntu and WSL.Closing this out for now, but please let us know if you hit other issues unique to WSL.