Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.75k stars 12.44k forks source link

gnupg/gnupg2 installations can get tangled such that an installation of gnupg results in an Error #70775

Closed beej closed 3 years ago

beej commented 3 years ago

brew gist-logs <formula> link OR brew config AND brew doctor output

beejmbp:Cellar beej$ brew config
HOMEBREW_VERSION: 3.0.0
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: ebc7cc36a0e029d58fac8cebd1b5ff583b3fd95b
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: dad80fe46e134a1ac05febc4f7b1e930b538ac3f
Core tap last commit: 86 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.UdRR6ZChvi/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 kabylake
Clang: 10.0 build 1001
Git: 2.20.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_11
macOS: 10.14.6-x86_64
CLT: 10.3.0.0.1.1562985497
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
beejmbp:Cellar beej$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed with `brew diy`.
You should find replacements for the following formulae:
  dirmngr
  gpg-agent

****

What were you trying to do (and why)?

I was trying to install byobu so that I could use it.

What happened (include all command output)?

beejmbp:pubkeys beej$ brew install byobu
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
aerc                      giza                      libxaw                    python@3.9
aida-header               glab                      libxaw3d                  rain
aliddns                   gofumpt                   libxcb                    regipy
alsa-lib                  gojq                      libxcomposite             richmd
ansible@2.9               googletest                libxcursor                rm-improved
arturo                    gopls                     libxdamage                rttr
asroute                   goredo                    libxdmcp                  ruby@2.7
atkmm@2.28                gosec                     libxext                   rustscan
attr                      gost                      libxfixes                 server-go
aws-console               gping                     libxfont                  showkey
aws-rotate-key            grokj2k                   libxft                    shtools
bandit                    grokmirror                libxi                     spack
bit-git                   gtkmm4                    libxinerama               sqlc
blaze                     h2spec                    libxkbfile                strace
box2d                     halide                    libxml++@4                structurizr-cli
bpython                   hblock                    libxml++@5                t-rec
bpytop                    heppdt2                   libxmu                    taskwarrior-tui
cairomm@1.14              hexo                      libxp                     tctl
cargo-audit               ht-rust                   libxpm                    tendermint
cargo-edit                htmltest                  libxrandr                 terracognita
cargo-watch               indicators                libxrender                terraform@0.13
cfn-flip                  infracost                 libxres                   tfsec
cfn-format                inframap                  libxscrnsaver             tgenv
chars                     isl@0.18                  libxshmfence              thrax
checkov                   isort                     libxt                     tm
cherrytree                jpeg-xl                   libxtst                   trec_eval
clash                     jql                       libxv                     tree-sitter
cloudflare-wrangler       json5                     libxvmc                   truffle
cloudformation-guard      k3sup                     libxxf86dga               trunk
coin3d                    kcgi                      libxxf86vm                utf8cpp
commitizen                keptn                     linux-headers             util-macros
condure                   khiva                     logswan                   v2ray
counterfeiter             ko                        lp_solve                  vc
cpplint                   kube-linter               lua@5.3                   vint
crane                     kubecm                    luajit-openresty          vitess
crcany                    kubevela                  luv                       vivid
curlie                    lab                       magic_enum                vsh
cvs-fast-export           ladspa-sdk                markdownlint-cli          vtk@8.2
dasel                     leaf                      massdns                   vulture
device-mapper             libaio                    matplotplusplus           wangle
dnsx                      libbsd                    md4c                      wayland
docui                     libcap                    mermaid-cli               wayland-protocols
dog                       libcap-ng                 mesa-glu                  webify
dotenv-linter             libdmx                    mockery                   x86_64-elf-gdb
dotnet                    libdrm                    mpdecimal                 xbitmaps
dprint                    libfontenc                msc-generator             xcb-proto
driftctl                  libfs                     muffet                    xcb-util
dstask                    libfuse                   ncspot                    xcb-util-cursor
duf                       libgccjit                 nicotine-plus             xcb-util-image
easy-rsa                  libhandy                  node@14                   xcb-util-keysyms
efm-langserver            libice                    nuclei                    xcb-util-renderutil
envoy                     libirecovery              oakc                      xcb-util-wm
evernote2md               libmnl                    ocaml-zarith              xcbeautify
f3d                       libnetfilter-queue        openalpr                  xcinfo
fizz                      libnfnetlink              openjdk@8                 xcprojectlint
fleet-cli                 libnsl                    or-tools                  xdpyinfo
flit                      libpciaccess              osmcoastline              xinput
flow-cli                  libpinyin                 overdrive                 xkeyboardconfig
flux                      libprelude                ox                        xorgproto
fnm                       libpthread-stubs          parliament                xorgrgb
font-util                 librttopo                 pdftilecut                xterm
foreman                   libseccomp                pdm                       xtrans
forge                     libslirp                  phive                     yh
fpart                     libsm                     php@7.4                   ykdl
gallery-dl                libtirpc                  pickle                    youtube-dlc
gcalcli                   libva                     pkger                     youtubedr
gdu                       libvdpau                  postgresql@12             yq@3
git-hound                 libvnc                    prometheus-cpp            zsh-async
gitlint                   libx11                    protoc-gen-go-grpc        zsh-you-should-use
gitql                     libxau                    ptpython
==> Updated Formulae
Updated 4926 formulae.
==> Renamed Formulae
glibmm@2.64 -> glibmm@2.66         gtk+4 -> gtk4                      pangomm@2.42 -> pangomm@2.46
gst-validate -> gst-devtools       now-cli -> vercel-cli              prest -> prestd
==> Deleted Formulae
boost@1.55                gobby                     pgplot                    woboq_codebrowser
boost@1.59                godep                     rmtrash                   xspin
confluent-platform        llvm@6                    scw@1                     xu4
curl-openssl              meson-internal            stlviewer
dtrx                      mysql-connector-c++@1.1   unp64
fmsx                      ori                       unrar

