fig icon indicating copy to clipboard operation
fig copied to clipboard

Unable to locate a Java Runtime that supports apt

Open pavanbachu0604 opened this issue 7 months ago • 1 comments

Checks

  • [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • [X] I have run fig doctor in the affected terminal session
  • [X] I have run fig restart and replicated the issue again

Operating system

macOS 14.1.1 (23B81)

Expected behaviour

No error while using git pull --rebase

Actual behaviour

Performing compatibility checks Executing https://repo.fig.io/scripts/apt/install.sh Password: Sorry, try again. Password: Installing repo dependencies The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on installing Java.

Installing Fig repository bash: line 25: /etc/apt/sources.list.d/fig.list: No such file or directory Installing Fig key bash: line 29: gpg: command not found curl: (23) Failed writing body Updating apt The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on installing Java.

Installing Fig The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on installing Java.

Steps to reproduce

curl -fSsL https://fig.io/install-headless.sh | bash; exec $SHELL

Environment

fig-details:
  - 2.17.0
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M1 Pro
  - cores: 10
  - mem: 32.00 GB
os-info:
  - macOS 14.1.1 (23B81)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/pavbachu/workplace/VegaCommunityCDKConstructs/src/VegaCommunityCDKConstructs
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: 073d76bf-2bbe-402a-855f-3ee0dd1f8bad
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.17.0
    - PATH: /Users/pavbachu/.rbenv/shims:/opt/homebrew/opt/openjdk/bin:/Users/pavbachu//.rbenv/shims:/Users/pavbachu/.rbenv/shims:/opt/homebrew/opt/openjdk/bin:/Users/pavbachu/.nvm/versions/node/v18.17.0/bin:/Users/pavbachu//.rbenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/pavbachu/.fig/bin:/Users/pavbachu/.local/bin:/Users/pavbachu/.toolbox/bin:/Users/pavbachu/.toolbox/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.googlecode.iterm2
    - FIG_PID: 15063
    - FIG_SET_PARENT: 073d76bf-2bbe-402a-855f-3ee0dd1f8bad

pavanbachu0604 avatar Nov 15 '23 16:11 pavanbachu0604

Same problem on MacOS 14.1. Did anybody solve it?

RoTorEx avatar Jan 09 '24 08:01 RoTorEx