Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
41.08k stars 9.64k forks source link

curl: (22) The requested URL returned error: 401 #13461

Closed yermulnik closed 2 years ago

yermulnik commented 2 years ago

brew config output

HOMEBREW_VERSION: 3.5.2-119-g4103f9d
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4103f9dd0e8b3a8dbef942356dd32e04c8cdb52e
Last commit: 11 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d1945aece64d3c5bbf47d6251311ebfa79f77c04
Core tap last commit: 78 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_AUTO_UPDATE_SECS: 7200
HOMEBREW_BAT: set
HOMEBREW_BAT_CONFIG_PATH: /home/giermulnik/.config/bat/config
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0.0
HOMEBREW_EDITOR: /bin/vim
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_INSTALL_BADGE: ✔
HOMEBREW_MAKE_JOBS: 3
Homebrew Ruby: 2.6.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby
CPU: octa-core 64-bit unknown_0x6_0xa5
Clang: 13.0.1
Git: 2.36.1 => /bin/git
Curl: 7.68.0 => /bin/curl
Kernel: Linux 5.18.3-051803-generic x86_64 GNU/Linux
OS: Ubuntu 20.04.4 LTS (focal)
Host glibc: 2.31
/usr/bin/gcc: 9.4.0
/usr/bin/ruby: 2.7.0
glibc: N/A
gcc@5: N/A
xorg: N/A

brew doctor output

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: Some installed kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
  askgit

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  guile@2
  libelf

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /usr/local/bin/pylint-config
  /home/giermulnik/.cargo/bin/cargo-install-update-config

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libtcp-portmon.a

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  six
  terraform
  elfutils

Warning: /usr/bin occurs before /home/linuxbrew/.linuxbrew/bin in your PATH.
This means that system-provided programs will be used instead of those
provided by Homebrew. Consider setting your PATH so that
/home/linuxbrew/.linuxbrew/bin occurs before /usr/bin. Here is a one-liner:
  echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >> ~/.profile

