Skip to content

brew will randomly output "grep: write error: Broken pipe" in the LXC container environment. #21365

@fourdollars

Description

@fourdollars

brew doctor output

$ brew doctor 
grep: write error: Broken pipe
Your system is ready to brew.

Verification

  • I ran brew update twice and am still able to reproduce my issue.
  • My "brew doctor output" above says Your system is ready to brew or a definitely unrelated Tier message.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

$ brew config
grep: write error: Broken pipe
HOMEBREW_VERSION: 5.0.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: bf65f9c19a7a62abcbdac9c30cf3ff844d0fd633
Last commit: 22 hours ago
Branch: stable
Core tap JSON: 06 Jan 01:19 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_BROWSER: /usr/bin/garcon-url-handler
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_DOWNLOAD_CONCURRENCY: 16
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.4.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.4.8/bin/ruby
CPU: octa-core 64-bit haswell
Clang: N/A
Git: 2.39.5 => /bin/git
Curl: 7.88.1 => /bin/curl
Kernel: Linux 6.6.99-08879-gd6e365e8de4e x86_64 GNU/Linux
OS: Debian GNU/Linux 12 (bookworm)
Host glibc: 2.36
Host libstdc++: 6.0.30
/usr/bin/gcc-12: 12.2.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@12: N/A
gcc: N/A
xorg: N/A

What were you trying to do (and why)?

Nothing special. Just using brew.

What happened (include all command output)?

It will randomly output "grep: write error: Broken pipe" when I executes brew.

What did you expect to happen?

There is no "grep: write error: Broken pipe".

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

$ brew doctor 
grep: write error: Broken pipe
Your system is ready to brew.
$ brew bala
grep: write error: Broken pipe
Example usage:
  brew search TEXT|/REGEX/
  brew info [FORMULA|CASK...]
  brew install FORMULA|CASK...
  brew update
  brew upgrade [FORMULA|CASK...]
  brew uninstall FORMULA|CASK...
  brew list [FORMULA|CASK...]

Troubleshooting:
  brew config
  brew doctor
  brew install --verbose --debug FORMULA|CASK

Contributing:
  brew create URL [--no-fetch]
  brew edit [FORMULA|CASK...]

Further help:
  brew commands
  brew help [COMMAND]
  man brew
  https://docs.brew.sh

Error: Invalid usage: Unknown command: brew bala

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions