Macos hdiutil在使用自制桶安装DMG文件时没有响应

Macos hdiutil在使用自制桶安装DMG文件时没有响应,macos,homebrew,homebrew-cask,hdiutil,Macos,Homebrew,Homebrew Cask,Hdiutil,我在MacOS上安装DMG打包应用时遇到了一个奇怪的问题。下面是我所知道的,但我仍然不知道哪里出了问题 我尝试在MacOS(10.13.4)上使用 但它挂起,并具有以下输出 ==> Hbc::Installer#install ==> Printing caveats ==> Hbc::Installer#fetch ==> Satisfying dependencies ==> Downloading ==> Downloading https://inks

我在MacOS上安装DMG打包应用时遇到了一个奇怪的问题。下面是我所知道的,但我仍然不知道哪里出了问题

我尝试在MacOS(10.13.4)上使用

但它挂起,并具有以下输出

==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://inkscape.org/gallery/item/11269/Inkscape-0.92.2-1-x11-10.7-x86_64.dmg
Already downloaded: /Users/hwwu/Library/Caches/Homebrew/Cask/inkscape--0.92.2-1,11269.dmg
==> Downloaded to -> /Users/hwwu/Library/Caches/Homebrew/Cask/inkscape--0.92.2-1,11269.dmg
==> Verifying download
==> Determining which verifications to run for Cask inkscape
==> Checking for verification class Hbc::Verify::Checksum
==> 1 verifications defined
Hbc::Verify::Checksum
==> Running verification of class Hbc::Verify::Checksum
==> Verifying checksum for Cask inkscape
==> SHA256 checksums match
==> Installing Cask inkscape
==> Hbc::Installer#stage
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Hbc::Container::Pkg
==> Checking container class Hbc::Container::Ttf
==> Checking container class Hbc::Container::Otf
==> Checking container class Hbc::Container::Air
==> Checking container class Hbc::Container::Cab
==> Checking container class Hbc::Container::Dmg
==> Executing: ["/usr/bin/hdiutil", "imageinfo", "/Users/hwwu/Library/Caches/Homebrew/Cask/inkscape--0.92.2-1,11269.dmg"]
==> Using container class Hbc::Container::Dmg for /Users/hwwu/Library/Caches/Homebrew/Cask/inkscape--0.92.2-1,11269.dmg
==> Executing: ["/usr/bin/hdiutil", "attach", "-plist", "-nobrowse", "-readonly", "-noidme", "-mountrandom", "/var/tmp/d20180606-25779-z2yt24", "/Users/hwwu/Library/Caches/Homebrew/Cask/inkscape--0.92.2-1,11269.dmg"]
所以我手动尝试了最后一行

/usr/bin/hdiutil attach -verbose -debug -plist -nobrowse -readonly -noidme -mountrandom /var/tmp/ /Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg
它悬挂着,展示着

calling DIHLDiskImageAttach with
mount-type: randomized
drive-options:
force-idme: false
quiet: false
mount-point: file:///var/tmp/
verbose: true
debug: true
read-only: true
agent: hdiutil
skip-idme: true
image-options:
main-url: file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg
2018-06-06 11:14:26.858 hdiutil[27659:45934024] DIHLDiskImageAttach: input dictionary {
    agent = hdiutil;
    debug = 1;
    "drive-options" =     {
    };
    "force-idme" = 0;
    "image-options" =     {
    };
    "main-url" = "file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg";
    "mount-point" = "file:///var/tmp/";
    "mount-type" = randomized;
    quiet = 0;
    "read-only" = 1;
    "skip-idme" = 1;
    verbose = 1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024] DIHLDiskImageAttach: disabling legacy image format attach
2018-06-06 11:14:26.859 hdiutil[27659:45934024] DIHLDiskImageAttach: newImagekeys = {
    "legacy-disabled" = 1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024] DIHLDiskImageAttach: creating DIHelperProxy
