如何使deb文件无错误地安装其他deb文件?

问题描述 投票:-1回答:1

我创建了一个本地仓库。我创建了2个debian文件,一个是batman.deb文件,它的依赖关系是base.deb。

控制文件。

Package: batman
Version: 1.0
Architecture: all
Essential: no
Priority: optional
Depends: base
Maintainer: monkeyproduction
Description: test description

postinst文件。

apt-get -f install

所以我用postinst文件来检查需要安装的依赖关系。

问题是我得到了这些错误。

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
dpkg: error processing package base (--configure):
 installed base package post-installation script subprocess returned error exit status 100
dpkg: dependency problems prevent configuration of batman:
 batman depends on base; however:
  Package base is not configured yet.

dpkg: error processing package batman (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 base
 batman
E: Sub-process /usr/bin/dpkg returned an error code (1)

其他的安装如何做到不出错?我的意思是,当我试图安装某个软件包时,它说它需要10个其他的依赖关系,而安装它们时却没有出现这些信息。

linux installation debian apt deb
1个回答
-1
投票

删除了我的apt-get -f install

显然 取决于:基数 我是否需要在我的batman.deb控制文件中下载并安装base.deb文件?

© www.soinside.com 2019 - 2024. All rights reserved.