The following tools exist at both paths:
  systemd-cgls
  fitstopnm
  lzdiff
  more
  gouldtoppm
  pgmtofs
  pnmtorast
  neotoppm
  md5sum
  ppmtoeyuv
  pgmcrater
  gem
  lscpu
  loginctl
  gs
  pgmenhance
  gresource
  lzcmp
  pbmtoplot
  pgmtopbm
  gettext
  nproc
  lispmtopgm
  pgmtexture
  c++filt
  pnmtotiffcmyk
  bzfgrep
  eqn
  setsid
  gdk-pixbuf-pixdata
  rsvg-convert
  ps2pdf14
  b2sum
  fallocate
  ppmtosixel
  ppmnorm
  pi3topbm
  sirtopnm
  pbmtogem
  json_pp
  rletopnm
  aclocal
  rawtoppm
  glib-compile-resources
  dircolors
  pbmtoepsi
  pnmtofiasco
  autoscan
  zipgrep
  umount
  ppmdither
  pnmindex
  psicc
  rake
  pinentry-tty
  pngtopnm
  bzegrep
  objdump
  ppmtoxpm
  yuvtoppm
  glib-compile-schemas
  prlimit
  gtester-report
  rustdoc
  column
  systemd-cgtop
  bzdiff
  asciitopgm
  mpicalc
  ppmcolormask
  gencfu
  ppmtoacad
  colrm
  lzfgrep
  xmllint
  lzmore
  npx
  ilbmtoppm
  p11-kit
  tificc
  derb
  systemd-tty-ask-password-agent
  realpath
  gdbus
  systemd-sysusers
  png-fix-itxt
  msgconv
  xbmtopbm
  ps2ascii
  nm
  ppmhist
  fc-cache
  unzipsfx
  cmuwmtopbm
  xpmtoppm
  findmnt
  rasttopnm
  systemd-run
  znew
  nsenter
  ptargrep
  cpanm
  timedatectl
  fc-match
  pnmtopalm
  pjtoppm
  pbmmake
  pf2afm
  bash
  pbmtocmuwm
  pnmcrop
  factor
  zegrep
  scriptreplay
  soelim
  msgen
  xzcmp
  nnsd
  pgmslice
  renice
  pnminvert
  zeisstopnm
  pgmkernel
  printafm
  sgitopnm
  pnmquant
  msggrep
  fiascotopnm
  getopt
  mount
  tclsh
  gettext.sh
  rtmpdump
  pnmcat
  pnmtojpeg
  pbmreduce
  perlthanks
  systemd-path
  look
  pbmupc
  cjpeg
  pbmtomgr
  ppmtopcx
  pic
  pnmsmooth
  instmodsh
  rustc
  pnmalias
  gemtopbm
  unlz4
  bzcmp
  hipstopgm
  pnmflip
  systemd-ask-password
  taskset
  pnmcut
  libtoolize
  perl
  ri
  ppmmix
  i386
  ipcmk
  udevadm
  pbmtoxbm
  pnmcolormap
  linux32
  dumpsexp
  zless
  rdoc
  fc-validate
  jpegtopnm
  automake
  ppmbrighten
  h2ph
  shuf
  ppmspread
  pnmmontage
  pbmtopi3
  hexdump
  python3
  ppmtomap
  pt
  thinkjettopbm
  setarch
  zmore
  pnmtoddif
  pgmnorm
  lslocks
  pbmtobbnbg
  xzegrep
  captoinfo
  pamdeinterlace
  tifftopnm
  corelist
  groff
  page
  recode-sr-latin
  lsipc
  pbmtoatk
  whereis
  glib-gettextize
  pbmtomacp
  ncursesw6-config
  libnetcfg
  pod2html
  openssl
  bashbug
  ppmtogif
  ifnames
  mcookie
  perlbug
  base32
  lastb
  gsdj
  readelf
  pbmtozinc
  pdf2ps
  pnmtosir
  lzcat
  ppmtompeg
  eps2eps
  pnmsplit
  unshare
  glib-mkenums
  systemd-delta
  pnmtosgi
  pnmpsnr
  rdjpgcom
  pamcut
  autopoint
  xzless
  envsubst
  tic
  pbmtoptx
  resolvectl
  zipsplit
  msgcmp
  perlivp
  h2xs
  runcon
  lzmainfo
  xgettext
  libtool
  gzexe
  giftopnm
  pphs
  sensors
  preconv
  gdbus-codegen
  ptar
  djpeg
  erb
  ppmtopi1
  reset
  kernel-install
  sha224sum
  ybmtopbm
  pnmfile
  setterm
  gsdj500
  pnmtops
  pbmtoepson
  systemd-inhibit
  pbmtext
  st4topgm
  gsnd
  imgtoppm
  gdk-pixbuf-thumbnailer
  tbl
  utmpdump
  fincore
  ppmquantall
  fc-query
  bioradtopgm
  grotty
  pnmtoxwd
  ppmtouil
  infocmp
  anytopnm
  gprof
  ipcrm
  c_rehash
  sldtoppm
  uuidgen
  genrb
  pnmnorm
  size
  msgmerge
  colcrt
  icontopbm
  pnmgamma
  lzless
  pbmtox10bm
  vdir
  ppmfade
  msgexec
  localectl
  pbmclean
  uncompress
  pgmtolispm
  elfedit
  pnmnoraw
  rsync
  zipinfo
  bzip2
  ppmtoicr
  autom4te
  uuidparse
  ps2epsi
  systemd-detect-virt
  numfmt
  ps2pdfwr
  rev
  unlzma
  pbmpscale
  rgb3toppm
  as
  networkctl
  genbrk
  icuinfo
  clear
  ppmtolj
  mtvtoppm
  flock
  ppmdist
  ppmtoneo
  m4
  pbmtopgm
  pnmremap
  bmptoppm
  choom
  toe
  lsmem
  wbmptopbm
  mgrtopbm
  xzmore
  ppmtopgm
  update-mime-database
  pstopnm
  psidtopgm
  xvminitoppm
  logger
  pinentry-curses
  gpgrt-config
  pgmedge
  ppmpat
  addr2line
  zgrep
  wdctl
  lsns
  pnminterp
  ppmmake
  gsettings
  systemd-cat
  ppmshift
  tac
  pbmlife
  nroff
  tclsh8.6
  tabs
  shasum
  npm
  ncurses6-config
  sha512sum
  zip
  winicontoppm
  sbigtopgm
  pnmarith
  msgcomm
  pnmscalefixed
  ppmtoyuv
  nns
  fstopgm
  wrjpgcom
  objcopy
  pngfix
  pnmpaste
  glib-genmarshal
  ipcs
  pbmpage
  pnmpad
  gemtopnm
  lzegrep
  autoupdate
  prove
  pgmnoise
  gettextize
  msginit
  chcon
  journalctl
  fc-list
  pgmoil
  irb
  dir
  trust
  tset
  pnmtorle
  systemd-tmpfiles
  secret-tool
  lslogins
  zdiff
  pamoil
  ld
  sensors-conf-convert
  pamdice
  pod2man
  hostid
  systemd-stdio-bridge
  pgmhist
  xwdtopnm
  ptx
  pinentry
  chrt
  splain
  hmac256
  cpan
  bzmore
  msgunfmt
  pkgdata
  perldoc
  xzgrep
  pnmtofits
  ximtoppm
  xinput
  pnmenlarge
  bunzip2
  ionice
  podchecker
  xmlcatalog
  pnmtopng
  ppmlabel
  pbmmask
  ppmquant
  wall
  ppmdim
  lzgrep
  pl2pm
  dvipdf
  pnmshear
  systemd-socket-activate
  nnslog
  pnmmargin
  pamstretch-gen
  lz4c
  pango-view
  troff
  pnmtotiff
  pinky
  pamfile
  ppmforge
  zipdetails
  pgmbentley
  bzip2recover
  hostnamectl
  msgcat
  systemd-analyze
  zfgrep
  tgatoppm
  palmtopnm
  gencnval
  uconv
  pbmtolj
  bzcat
  zforce
  script
  funzip
  pbmtextps
  pkg-config
  pi1toppm
  brushtopbm
  autoconf
  pbmtonokia
  col
  sha256sum
  python3-config
  encguess
  ppmrelief
  systemd-machine-id-setup
  bzless
  pcxtoppm
  libpng-config
  qrttoppm
  macptopbm
  fc-conflist
  wayland-scanner
  ppmtv
  grog
  linux64
  gzip
  xz
  ppmtoyuvsplit
  tcldocstrip
  ld.bfd
  xzfgrep
  systemd-id128
  ps2ps
  ppmtoleaf
  msgattrib
  lex
  curl
  leaftoppm
  atktopbm
  sed
  lzma
  lz4
  gobject-query
  strip
  x86_64
  wish8.6
  ranlib
  pbmtoybm
  unzip
  cargo
  systemd-umount
  pnmcomp
  pnmconvol
  pango-list
  ps2pdf13
  pydoc3
  rawtopgm
  systemctl
  pod2text
  ps2pdf12
  sha384sum
  xzdiff
  pbmtomda
  fc-pattern
  strings
  pgmramp
  pbmtoicon
  mesg
  makeconv
  bzgrep
  pnmtoplainpnm
  xml2-config
  ul
  msgfmt
  ppmtoilbm
  pgmtoppm
  lsblk
  piconv
  eject
  pbmtoppa
  shred
  pamstack
  autoheader
  systemd-mount
  zipcloak
  libpng16-config
  systemd-notify
  ppmntsc
  systemd-escape
  zipnote
  gendict
  transicc
  fc-scan
  automake-1.16
  gslj
  pamstretch
  pnmrotate
  pnmscale
  pnmhisteq
  flex++
  ppmflash
  pcre-config
  ppmtopict
  mountpoint
  systemd-resolve
  pbmtopsg3
  pbmtog3
  xzcat
  gslp
  ppmcie
  ruby
  busctl
  pod2usage
  pnmtile
  wish
  gdk-pixbuf-csource
  bmptopnm
  stdbuf
  flex
  curl-config
  ps2pdf
  sha1sum
  ppmchange
  gio
  ps2ps2
  fc-cat
  msguniq
  eyuvtoppm
  pbmto10x
  pdf2dsc
  ppmtotga
  pbmtowbmp
  xsubpp
  gio-querymodules
  pnmnlfilt
  last
  ar
  enc2xs
  pnmhistmap
  lz4cat
  ppmtopj
  ppmtorgb3
  libgcrypt-config
  autoreconf
  sputoppm
  truncate
  ppmshadow
  timeout
  gunzip
  pnmdepth
  zcmp
  linkicc
  neqn
  dtplite
  ppmtomitsu
  gtester
  ppmtojpeg
  aclocal-1.16
  411toppm
  yuvsplittoppm
  gapplication
  mdatopbm
  jpegtran
  pbmtoascii
  ngettext
  ppm3d
  gsbj
  jpgicc
  ppmcolors
  grops
  infotocap
  ipptool
  ppmtobmp
  node
  ppmrainbow
  zcat
  msgfilter
  tput
  ptardiff
  unxz
  namei
  spctoppm
  pfbtopfa
  pbmtogo
  dmesg
  ppmtopuzz
  ppmtowinicon
  gpg-error-config
  mkpasswd
  g3topbm