2018-06-06 11:14:26.859 hdiutil[27659:45934024] with dictionary: {
    agent = hdiutil;
    debug = 1;
    "drive-options" = <62706c69 73743030 d0080000 00000000 01010000 00000000 00010000 00000000 00000000 00000000 0009>;
    "force-idme" = 0;
    "image-options" = <62706c69 73743030 d101025f 100f6c65 67616379 2d646973 61626c65 6409080b 1d000000 00000001 01000000 00000000 03000000 00000000 00000000 00000000 1e>;
    "main-url" = "file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg";
    "mount-point" = "file:///var/tmp/";
    "mount-type" = randomized;
    operation = DIHelperAttach;
    quiet = 0;
    "read-only" = 1;
    "skip-idme" = 1;
    verbose = 1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024] [DIHelperProxy alloc]
2018-06-06 11:14:26.863 hdiutil[27659:45934024] [DIHelperProxy alloc] returning self 0x7fddcf407ba0, retainCount 1
2018-06-06 11:14:26.863 hdiutil[27659:45934024] DIHLDiskImageAttach: running DIHelperProxy
2018-06-06 11:14:26.864 hdiutil[27659:45934024] [DIHelperProxy performOperationReturning] entry
2018-06-06 11:14:26.864 hdiutil[27659:45934024] [DIHelperProxy performOperationReturning] detaching thread
2018-06-06 11:14:26.865 hdiutil[27659:45934029] [DIHelperProxy workerThread] entry
2018-06-06 11:14:26.865 hdiutil[27659:45934029] [DIHelperProxy workerThread] setting up server
2018-06-06 11:14:26.865 hdiutil[27659:45934029] [DIHelperProxy threadSetupServer] entry
2018-06-06 11:14:26.865 hdiutil[27659:45934029] XPC: created intermediaryConnection connection
2018-06-06 11:14:26.865 hdiutil[27659:45934029] XPC: creating helperconnection connection
使用调用DIHLDiskImageAttach
坐骑类型:随机化
驱动器选项:
强制idme:错误
安静:错
安装点:file:///var/tmp/
详细:正确
调试:正确
只读:true
代理:hdiutil
跳过idme:对
图像选项:
主url:file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg
2018-06-06 11:14:26.858 hdiutil[27659:45934024]DIHLDiskImageAttach:输入字典{
agent=hdiutil;
调试=1;
“驱动器选项”={
};
“强制idme”=0;
“图像选项”={
};
“主url”=”file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg";
“装入点”=“file:///var/tmp/";
“安装类型”=随机化;
安静=0;
“只读”=1;
“跳过idme”=1;
详细=1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024]DIHLDiskImageAttach:禁用传统图像格式附加
2018-06-06 11:14:26.859 hdiutil[27659:45934024]DIHLDiskImageAttach:newImagekeys={
“遗留禁用”=1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024]DIHLDiskImageAttach:创建DIHelperProxy
2018-06-06 11:14:26.859 hdiutil[27659:45934024]和字典:{
agent=hdiutil;
调试=1;
“驱动选项”=;
“强制idme”=0;
“图像选项”=;
“主url”=”file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg";
“装入点”=“file:///var/tmp/";
“安装类型”=随机化;
操作=双辅助转速表;
安静=0;
“只读”=1;
“跳过idme”=1;
详细=1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024][DIHelperProxy alloc]
2018-06-06 11:14:26.863 hdiutil[27659:45934024][DIHelperProxy alloc]返回自我0x7fddcf407ba0,重新计入1
2018-06-06 11:14:26.863 hdiutil[27659:45934024]DIHLDiskImageAttach:运行DIHelperProxy
2018-06-06 11:14:26.864 hdiutil[27659:45934024][DIHelperProxy performOperationReturning]条目
2018-06-06 11:14:26.864 hdiutil[27659:45934024][DIHelperProxy PERFORMATOMERATIONRETURNING]脱螺纹
2018-06-06 11:14:26.865 hdiutil[27659:45934029][DIHelperProxy workerThread]条目
2018-06-06 11:14:26.865 hdiutil[27659:45934029][DIHelperProxy workerThread]设置服务器
2018-06-06 11:14:26.865 hdiutil[27659:45934029][DIHelperProxy threadSetupServer]条目
2018-06-06 11:14:26.865 hdiutil[27659:45934029]XPC:已创建中间连接
2018-06-06 11:14:26.865 hdiutil[27659:45934029]XPC:创建帮助连接
brew-doctor
brew-cask-doctor
均未显示问题迹象。我还禁用了LittleSnitch防火墙。我没有安装反病毒程序。安装其他与DMG相关的软件包都有这个问题。我已经有一段时间没能安装任何东西了。在我看来,这是一个
hdiutil
或系统问题,而不是任何自制错误
sudo
没有帮助,它以某种方式显示“未知UID”