==> Downloading https://homebrew.bintray.com/bottles/coreutils-8.32.mojave.bottle.2.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/10fbad2e35846c7e835cb979b5beb9edf07f3a9742ddcc
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gnu-sed-4.8.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/093f16752e7dfb115c055f20aed090108b94edd47c40f5
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/99707d4dcc731faf980333365a694e9500f2f012f84c0b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/popt-1.18.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.37.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/53bbd14cc27c86c16605e256e7646a1b5656c253abca08
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/s-lang-2.3.2.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/05a3437702d5793c9bcac94151e8614878ca36cb1074ab
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/newt-0.52.21.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1i.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f5a348793735d449d990693ab687049fb11c08ade0b74c
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libevent-2.1.12.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c52ad284f2bbdd512cd0ddd9fe19dd1b7092f7b967f593
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/ncurses-6.2.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1771e0ce821cf8cbe38d0ce8d1843fd559532923222edc
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/utf8proc-2.6.1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/tmux-3.1c_1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/3ba85f3524acbf5e1fb04135fa9b7f2bbdd5d3c8ed9418
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/byobu-5.133.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for byobu: coreutils, gnu-sed, gettext, popt, libpng, s-lang, newt, openssl@1.1, libevent, ncurses, utf8proc and tmux
==> Installing byobu dependency: coreutils
==> Pouring coreutils-8.32.mojave.bottle.2.tar.gz
==> Caveats
Commands also provided by macOS have been installed with the prefix "g".
If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
  PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
==> Summary
🍺  /usr/local/Cellar/coreutils/8.32: 476 files, 8.8MB
==> Installing byobu dependency: gnu-sed
==> Pouring gnu-sed-4.8.mojave.bottle.tar.gz
==> Caveats
GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:

    PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
