새로운 사전 설치 스크립트(/var/lib/dpkg/tmp.ci/preinst)를 실행할 수 없습니다.

새로운 사전 설치 스크립트(/var/lib/dpkg/tmp.ci/preinst)를 실행할 수 없습니다.

나는 내 방랑자 상자에 .deb 파일을 설치하려고합니다.일반/ubuntu1604이미지하지만 다음과 같은 오류가 발생했습니다.

Reading package lists... Done
Building dependency tree

Reading state information... Done
Reading state information... Done

A queue based service for watching directories for files to process as per its configuration.
Do you want to install the software package? [y/N]:y
(Reading database ... 108439 files and directories currently installed.)
Preparing to unpack wtbuild.deb ...
dpkg (subprocess): unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst): No such file or directory
dpkg: error processing archive wtbuild.deb (--install):
 subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
 wtbuild.deb

오류

그 이미지에서만 그런 일이 일어납니다. 내 Linux 시스템(xenial)이나 다른 Linux 이미지가 있는 다른 vagrant 상자에 동일한 .deb 파일을 설치하려고 하면 .deb 파일이 올바르게 설치됩니다.

답변1

preinst 스크립트의 shebang 줄에 나타나는 실행 파일이 누락되었습니다.

  1. 임시 디렉터리에 패키지 메타데이터를 추출합니다.dpkg -e wtbuild.deb tmp
  2. tmp/preinst텍스트 편집기에서 엽니다 .
  3. 첫 번째 줄은 문자로 시작해야 합니다 #!. 그 뒤에 나타나는 텍스트는 파일을 실행하는 데 사용되는 프로그램입니다. 당신은 그 프로그램을 놓치고 있습니다.
  4. 누락된 프로그램을 제공하는 패키지를 확인합니다. 예를 들어 프로그램이 이면 다음 패키지를 /usr/bin/python설치해야 합니다 python.sudo apt-get install python

wtbuild.deb를 유지 관리하는 경우 누락된 종속성을 패키지 control파일에 추가하는 데 시간을 투자해야 합니다. 다른 사람이 wtbuild.deb를 유지 관리하는 경우 버그 보고서를 제출하고 누락된 종속성 패키지의 이름을 포함해야 합니다.

관련 정보