linux – WSL2: linuxbrew vs brew confusion while trying to install aws-vault

I’m tryin to install aws-vault on WSL2 but it has failed; I can’t even get it to print the correct version number even though it says it installed ok. When I run aws-vault --version, I get:

6.3.1-Homebrew

…which makes no sense at all?! Looking for a way to scrap everything and reinstall everything again so that it works.

Full dump of my command history and things I tried while looking for tips on SO, google etc:

brew install aws-vault
sudo apt install linuxbrew-wrapper
apt-get update
brew install aws-vault --fix-missing
clear
sudo apt install linuxbrew-wrapper
date
sudo hwclock -s
date
sudo apt install linuxbrew-wrapper
clear
sudo apt update
sudo apt install linuxbrew-wrapper
clear
brew install aws-vault
brew analytics off
aws-vault --version
sudo apt install linuxbrew-wrapper
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
brew --version
aws-vault --version
which aws-vault
ll /home/linuxbrew/.linuxbrew/bin/
alias aws-vault='/home/linuxbrew/.linuxbrew/bin/aws-vault'
aws-vault --version
unalias aws-vault
aws-vault --version
which linuxbrew
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.profile && echo "eval $($(brew --prefix)/bin/brew shellenv)" >>~/.profile
brew --version
linuxbrew --version
brew install aws-vault
brew reinstall aws-vault
aws-vault --version

terminal – Can not install brew on mac

when i am using

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

or

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

i receive the following situation

USER@MacBook-Air ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R USER:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at 163cee5ce small correcting in README.md
/bin/bash: line 160: /usr/local/bin/brew: No such file or directory
Failed during: /usr/local/bin/brew update --force --quiet
USER@MacBook-Air ~ % 

i don’t know what to do in this situation. My operation system is MacOS Big Sur 11.5.2.

homebrew – tar: Error opening archive: Failed to open when upgrade using brew

When I am using this command to upgrade my macOS big sur:

brew upgrade

shows some package could not be opened log:

==> Installing dependencies for sphinx-doc: gdbm, sqlite and python@3.9
==> Installing sphinx-doc dependency: gdbm
==> Pouring gdbm-1.20.big_sur.bottle.tar.gz
tar: Error opening archive: Failed to open '/Users/dolphin/Library/Caches/Homebrew/downloads/1ba06466fa01d44d117c266b9618127cf798782c736869d87ccfc0bc7cd25f12--gdbm-1.20.big_sur.bottle.tar.gz'
Error: Failure while executing; `tar --extract --no-same-owner --file /Users/dolphin/Library/Caches/Homebrew/downloads/1ba06466fa01d44d117c266b9618127cf798782c736869d87ccfc0bc7cd25f12--gdbm-1.20.big_sur.bottle.tar.gz --directory /private/tmp/d20210715-82868-1ez91q9` exited with 1. Here's the output:
tar: Error opening archive: Failed to open '/Users/dolphin/Library/Caches/Homebrew/downloads/1ba06466fa01d44d117c266b9618127cf798782c736869d87ccfc0bc7cd25f12--gdbm-1.20.big_sur.bottle.tar.gz'

(base)

I am using this command to check the file:

~/Library/Caches/Homebrew/downloads ⌚ 16:53:27
$ ls 1ba06466fa01d44d117c266b9618127cf798782c736869d87ccfc0bc7cd25f12--gdbm-1.20.big_sur.bottle.tar.gz   ‹ruby-2.7.2›
ls: 1ba06466fa01d44d117c266b9618127cf798782c736869d87ccfc0bc7cd25f12--gdbm-1.20.big_sur.bottle.tar.gz: No such file or directory
(base)

could not found the file, what should I do to fix the problem? I have already tried run:

brew cleanup

still not work.

mac – Change version of curl brew uses?

mac – Change version of curl brew uses? – Ask Different

homebrew – brew is not recognized by the terminal

I have recently bought a MacBook. I have been a Windows user so I am unfamiliar with Mac OS.

I have installed brew on my system using the command /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

Now, it seems that it was successfully installed. But when I type “brew” in the terminal, I get:

zsh: command not found: brew

Honestly, I do not know what “zsh” means. Some people say to just add some line to a certain file (I assume it is a configuration file for zsh). I think the file is ~/.zshrc However, there is no such file on my system. How do I access it? should I type vim ~/ .zshrc ? How do I make my system recognize “brew” and all the other programs I would like to install?

Edit: I typed vim ~/ .zshrc in the terminal which opened vim. I then typed “i” in order to edit the file but I get “please type the directory name:”. I wonder what should I type here?

homebrew – Problems starting vnstat installed with brew

After installing vnstat with homebrew:

brew install vnstat

and opening it, i got following error:

Error: Failed to open database "/usr/local/var/db/vnstat/vnstat.db" in read-only mode.
The vnStat daemon should have created the database when started.
Check that it is configured and running. See also "man vnstatd"

It seems, that the daemon is not running.

homebrew – After installing openssh 8.2 via brew, how do I add keys to keychain?

I installed openssh 8.2 via brew install openssh. I added the following to my .profile:

export SSH_AUTH_SOCK=”~/.ssh/agent.$HOST.sock”
ssh-add -l 2>/dev/null >/dev/null
if ( $? -ge 2 ); then
ssh-agent -a “$SSH_AUTH_SOCK” >/dev/null
fi
And then I have to do the following:

ssh-add ~/.ssh/id_ecdsa_sk
Enter passphrase for /Users/myuser/.ssh/id_ecdsa_sk:
Identity added: /Users/myuser/.ssh/id_ecdsa_sk
even though I have the following in my ~/.ssh/config:

Host *
IgnoreUnknown UseKeychain
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ecdsa_sk

(I had to add the IgnoreUnknown bit because the install from brew installs a version that breaks the UseKeychain bit.) But now: how do I wire it up so it adds the key to my keychain?

homebrew – brew gives: “Error: gocryptfs has been disabled because it requires FUSE!” during encfsgui installation

I’m receiving errors while installing pyencfsgui

When I run brew install encfs or brew install encfs I get the message Error: encfs / gocryptfs has been disabled because it requires FUSE!

I’ve installed the osxfuse brew package and rebooted my mac.

After receiving the error message above, I installed the macfuse desktop package and rebooted my mac again.

enter image description here

output of brew config

HOMEBREW_VERSION: 3.1.2-11-gf904d63
ORIGIN: https://github.com/Homebrew/brew
HEAD: f904d63e04b771d9ea2f42dd0523f9bb3f5bb814
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4815f82c119f8f46847f8ddbc6264e02e1a67925
Core tap last commit: 40 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.DEMpKIGHTF/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: octa-core 64-bit haswell
Clang: 10.0 build 1000
Git: 2.31.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.13.6-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1
XQuartz: 2.7.11 => /opt/X11

output of brew list

==> Formulae
adwaita-icon-theme      libatomic_ops           ocaml
ant             libbluray           openblas
aom             libcroco            opencore-amr
aria2               libepoxy            openjdk
atk             libev               openjpeg
autoconf            libevent            openssl@1.1
autoconf-archive        libffi              opus
automake            libgphoto2          p11-kit
bchunk              libicns             p7zip
bdw-gc              libiconv            pango
bison               libid3tag           pcre
boost               libidn2             pcre2
c-ares              libimobiledevice        pidof
cairo               libmikmod           pixman
cmake               libmp3splt          pkg-config
coreutils           libmpc              portmidi
cpulimit            libogg              python
cython              libpcap             python3
docbook             libplist            python@3.8
docbook-xsl         libpng              python@3.9
doxygen             libpsl              readline
encfs               libpthread-stubs        rtmpdump
ffmpeg              librsvg             rubberband
findutils           libsamplerate           ruby
flac                libsndfile          rust
fontconfig          libsoup             sane-backends
freetype            libsoxr             scrcpy
frei0r              libssh2             sdl
fribidi             libtasn1            sdl2
gcc             libtiff             sdl_image
gd              libtool             sdl_mixer
gdbm                libunistring            sdl_net
gdk-pixbuf          libusb              sdl_ttf
gettext             libusb-compat           shared-mime-info
giflib              libusbmuxd          smpeg
git             libuv               snappy
glib                libvorbis           speex
glib-networking         libvpx              sphinx-doc
gmp             libx11              sqlite
gnome-icon-theme        libxau              ssh-copy-id
gnu-getopt          libxcb              tcl-tk
gnu-sed             libxdmcp            tesseract
gnutls              libxext             texi2html
gobject-introspection       libxml2             theora
graphite2           libxrender          unbound
grsync              libyaml             unison
gsettings-desktop-schemas   little-cms2         usbmuxd
gtk+                lzo             util-macros
gtk+3               m4              vala
guile               mad             webp
hardlink-osx            makedepend          wget
harfbuzz            mercurial           wine
hicolor-icon-theme      meson               x264
icu4c               mp3splt             x265
intltool            mpdecimal           xcb-proto
isl             mpfr                xmlto
itstool             mtr             xorgproto
jasper              nasm                xtrans
jemalloc            net-snmp            xvid
jpeg                nettle              xz
lame                nghttp2             yasm
leptonica           ninja
libass              numpy

==> Casks
android-platform-tools  macfuse         retroshare
eloston-chromium    osxfuse         spyder

Is that correct that I don’t have “homebrew/cask” tap after fresh brew instalation?

I just fresh installed MacOS Big Sur.

And then I fresh installed brew.

During brew installation, there was one problem due to unstable network. But after I re-ran it two more times, it’s installed successfully. (it said so).

But, I found out it didn’t have homebrew/cask tap. Is that correct?

The reason why I think it might not be correct because I can not info any cask package.

% brew tap   
homebrew/core

% brew info firefox
Error: No available formula or cask with the name "firefox".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.

homebrew – Is there a way to skip a brew package when upgrading?

When I try to upgrade my brew packages, the composer package keeps throwing an error:

==> Upgrading composer 1.10.13 -> 2.0.11
==> Downloading https://getcomposer.org/download/2.0.11/composer.phar
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/3555b6c6fce103b369f42c5c4f1b567b76bfb71f838b9bdcadddcffc7d279a22--composer.phar
Error: SHA256 mismatch
Expected: eabf2917072096a94679193762501319e621e2b369a4a1256b2c27f4e6984477
  Actual: d6eee0d4637f4bd82bdae098fceda300dcb3ec35bf502604fbe7510933b8f952
    File: /Users/me/Library/Caches/Homebrew/downloads/3555b6c6fce103b369f42c5c4f1b567b76bfb71f838b9bdcadddcffc7d279a22--composer.phar
To retry an incomplete download, remove the file above.

Deleting the package per the suggestion above doesn’t help.

I don’t see an option to skip a package to upgrade with –help but maybe I’m missing something?

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheapest USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Proxyti.com Buy Quality Private Proxies