我试图在迷航框中安装一个使用泛型/ubuntu1604映像的.deb文件,但是我得到了以下错误:
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那只会发生在那个图像上。如果我试图将相同的.deb文件安装在我的linux机器中(异种)或另一个带有不同linux映像的流浪者框中,则.deb文件的安装是正确的。
发布于 2018-02-07 21:29:36
您缺少了出现在preinst脚本的shebang行中的可执行文件。
dpkg -e wtbuild.deb tmptmp/preinst。#!开头。之后出现的文本是将用于运行文件的程序。你错过了那个节目。/usr/bin/python,则应该安装python包:sudo apt-get install python如果您维护wtbuild.deb,您应该花时间将缺少的依赖项添加到包的control文件中。如果其他人维护wtbuild.deb,您应该提交一个bug报告,并包含缺少的依赖包的名称。
https://askubuntu.com/questions/1001795
复制相似问题