Verification

What were you trying to do (and why)?

> brew upgrade
==> Upgrading 3 outdated packages:
terramate 0.1.7 -> 0.1.8
gping 1.3.1 -> 1.3.2
awscli 2.7.7 -> 2.7.9
==> Downloading https://ghcr.io/v2/homebrew/core/terramate/manifests/0.1.8
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/4b669a4251a9a92eb17e5b0645cf08bf105d3881d4d230152942503f5098af99--terramate-0.1.8.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/terramate/blobs/sha256:b0d38fc4e5e187eeecdb09c6e6c4e1cadb24f03d079bc261c3df4e395cf78715
curl: (22) The requested URL returned error: 401 
Error: terramate: Failed to download resource "terramate"
Download failed: https://ghcr.io/v2/homebrew/core/terramate/blobs/sha256:b0d38fc4e5e187eeecdb09c6e6c4e1cadb24f03d079bc261c3df4e395cf78715
==> Downloading https://ghcr.io/v2/homebrew/core/iputils/manifests/20211215
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/886eb0f196b4c8e7e9de9faf0bb736d7e9f024fa83b6f401ed2d8daee16f8281--iputils-20211215.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/iputils/blobs/sha256:2cd8e8342e42158cbb2483ba6ef8eeb6f1a882d7c0ec2e2877f7fdf44ec15821
curl: (22) The requested URL returned error: 401 
Error: gping: Failed to download resource "iputils"
Download failed: https://ghcr.io/v2/homebrew/core/iputils/blobs/sha256:2cd8e8342e42158cbb2483ba6ef8eeb6f1a882d7c0ec2e2877f7fdf44ec15821
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/manifests/2.7.9
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/10837f67f49673c10580d8a2d740798eb7dda7ebc5be64e7eba59ec08cf2b03f--awscli-2.7.9.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:e5f0685c28a4f3c67a9007ace29bec9b6962a48b687399e39e13db8a0829dc08
curl: (22) The requested URL returned error: 401 
Error: awscli: Failed to download resource "awscli"
Download failed: https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:e5f0685c28a4f3c67a9007ace29bec9b6962a48b687399e39e13db8a0829dc08

