Comments (7)
Have a check of
Lines 222 to 254 in 3d2b88b
Typical flow would be /usr/bin/sudo -v && /usr/bin/sudo -l mkdir
from install.
Okay I run that it asked my password and then get stuck here is my script
#!/bin/bash
have_sudo_access() {
if [[ ! -x "/usr/bin/sudo" ]]
then
return 1
fi
local -a SUDO=("/usr/bin/sudo")
if [[ -n "${SUDO_ASKPASS-}" ]]
then
SUDO+=("-A")
elif [[ -n "${NONINTERACTIVE-}" ]]
then
SUDO+=("-n")
fi
if [[ -z "${HAVE_SUDO_ACCESS-}" ]]
then
if [[ -n "${NONINTERACTIVE-}" ]]
then
"${SUDO[@]}" -l mkdir &>/dev/null
else
"${SUDO[@]}" -v && "${SUDO[@]}" -l mkdir &>/dev/null
fi
HAVE_SUDO_ACCESS="$?"
fi
if [[ -n "${HOMEBREW_ON_MACOS-}" ]] && [[ "${HAVE_SUDO_ACCESS}" -ne 0 ]]
then
abort "Need sudo access on macOS (e.g. the user ${USER} needs to be an Administrator)!"
fi
return "${HAVE_SUDO_ACCESS}"
}
have_sudo=$(have_sudo_access)
echo "Response $have_sudo"
from install.
If I put the wrong password I get re-prompted
from install.
I found the problem is the -l in line 243 of the installer
Stuck
"${SUDO[@]}" -v && "${SUDO[@]}" -l mkdir &>/dev/null
No Stuck
"${SUDO[@]}" -v && "${SUDO[@]}" mkdir &>/dev/null
from install.
I downloaded the installation script fix the -l and try again still getting stuck
from install.
If you need more help: please open a discussion.
from install.
I just have Debian Trixie system (Testing branch of Debian 12)
FWIW, the prompt works fine in a docker run -it debian:testing
container. It might help to see if the issue happens on a proper fresh install rather than a container.
osalbahr@ad93086274c7:~$ brew dr
Your system is ready to brew.
osalbahr@ad93086274c7:~$ brew config
HOMEBREW_VERSION: 4.1.25
ORIGIN: https://github.com/Homebrew/brew
HEAD: c32bd1c7cc0c3b1b914845bddfeda53f4d877a3f
Last commit: 8 days ago
Core tap JSON: 15 Dec 09:56 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 3.1.4 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: quad-core 64-bit skylake
Clang: N/A
Git: 2.43.0 => /bin/git
Curl: 8.4.0 => /bin/curl
Kernel: Linux 6.5.11-linuxkit x86_64 GNU/Linux
OS: Debian GNU/Linux trixie/sid
Host glibc: 2.37
/usr/bin/gcc: 13.2.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A
from install.
Related Issues (20)
- Cannot install via .pkg installer HOT 1
- README lacks any uninstall options documentation HOT 8
- Stuck at Installing homebrew HOT 2
- Install .pkg from terminal ? HOT 2
- uninstall warning HOT 1
- Brew install fails - sorbet.rb:4:in `require': cannot load such file -- sorbet-runtime (LoadError) HOT 5
- [performance] git fetch/clone entire repo (70Mb) vs single commit (3Mb) --depth 1 HOT 1
- Don't checkout Homebrew/brew `master` for non-developers HOT 2
- Homebrew package installer does not work with Xcode alone HOT 2
- All packages from 4.1.23 and up are unnotarized HOT 4
- Install script doesn't detect arm64 for M3 Pro MacBook Pro HOT 3
- Warning: /opt/homebrew/bin is not in PATH during Homebrew Installation HOT 1
- Installation fails on Linux with snap installed curl HOT 3
- Unable to install because a remote branch was renamed or deleted HOT 3
- I can't install home-brew HOT 3
- Cannot install homebrew on iOS 11 HOT 1
- Brew update on clean M2 MacOS .pkg install prints "fatal: cannot force update the branch 'master' checked out at '/opt/homebrew'" HOT 4
- install.sh should use /usr/bin/stat not stat (minor) HOT 3
- Administrator Password HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install.