==> Summary
🍺  /usr/local/Cellar/gnu-sed/4.8: 12 files, 568.1KB
==> Installing byobu dependency: gettext
==> Pouring gettext-0.21.mojave.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/gettext
==> Summary
🍺  /usr/local/Cellar/gettext/0.21: 1,959 files, 19MB
==> Installing byobu dependency: popt
==> Pouring popt-1.18.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/popt/1.18: 11 files, 154.7KB
==> Installing byobu dependency: libpng
==> Pouring libpng-1.6.37.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libpng/1.6.37: 27 files, 1.2MB
==> Installing byobu dependency: s-lang
==> Pouring s-lang-2.3.2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/s-lang/2.3.2: 160 files, 2.9MB
==> Installing byobu dependency: newt
==> Pouring newt-0.52.21.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/newt/0.52.21: 88 files, 324.7KB
==> Installing byobu dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1i.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/beej/.bash_profile

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

For pkg-config to find openssl@1.1 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/openssl@1.1/1.1.1i: 8,067 files, 18.4MB
==> Installing byobu dependency: libevent
==> Pouring libevent-2.1.12.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libevent/2.1.12: 57 files, 1.8MB
==> Installing byobu dependency: ncurses
==> Pouring ncurses-6.2.mojave.bottle.tar.gz
==> Caveats
ncurses is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ncurses first in your PATH, run:
  echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> /Users/beej/.bash_profile

For compilers to find ncurses you may need to set:
  export LDFLAGS="-L/usr/local/opt/ncurses/lib"
  export CPPFLAGS="-I/usr/local/opt/ncurses/include"

For pkg-config to find ncurses you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/ncurses/6.2: 3,913 files, 8.6MB
==> Installing byobu dependency: utf8proc
==> Pouring utf8proc-2.6.1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/utf8proc/2.6.1: 10 files, 712.0KB
==> Installing byobu dependency: tmux
==> Pouring tmux-3.1c_1.mojave.bottle.tar.gz
==> Caveats
Example configuration has been installed to:
  /usr/local/opt/tmux/share/tmux

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/tmux/3.1c_1: 9 files, 851KB
==> Installing byobu
==> Pouring byobu-5.133.mojave.bottle.tar.gz
==> Caveats
Add the following to your shell configuration file:
  export BYOBU_PREFIX=/usr/local