What happened (include all command output)?

> brew upgrade
==> Upgrading 3 outdated packages:
terramate 0.1.7 -> 0.1.8
gping 1.3.1 -> 1.3.2
awscli 2.7.7 -> 2.7.9
==> Downloading https://ghcr.io/v2/homebrew/core/terramate/manifests/0.1.8
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/4b669a4251a9a92eb17e5b0645cf08bf105d3881d4d230152942503f5098af99--terramate-0.1.8.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/terramate/blobs/sha256:b0d38fc4e5e187eeecdb09c6e6c4e1cadb24f03d079bc261c3df4e395cf78715
curl: (22) The requested URL returned error: 401 
Error: terramate: Failed to download resource "terramate"
Download failed: https://ghcr.io/v2/homebrew/core/terramate/blobs/sha256:b0d38fc4e5e187eeecdb09c6e6c4e1cadb24f03d079bc261c3df4e395cf78715
==> Downloading https://ghcr.io/v2/homebrew/core/iputils/manifests/20211215
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/886eb0f196b4c8e7e9de9faf0bb736d7e9f024fa83b6f401ed2d8daee16f8281--iputils-20211215.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/iputils/blobs/sha256:2cd8e8342e42158cbb2483ba6ef8eeb6f1a882d7c0ec2e2877f7fdf44ec15821
curl: (22) The requested URL returned error: 401 
Error: gping: Failed to download resource "iputils"
Download failed: https://ghcr.io/v2/homebrew/core/iputils/blobs/sha256:2cd8e8342e42158cbb2483ba6ef8eeb6f1a882d7c0ec2e2877f7fdf44ec15821
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/manifests/2.7.9
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/10837f67f49673c10580d8a2d740798eb7dda7ebc5be64e7eba59ec08cf2b03f--awscli-2.7.9.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:e5f0685c28a4f3c67a9007ace29bec9b6962a48b687399e39e13db8a0829dc08
curl: (22) The requested URL returned error: 401 
Error: awscli: Failed to download resource "awscli"
Download failed: https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:e5f0685c28a4f3c67a9007ace29bec9b6962a48b687399e39e13db8a0829dc08

What did you expect to happen?

Homebrew upgrades packages pending upgrade successfully.

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

`brew upgrade`
MikeMcQuaid commented 2 years ago

Duplicate of https://github.com/Homebrew/brew/issues/13460