for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Sonoma fails to install Rosetta

Open djcristi opened this issue 1 year ago • 13 comments
trafficstars

Description

Rosetta install is stuck on 'Finding Update'

Reproduce

fresh install on sonoma 14.1.2 , docker for mac apple silicon 4.26,

Expected behavior

No response

docker version

Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:04:20 2023
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.26.0 (130397)
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       311b9ff
  Built:            Thu Oct 26 09:08:15 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.25
  GitCommit:        d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
 runc:
  Version:          1.1.10
  GitCommit:        v1.1.10-0-g18a0cb0
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    24.0.7
 Context:    desktop-linux
 Debug Mode: false

Kernel Version: 6.5.11-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 14
 Total Memory: 7.662GiB

Diagnostics ID

a716c20b-5001-4dfc-9236-78c8f2401f27/20231209095854

Additional Info

No response

djcristi avatar Dec 09 '23 10:12 djcristi

i have installed it by running , /usr/sbin/softwareupdate --install-rosetta --agree-to-license but should also work directly from docker triggering the install.

djcristi avatar Dec 09 '23 10:12 djcristi

LOL! me too Screenshot 2023-12-10 at 12 02 00

ghost avatar Dec 10 '23 05:12 ghost

Thanks for the report, @djcristi. Did you also try with any other app needing, or that can run with, Rosetta 2? If so, does the same thing happen when Rosetta isn't installed and you run that app?

MiBiT-Discuss avatar Dec 13 '23 08:12 MiBiT-Discuss

Docker developers interested in this issue can look at the experience formed at orbstack: Automatically installing rosetta fails - stuck in "finding update" #633 . Told to have been fixed.

MiBiT-Discuss avatar Dec 13 '23 08:12 MiBiT-Discuss

Had the same issue today on a new M3 Pro that I just unboxed. Stuck on Finding Update. Solved with running above command

garrettlondon1 avatar Mar 16 '24 04:03 garrettlondon1

Having the same issue, M3 Pro MBP 14"

LvkeHogan avatar Apr 24 '24 20:04 LvkeHogan

The same problem. Solve it by installing Rosetta 2 by hands. Entering softwareupdate --install-rosetta in terminal. Then type 'A' and enter to confirm. The djcristi's comment above is also correct. My reference is this: https://osxdaily.com/2020/12/04/how-install-rosetta-2-apple-silicon-mac/ . So our Macs are able to install Rosetta 2 by hands (or by opening other intel type softwares and the system will ask you to install). The problem is why it will fail when it comes to Docker.

ksDreamer avatar May 02 '24 12:05 ksDreamer

Using both /usr/sbin/softwareupdate --install-rosetta --agree-to-license and softwareupdate --install-rosetta mentioned above gives the following error:

2024-05-19 14:05:00.587 softwareupdate[28817:3372442] Package Authoring Error: 042-41726: Package reference com.apple.pkg.RosettaUpdateAuto is missing installKBytes attribute Install of Rosetta 2 finished successfully

It also says Install of Rosetta 2 finished successfully Is this expected? Can I assume that Rosetta2 has been updated on my system?

agoyalaman avatar May 19 '24 21:05 agoyalaman

Sorry for late reply, the easiest way to confirm whether Rosetta has been installed is by running an Intel app on your M-series Mac.

ksDreamer avatar Jun 26 '24 15:06 ksDreamer

I am having a similar problem. It says it's downloading rosetta when I activate it from the Docker settings (under General), but it seems to never finish... then I click "Not Now" and I get an error "Installing Rosetta: exit status 42". How long is the installation of Rosetta supposed to take? I don't know if this is really a problem or the installation is supposed to take hours.

First

screenshot1

Then

screnshot2

nbro10 avatar Jul 07 '24 15:07 nbro10

if you meet the Rosetta installation issues in docker, try the previous solutions, which manually install Rosetta2 through terminal.

ksDreamer avatar Jul 07 '24 15:07 ksDreamer

@ksDreamer Yes, meanwhile, I had installed rosetta with softwareupdate --install-rosetta --agree-to-license (which took just a few seconds, which suggests that there's really a problem), and then enabling it in Docker did not trigger another installation or dialog. However, one would still expect this issue not to happen in the Docker UI.

nbro10 avatar Jul 07 '24 16:07 nbro10

Had the same issue and @djcristi's response worked for me

VladimirCharkot avatar Jul 17 '24 18:07 VladimirCharkot

Same issue, @djcristi's response worked

theshadowagent avatar Oct 01 '24 07:10 theshadowagent