==> Summary
🍺  /usr/local/Cellar/byobu/5.133: 159 files, 661.2KB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /usr/local/Cellar/dirmngr/1.1.1_2... (66 files, 527.4KB)
Removing: /Users/beej/Library/Caches/Homebrew/gdbm--1.18.1_1.mojave.bottle.tar.gz... (203.3KB)
Removing: /usr/local/Cellar/gettext/0.19.8.1... (1,935 files, 16.9MB)
Removing: /usr/local/Cellar/gpg-agent/2.0.30_1... (11 files, 695.5KB)
Removing: /Users/beej/Library/Caches/Homebrew/keychain--2.8.5.tar.bz2... (34KB)
Removing: /Users/beej/Library/Caches/Homebrew/ldns--1.7.1_2.mojave.bottle.tar.gz... (1.2MB)
Removing: /Users/beej/Library/Caches/Homebrew/libcbor--0.7.0.mojave.bottle.tar.gz... (31.6KB)
Removing: /Users/beej/Library/Caches/Homebrew/libfido2--1.5.0.mojave.bottle.tar.gz... (222.8KB)
Removing: /usr/local/Cellar/libusb-compat/0.1.5... (13 files, 93.3KB)
Removing: /Users/beej/Library/Caches/Homebrew/openssh--8.3p1.mojave.bottle.tar.gz... (2.0MB)
Removing: /usr/local/Cellar/openssl/1.0.2a-1... (1,633 files, 12MB)
Removing: /usr/local/Cellar/openssl/1.0.2m... (1,792 files, 12.3MB)
Removing: /usr/local/Cellar/openssl@1.1/1.1.1g... (8,059 files, 18MB)
Removing: /Users/beej/Library/Caches/Homebrew/openssl@1.1--1.1.1g.mojave.bottle.tar.gz... (5.3MB)
Removing: /Users/beej/Library/Caches/Homebrew/python@3.8--3.8.5.mojave.bottle.tar.gz... (16.6MB)
Removing: /Users/beej/Library/Caches/Homebrew/readline--8.0.4.mojave.bottle.tar.gz... (517.6KB)
Removing: /Users/beej/Library/Caches/Homebrew/sqlite--3.33.0.mojave.bottle.tar.gz... (2.0MB)
Removing: /Users/beej/Library/Caches/Homebrew/xz--5.2.5.mojave.bottle.tar.gz... (386.8KB)
Removing: /Users/beej/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz... (9.1MB)
Removing: /Users/beej/Library/Logs/Homebrew/gdbm... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/ldns... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/openssh... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/readline... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/sqlite... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/xz... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/libfido2... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/keychain... (104B)
Removing: /Users/beej/Library/Logs/Homebrew/libcbor... (64B)
Removing: /Users/beej/Library/Logs/Homebrew/openssl@1.1... (64B)
Pruned 3 symbolic links and 58 directories from /usr/local
==> Upgrading 5 dependents:
gnupg 2.2.3 -> 2.2.27, ldns 1.7.1_2 -> 1.7.1_3, libfido2 1.5.0 -> 1.6.0, python@3.8 3.8.5 -> 3.8.7_2, openssh 8.3p1 -> 8.4p1_2
==> Upgrading python@3.8 3.8.5 -> 3.8.7_2 
==> Downloading https://homebrew.bintray.com/bottles/readline-8.1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1ea5a8050482911b319dc3e1436ee03310ba79d75d855d
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.34.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/64729f1390a8379a9c7e6c8579dda0a0c450328868ebeb
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/tcl-tk-8.6.11_1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/23916830afd9e9fb7bf63b0c047f0b2a6f969cb746055d
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/python%403.8-3.8.7_2.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/35c910b0b6ace555dd96dd93a8089eda6f0abd94a07fee
######################################################################## 100.0%
==> Installing dependencies for python@3.8: readline, sqlite and tcl-tk
==> Installing python@3.8 dependency: readline
==> Pouring readline-8.1.mojave.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

For pkg-config to find readline you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/readline/8.1: 48 files, 1.6MB
==> Installing python@3.8 dependency: sqlite
==> Pouring sqlite-3.34.0.mojave.bottle.tar.gz
==> Caveats
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have sqlite first in your PATH, run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> /Users/beej/.bash_profile

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

For pkg-config to find sqlite you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/sqlite/3.34.0: 11 files, 4MB
==> Installing python@3.8 dependency: tcl-tk
==> Pouring tcl-tk-8.6.11_1.mojave.bottle.tar.gz
==> Caveats
tcl-tk is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have tcl-tk first in your PATH, run:
  echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> /Users/beej/.bash_profile

For compilers to find tcl-tk you may need to set:
  export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
  export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"

For pkg-config to find tcl-tk you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/tcl-tk/8.6.11_1: 3,041 files, 51.2MB
==> Installing python@3.8
==> Pouring python@3.8-3.8.7_2.mojave.bottle.tar.gz
==> /usr/local/Cellar/python@3.8/3.8.7_2/bin/python3 -s setup.py --no-user-cfg install --force --verbose 
==> /usr/local/Cellar/python@3.8/3.8.7_2/bin/python3 -s setup.py --no-user-cfg install --force --verbose 
==> /usr/local/Cellar/python@3.8/3.8.7_2/bin/python3 -s setup.py --no-user-cfg install --force --verbose 
==> Caveats
Python has been installed as
  /usr/local/opt/python@3.8/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.8/libexec/bin

You can install Python packages with
  /usr/local/opt/python@3.8/bin/pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

python@3.8 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have python@3.8 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> /Users/beej/.bash_profile

For compilers to find python@3.8 you may need to set:
  export LDFLAGS="-L/usr/local/opt/python@3.8/lib"

