首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法执行新的预安装脚本(/var/lib/dpkg/tmp.ci/preinst)

无法执行新的预安装脚本(/var/lib/dpkg/tmp.ci/preinst)
EN

Ask Ubuntu用户
提问于 2018-01-31 17:15:48
回答 1查看 8K关注 0票数 4

我试图在迷航框中安装一个使用泛型/ubuntu1604映像的.deb文件,但是我得到了以下错误:

代码语言:javascript
复制
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文件的安装是正确的。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2018-02-07 21:29:36

您缺少了出现在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,您应该提交一个bug报告,并包含缺少的依赖包的名称。

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1001795

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档