dpkg-query -L 和 dpkg -c?

dpkg-query -L 和 dpkg -c?

我正在安装自己的软件包,发现安装失败并显示以下消息:

dpkg: error processing archive io.c0ldra1n.classiccover_0.0.7-443+debug_iphoneos-arm.deb (--install):
 unable to create '/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib.bundle/C.dpkg-new'
(while processing './Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib.bundle/C'): No such file or directory

所以我查看了目录,运行 dpkg-query -L 来检查实际安装的内容。

/.
/Library
/Library/Application Support
/Library/Application Support/ClassicCover
/Library/Application Support/ClassicCover/ClassicCover.bundle
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/LOU-EB-wT9-view-aob-HL-njf.nib@
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/pVI-TE-B7r-view-ySh-E6-Ils.nib
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/albumTracksViewController.nib
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/Info.plist
/Library/MobileSubstrate
/Library/MobileSubstrate/DynamicLibraries
/Library/MobileSubstrate/DynamicLibraries/ClassicCover.dylib
/Library/MobileSubstrate/DynamicLibraries/ClassicCover.plist

在这里我注意到原始文件中添加了额外的文本,并且文件名已损坏。尽管如此, dpkg -c 给了我:

drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 .
drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library
drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library/Application Support
drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library/Application Support/ClassicCover
drwxrwxr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle
-rwxr-xr-x c0ldra1n/staff 470336 2017-12-27 20:43 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover
drwxr-xr-x c0ldra1n/staff      0 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc
-rw-r--r-- c0ldra1n/staff    968 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib
-rw-r--r-- c0ldra1n/staff   9994 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/LOU-EB-wT9-view-aob-HL-njf.nib
-rw-r--r-- c0ldra1n/staff   4885 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/pVI-TE-B7r-view-ySh-E6-Ils.nib
-rw-r--r-- c0ldra1n/staff   1039 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/albumTracksViewController.nib
-rw-r--r-- c0ldra1n/staff    329 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/Info.plist
drwxr-xr-x c0ldra1n/staff      0 2017-12-27 20:59 ./Library/MobileSubstrate
drwxr-xr-x c0ldra1n/staff      0 2017-12-27 20:59 ./Library/MobileSubstrate/DynamicLibraries
-rwxr-xr-x c0ldra1n/staff 129040 2017-12-27 20:59 ./Library/MobileSubstrate/DynamicLibraries/ClassicCover.dylib
-rwxr-xr-x c0ldra1n/staff     51 2017-12-27 20:59 ./Library/MobileSubstrate/DynamicLibraries/ClassicCover.plist

其中有正确的名称。

知道为什么会发生这种情况吗?提前致谢!

答案1

错误消息引用了一个名为

/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib.bundle/

(请注意名称末尾的扩展名“.bundle”),而该dpkg -L命令不包含具有上述名称的目录。

因此,为了将文件安装到具有上述名称的目录中,该目录必须首先存在。但事实并非如此。您需要先创建它。

相关内容