For pkg-config to find python@3.8 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/python@3.8/3.8.7_2: 4,498 files, 70MB
Removing: /usr/local/Cellar/python@3.8/3.8.5... (3,583 files, 57.2MB)
==> Upgrading gnupg 2.2.3 -> 2.2.27 
==> Downloading https://homebrew.bintray.com/bottles/adns-1.6.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/7cf73e25044783cd93ecd28e2e8bfb84f0b2fff3343acf
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.2.1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/00fb998dc2abbd09ee9f2ad733ae1adc185924fb01be88
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/bdw-gc-8.0.4_2.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/960f60118f6f5cbf4e04a76e4c2103c7fb446e43e5db08
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3_2.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_2.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/77ca68934e7ed9b9b0b8ce17618d7f08fc5d5a95d7b845
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1d0c8e266acddcebeef3d9f6162d6f7fa0b193f5f71837
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0d14b797dba0e0ab595c9afba8ab7ef9c901b60b4f806b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/guile-3.0.5.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1775232d131525bf77530ab194a4688e1a14804669267e
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.3.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/d56e7ff347b0a4c2c433cd44564dfef74c9f1b237ef913
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.16.0.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/nettle-3.7.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f3fd4302a0084c4be612b8f5d0968a86360bf5a080fa56
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.22.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/4d35cd8fd37b06687b5025354f3a579ab2e36e8ab8bd9b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/c-ares-1.17.1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/jemalloc-5.2.1_1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/d3f6f85e74b08c8c97448e289734df484f884af35cd10c
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libev-4.33.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/nghttp2-1.43.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/cbcac00ca57c0c71e148124ed31cf37abcd28f5adc1156
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/unbound-1.13.0.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a1941e3c48de236e9310547620b1fdf71ec5c07ff8cb6d
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.6.15.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/cd25205fbf27599b4186f8549324a50f045fa680b8c02a
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libgpg-error-1.41.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/9efc83a76395081c43b5619b4cca8deb794187a7e54cf2
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libassuan-2.5.4.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libgcrypt-1.9.1.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/efe02ce4db5308f3973ae8ed25b87741420e083cc8d325
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libksba-1.5.0.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libusb-1.0.24.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/npth-1.6.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/pinentry-1.1.1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gnupg-2.2.27.mojave.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/7250d3b3429e984579c1a1cde3455f63981c3a29d17d23
######################################################################## 100.0%
==> Installing dependencies for gnupg: adns, gmp, bdw-gc, libffi, libtool, libunistring, pkg-config, guile, libidn2, libtasn1, nettle, p11-kit, c-ares, jemalloc, libev, nghttp2, unbound, gnutls, libgpg-error, libassuan, libgcrypt, libksba, libusb, npth and pinentry
==> Installing gnupg dependency: adns
==> Pouring adns-1.6.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/adns/1.6.0: 14 files, 607.6KB
==> Installing gnupg dependency: gmp
==> Pouring gmp-6.2.1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/gmp/6.2.1: 21 files, 3.2MB
==> Installing gnupg dependency: bdw-gc
==> Pouring bdw-gc-8.0.4_2.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/bdw-gc/8.0.4_2: 69 files, 1.5MB
==> Installing gnupg dependency: libffi
==> Pouring libffi-3.3_2.mojave.bottle.tar.gz
==> Caveats
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

For compilers to find libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"
  export CPPFLAGS="-I/usr/local/opt/libffi/include"

For pkg-config to find libffi you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/libffi/3.3_2: 17 files, 503.9KB
==> Installing gnupg dependency: libtool
==> Pouring libtool-2.4.6_2.mojave.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺  /usr/local/Cellar/libtool/2.4.6_2: 71 files, 3.7MB
==> Installing gnupg dependency: libunistring
==> Pouring libunistring-0.9.10.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libunistring/0.9.10: 54 files, 4.4MB
==> Installing gnupg dependency: pkg-config
==> Pouring pkg-config-0.29.2_3.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 623.6KB
==> Installing gnupg dependency: guile
==> Pouring guile-3.0.5.mojave.bottle.tar.gz
==> Caveats
Guile libraries can now be installed here:
    Source files: /usr/local/share/guile/site/3.0
  Compiled files: /usr/local/lib/guile/3.0/site-ccache
      Extensions: /usr/local/lib/guile/3.0/extensions