然而,通过双击下载的DMG,它可以正常工作,安装也很好

请帮忙。

叹气

原来我使用的是一个过时的iTerms窗口,其中用户id已经过时
hdiutil
由于此错误的uid而静默失败

铃响的是
sudo
错误的油液。希望读过这个问题的人不要碰到我的问题

calling DIHLDiskImageAttach with
mount-type: randomized
drive-options:
force-idme: false
quiet: false
mount-point: file:///var/tmp/
verbose: true
debug: true
read-only: true
agent: hdiutil
skip-idme: true
image-options:
main-url: file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg
2018-06-06 11:14:26.858 hdiutil[27659:45934024] DIHLDiskImageAttach: input dictionary {
    agent = hdiutil;
    debug = 1;
    "drive-options" =     {
    };
    "force-idme" = 0;
    "image-options" =     {
    };
    "main-url" = "file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg";
    "mount-point" = "file:///var/tmp/";
    "mount-type" = randomized;
    quiet = 0;
    "read-only" = 1;
    "skip-idme" = 1;
    verbose = 1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024] DIHLDiskImageAttach: disabling legacy image format attach
2018-06-06 11:14:26.859 hdiutil[27659:45934024] DIHLDiskImageAttach: newImagekeys = {
    "legacy-disabled" = 1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024] DIHLDiskImageAttach: creating DIHelperProxy
2018-06-06 11:14:26.859 hdiutil[27659:45934024] with dictionary: {
    agent = hdiutil;
    debug = 1;
    "drive-options" = <62706c69 73743030 d0080000 00000000 01010000 00000000 00010000 00000000 00000000 00000000 0009>;
    "force-idme" = 0;
    "image-options" = <62706c69 73743030 d101025f 100f6c65 67616379 2d646973 61626c65 6409080b 1d000000 00000001 01000000 00000000 03000000 00000000 00000000 00000000 1e>;
    "main-url" = "file:///Users/hwwu/Library/Caches/Homebrew/Cask/skype--8.22.0.2.dmg";
    "mount-point" = "file:///var/tmp/";
    "mount-type" = randomized;
    operation = DIHelperAttach;
    quiet = 0;
    "read-only" = 1;
    "skip-idme" = 1;
    verbose = 1;
}
2018-06-06 11:14:26.859 hdiutil[27659:45934024] [DIHelperProxy alloc]
2018-06-06 11:14:26.863 hdiutil[27659:45934024] [DIHelperProxy alloc] returning self 0x7fddcf407ba0, retainCount 1
2018-06-06 11:14:26.863 hdiutil[27659:45934024] DIHLDiskImageAttach: running DIHelperProxy
2018-06-06 11:14:26.864 hdiutil[27659:45934024] [DIHelperProxy performOperationReturning] entry
2018-06-06 11:14:26.864 hdiutil[27659:45934024] [DIHelperProxy performOperationReturning] detaching thread
2018-06-06 11:14:26.865 hdiutil[27659:45934029] [DIHelperProxy workerThread] entry
2018-06-06 11:14:26.865 hdiutil[27659:45934029] [DIHelperProxy workerThread] setting up server
2018-06-06 11:14:26.865 hdiutil[27659:45934029] [DIHelperProxy threadSetupServer] entry
2018-06-06 11:14:26.865 hdiutil[27659:45934029] XPC: created intermediaryConnection connection
2018-06-06 11:14:26.865 hdiutil[27659:45934029] XPC: creating helperconnection connection