apt 未满足依赖关系,但包在那里

apt 未满足依赖关系,但包在那里

不久前我在 Ubuntu 上制作了一个deb软件包,现在我想在新系统上使用它。实际上有三个软件包:一个带有应用程序的库和一个作为软件包安装的配置文件。首先,我安装库:debuild

sms@sms-ubu:/Github/mentorsms$ sudo apt install ./mentorsmslib_1.0_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'mentorsmslib' instead of './mentorsmslib_1.0_amd64.deb'
The following NEW packages will be installed:
  mentorsmslib
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/54.6 kB of archives.
After this operation, 176 kB of additional disk space will be used.
Get:1 /Github/mentorsms/mentorsmslib_1.0_amd64.deb mentorsmslib amd64 1.0 [54.6 kB]
Selecting previously unselected package mentorsmslib.
(Reading database ... 207633 files and directories currently installed.)
Preparing to unpack .../mentorsmslib_1.0_amd64.deb ...
Unpacking mentorsmslib (1.0) ...
Setting up mentorsmslib (1.0) ...

然后是配置文件:

sms@sms-ubu:/Github/smartfloorcontrol$ sudo apt install ./smartfloorcontrol-hdmi_1.0_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'smartfloorcontrol-hdmi' instead of './smartfloorcontrol-hdmi_1.0_amd64.deb'
The following NEW packages will be installed:
  smartfloorcontrol-hdmi
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,310 B of archives.
After this operation, 12.3 kB of additional disk space will be used.
Get:1 /Github/smartfloorcontrol/smartfloorcontrol-hdmi_1.0_amd64.deb smartfloorcontrol-hdmi amd64 1.0 [1,310 B]
Selecting previously unselected package smartfloorcontrol-hdmi.
(Reading database ... 207692 files and directories currently installed.)
Preparing to unpack .../smartfloorcontrol-hdmi_1.0_amd64.deb ...
Unpacking smartfloorcontrol-hdmi (1.0) ...
Setting up smartfloorcontrol-hdmi (1.0) ...

最后,应用程序出现错误:

sms@sms-ubu:/Github/smartfloorcontrol$ sudo apt install ./smartfloorcontrol_1.0_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'smartfloorcontrol' instead of './smartfloorcontrol_1.0_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 smartfloorcontrol : Depends: smartfloorcontrol-config (= 1.0)
E: Unable to correct problems, you have held broken packages.

如您所见,它没有看到 smartfloorcontrol-config 包,但它在那里(由 smartfloorcontrol-hdmi 提供):

sms@sms-ubu:/Github/smartfloorcontrol$ dpkg -s smartfloorcontrol-hdmi
Package: smartfloorcontrol-hdmi
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 12
Maintainer: Szymon M. Sabat <[email protected]>
Architecture: amd64
Source: smartfloorcontrol
Version: 1.0
Provides: smartfloorcontrol-config
Conffiles:
 /etc/smartfloorcontrol/smartfloorcontrolProj.ini 67bb651a629ef90e8a6d52f393f0bcd5
Description: SmartFloor Control configuration
 Configures smartfloorcontrol to work with HDMI projectors.

我确信它 3 个月前在不同的 Ubuntu 22.04 PC 上运行良好。我是不是忘记了之前做过的什么事情?

相关内容