Add the following to your .bashrc or equivalent:
  export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
  export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
  export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
==> Summary
🍺  /usr/local/Cellar/guile/3.0.5: 834 files, 56.7MB
==> Installing gnupg dependency: libidn2
==> Pouring libidn2-2.3.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libidn2/2.3.0: 70 files, 719.7KB
==> Installing gnupg dependency: libtasn1
==> Pouring libtasn1-4.16.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/4.16.0: 60 files, 388.3KB
==> Installing gnupg dependency: nettle
==> Pouring nettle-3.7.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/nettle/3.7: 89 files, 2.5MB
==> Installing gnupg dependency: p11-kit
==> Pouring p11-kit-0.23.22.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/p11-kit/0.23.22: 63 files, 2.9MB
==> Installing gnupg dependency: c-ares
==> Pouring c-ares-1.17.1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/c-ares/1.17.1: 85 files, 548KB
==> Installing gnupg dependency: jemalloc
==> Pouring jemalloc-5.2.1_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/jemalloc/5.2.1_1: 16 files, 1.9MB
==> Installing gnupg dependency: libev
==> Pouring libev-4.33.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libev/4.33: 12 files, 446.1KB
==> Installing gnupg dependency: nghttp2
==> Pouring nghttp2-1.43.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/nghttp2/1.43.0: 24 files, 2.6MB
==> Installing gnupg dependency: unbound
==> Pouring unbound-1.13.0.mojave.bottle.tar.gz
==> Caveats
To have launchd start unbound now and restart at startup:
  sudo brew services start unbound
==> Summary
🍺  /usr/local/Cellar/unbound/1.13.0: 57 files, 5.3MB
==> Installing gnupg dependency: gnutls
==> Pouring gnutls-3.6.15.mojave.bottle.tar.gz
==> Caveats
If you are going to use the Guile bindings you will need to add the following
to your .bashrc or equivalent in order for Guile to find the TLS certificates
database:
  export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
==> Summary
🍺  /usr/local/Cellar/gnutls/3.6.15: 1,250 files, 10.7MB
==> Installing gnupg dependency: libgpg-error
==> Pouring libgpg-error-1.41.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libgpg-error/1.41: 27 files, 944.7KB
==> Installing gnupg dependency: libassuan
==> Pouring libassuan-2.5.4.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libassuan/2.5.4: 17 files, 472.2KB
==> Installing gnupg dependency: libgcrypt
==> Pouring libgcrypt-1.9.1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libgcrypt/1.9.1: 23 files, 2.9MB
==> Installing gnupg dependency: libksba
==> Pouring libksba-1.5.0.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libksba/1.5.0: 18 files, 450.1KB
==> Installing gnupg dependency: libusb
==> Pouring libusb-1.0.24.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/libusb-1.0.0.dylib
Target /usr/local/lib/libusb-1.0.0.dylib
already exists. You may want to remove it:
  rm '/usr/local/lib/libusb-1.0.0.dylib'

To force the link and overwrite all conflicting files:
  brew link --overwrite libusb

To list all files that would be deleted:
  brew link --overwrite --dry-run libusb

Possible conflicting files are:
/usr/local/lib/libusb-1.0.0.dylib
==> Summary
🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 484.6KB
==> Installing gnupg dependency: npth
==> Pouring npth-1.6.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/npth/1.6: 11 files, 71.7KB
==> Installing gnupg dependency: pinentry
==> Pouring pinentry-1.1.1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/pinentry/1.1.1: 12 files, 201.2KB
==> Installing gnupg
==> Pouring gnupg-2.2.27.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/gnupg/2.2.27: 140 files, 11.3MB
Removing: /usr/local/Cellar/gnupg2/2.0.30_2... (91 files, 3.7MB)
Error: Not a directory @ dir_s_rmdir - /usr/local/Cellar/gnupg2
beejmbp:pubkeys beej$ ls -l /usr/local/Cellar/gnupg2
lrwxr-xr-x  1 beej  admin  5 Nov 28  2017 /usr/local/Cellar/gnupg2 -> gnupg
beejmbp:Cellar beej$ brew info gnupg
gnupg: stable 2.2.27 (bottled)
GNU Pretty Good Privacy (PGP) package
https://gnupg.org/
/usr/local/Cellar/gnupg/2.2.3 (133 files, 10.3MB)
  Poured from bottle on 2017-11-28 at 16:26:44
