darling icon indicating copy to clipboard operation
darling copied to clipboard

Cannot attatch some dmg files

Open rosostolato opened this issue 4 years ago • 6 comments

Expected Result Install Sublime Text using their dmg file: hdiutil attach sublime.dmg

I tried other apps also, I could mount some but others I couldn't.

Actual Result

Darling [~/Downloads]$ hdiutil attach sublime.dmg 
Will pass /home/rosostolato/.darling/Volumes/sublime
Skipping partition of type Primary GPT Header
Skipping partition of type Primary GPT Table
Skipping partition of type Apple_Free
Using partition #3 of type Apple_HFS
Error: Unexpected EOF from readRun

Possible reasons:
1) The file is corrupt.
2) The file is not really a DMG file, although it resembles one.
3) There is a bug in darling-dmg.

Steps To Reproduce Download image and try to mount. Link to download: https://download.sublimetext.com/Sublime%20Text%20Build%203211.dmg

System Information I'm using Arch Linux Kernel 5.10.34-1-lts (kernel 5.12 is not building) Darling | e1756ec2770e26a9eba49c99f666b60060eaa619 |

rosostolato avatar May 06 '21 15:05 rosostolato

I have a question also: is darling already supporting GUI applications?

rosostolato avatar May 06 '21 15:05 rosostolato

Thanks for the bug report. Looks like a case darling-dmg doesn't handle yet.

Regard GUI support: yes, Darling supports basic GUI applications, but most apps don't fall under the category of "basic".

facekapow avatar May 22 '21 19:05 facekapow

It also fails with the same error with https://www.macterm.net/updates/macterm-4.1.0.dmg

TheBrokenRail avatar May 26 '21 14:05 TheBrokenRail

I got exact same errors in three different applications (dmg files).

YuanTian1991 avatar Dec 02 '21 21:12 YuanTian1991

Bro you can try to use dmg2img to avoid attaching dmgs in the darling shell. Take which image you have uploaded as an example. Input dmg2img /path/to/sublime.dmg /path/to/sublime.img in the linux terminal, then mount it and copy *.app folder to any path you like (out of the image). But I think we'd better pray for the bug's fixed as quicker as possible.

CrazyMan0028 avatar Mar 06 '22 13:03 CrazyMan0028

Another .dmg file affected by this issue is the one from Adobe XD: https://creativecloud.adobe.com/apps/download/xd

$ darling shell
Darling [/Volumes/SystemRoot/home/myuser/Downloads]$ hdiutil attach XD_Installer.dmg 
Will pass /home/myuser/.darling/Volumes/XD_Installer
Skipping partition of type Apple_partition_map
Using partition #1 of type Apple_HFS
Error: Unexpected EOF from readRun

Possible reasons:
1) The file is corrupt.
2) The file is not really a DMG file, although it resembles one.
3) There is a bug in darling-dmg.

saulotoledo avatar Sep 22 '22 16:09 saulotoledo

It's very frustrating for me not to install any app at all, this error keeps poping up each time i want to install, I tried installling GitHub Desktop https://central.github.com/deployments/desktop/desktop/latest/darwin

Darling [/Volumes/SystemRoot/home/nicholas]$ hdiutil attach ~/Downloads/SublimeText.dmg
Will pass /home/nicholas/.darling/Volumes/SublimeText
Skipping partition of type Primary GPT Header
Skipping partition of type Primary GPT Table
Skipping partition of type Apple_Free
Using partition #3 of type Apple_HFS
Error: Unexpected EOF from readRun

Possible reasons:
1) The file is corrupt.
2) The file is not really a DMG file, although it resembles one.
3) There is a bug in darling-dmg.

NICHOLAS-AGBO avatar Nov 06 '22 21:11 NICHOLAS-AGBO

@rosostolato @TheBrokenRail @YuanTian1991 @saulotoledo @NICHOLAS-AGBO Please try again with the latest version.

mrolappe avatar Nov 16 '22 09:11 mrolappe

我也遇到了同样的问题,我的是ubuntu22.10 我的解决方式是在运行make和make install的时候加上sudo,并且在运行darling shell的时候也执行sudo就ok了

FunArtisanPai avatar Dec 04 '22 03:12 FunArtisanPai