내 패키지를 설치 중인데 다음 메시지와 함께 설치에 실패했습니다.
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
명령에는 위 이름을 가진 디렉터리가 포함되어 있지 않습니다.
따라서 위 이름의 디렉터리에 파일을 설치하려면 해당 디렉터리가 먼저 존재해야 합니다. 그러나 그것은 진실이 아니다. 먼저 생성해야 합니다.