我一直在尝试编译一些东西(ffmpeg,smooth),我遇到了这个 dbus 错误。它似乎与 Ubuntu 22.04 有关,因为我在 18.04 或 20.04 中编译 ffmpeg 没有问题。
$ apt install libgtk-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
libdbus-1-dev : Depends: libdbus-1-3 (= 1.12.20-2ubuntu4) but 1.12.20-3~devacom is to be installed
E: Unable to correct problems, you have held broken packages.
$ apt install libsdl2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
libdbus-1-dev : Depends: libdbus-1-3 (= 1.12.20-2ubuntu4) but 1.12.20-3~devacom is to be installed
E: Unable to correct problems, you have held broken packages.
$ apt install libdbus-1-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
libdbus-1-dev : Depends: libdbus-1-3 (= 1.12.20-2ubuntu4) but 1.12.20-3~devacom is to be installed
E: Unable to correct problems, you have held broken packages.
由于依赖
libdbus-1-dev
是libdbus-1-3 (= 1.12.20-2ubuntu4)
指版本“ 1.12.20-2ubuntu4 ”,它不能与版本“1.12.20-3~devacom”一起使用。查看
/etc/apt/sources.list.d
“devacom”版本的来源并将其删除。我猜您仍然配置了与 Ubuntu 20.04 中的“devacom”相关的启动板。也许是这样:https ://launchpad.net/~devacom