/usr/local/Cellar/gnupg2/2.2.3 (133 files, 10.3MB)
  Poured from bottle on 2017-11-28 at 16:26:44
/usr/local/Cellar/gnupg2/2.2.3 (133 files, 10.3MB)
  Poured from bottle on 2017-11-28 at 16:26:44
/usr/local/Cellar/gnupg/2.2.27 (140 files, 11.3MB) *
  Poured from bottle on 2021-02-09 at 09:35:26
/usr/local/Cellar/gnupg2/2.2.27 (140 files, 11.3MB)
  Poured from bottle on 2021-02-09 at 09:35:26
/usr/local/Cellar/gnupg2/2.2.27 (140 files, 11.3MB)
  Poured from bottle on 2021-02-09 at 09:35:26
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gnupg.rb
License: GPL-3.0-or-later
==> Dependencies
Build: pkg-config ✔
Required: adns ✔, gettext ✔, gnutls ✔, libassuan ✔, libgcrypt ✔, libgpg-error ✔, libksba ✔, libusb ✔, npth ✔, pinentry ✔
==> Analytics
install: 88,769 (30 days), 267,096 (90 days), 724,760 (365 days)
install-on-request: 81,850 (30 days), 243,724 (90 days), 646,503 (365 days)
build-error: 0 (30 days)

What did you expect to happen?

The installation to have completed without Error.

FYI: There are warning lines from brew doctor and I'll address them after a required reboot, but it would have been troublesome to fill out this template again because I didn't get to that part until the end. Sorry.

Step-by-step reproduction instructions (by running brew commands)

Install gnupg and gnupg2 versions in the order I did

SMillerDev commented 3 years ago

gnupg is the same formula as gnupg2. How did you manage to get the gnupg2 formula installed?

beej commented 3 years ago

How did you manage to get the gnupg2 formula installed?

I don't know. As you can see, I've been using Homebrew for some time. I only use the brew command seldomly, though, so don't remember what triggered the installation. I highly doubt I installed it manually.

Is there some log file I can check to answer your question?

Mythobeast commented 3 years ago

I installed gnupg today, and it auto-upgraded Python 3.7 to 3.9. This broke all of the links for my virtual environments. Is this related?

Bo98 commented 3 years ago

No, that'll just be because the latest version of gnupg depends on Python 3.9 rather than 3.7 - so an upgrade was required.

The virtual environment link issue is known, but not easily fixable (I recommend pyenv for virtual environments). But for major updates like 3.7 -> 3.9, you should be reinstalling all pip packages anyway since old installs will be incompatible, no matter how you install Python - there's a python@3.7 formula if you really need it though.

BrewTestBot commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

beej commented 3 years ago

How did you manage to get the gnupg2 formula installed?

Is there some log file I can check to answer your question?

I'd still love an answer

carlocab commented 3 years ago

You could've had HOMEBREW_NO_INSTALL_CLEANUP set at some point, which caused your old gnupg2 installs to not get cleaned up with brew {install,upgrade,cleanup}. Then, because they were never cleaned up, the existing gnupg2 directories confused brew after gnupg2 was renamed to gnupg in https://github.com/Homebrew/homebrew-core/commit/71bc445f09a1278b891fcf00b50996eaa1d31294.

Just a guess though; who knows what happened there.

beej commented 3 years ago

Apparently my commenting doesn't reopen this.

I don't see the option to reopen this manually in the iPhone app.

Are special bits needed to do it or am I just being more blind than usual?