我有一个问题,我想安装多个软件,每个软件都需要特定版本的依赖项。可以安装多个版本吗?如果没有,有什么办法或者想法可以解决这个问题吗?谢谢
我在 Ubuntu 20.04 桌面上,当我尝试更新/升级 lutris 时,我总是会收到此错误
The following packages have unmet dependencies:
lutris : Depends: gir1.2-webkit2-4.1 but it is not installable
E: Unable to correct problems, you have held broken packages.
我搜索了 Ubuntu 软件包网站并看到gir1.2-webkit2-4.1
:
https ://packages.ubuntu.com/search?keywords=Gir1.2-webkit2-4.1&searchon=names&suite=kinetic§ion=all
仅适用于 ubuntu 22.04 或 debian。
我该如何进行?
我一直在尝试编译一些东西(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.
sudo apt install php7.0-intl
输出:
The following packages have unmet dependencies:
php7.0-intl : Depends: libicu66 (>= 66.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
以前的版本从来没有这个依赖的问题
有任何想法吗?..
> uname -a
Linux ###### 5.13.0-21-generic #21-Ubuntu SMP Tue Oct 19 08:59:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
我有自己的 APT 存储库,其中包含我创建/打包的自定义 DEB。在这个 repo 中有一组 DEB 包,它们的控制文件中有以下内容
Package: my-foo-<type>
Architecture: any
Section: admin
Provides: my-foo
Conflicts: my-foo
where<type>
是几种类型之一(例如abc
,def
等)。换句话说,我有多个提供相同虚拟包的实际my-foo
包。正如预期的那样,如果我尝试运行apt install my-foo
,我会看到预期的提示
Package my-foo is a virtual package provided by:
my-foo-abc 0.3.0-1
my-foo-def 0.4.3-1
You should explicitly select one to install.
我在同一个仓库中还有另一个包,它Depends: my-foo
在它的控制文件中。我希望当我尝试安装此软件包而没有明确指定my-foo
要使用的虚拟风味时,同样应该提示我进行选择。但是,这不是我得到的 - apt 似乎选择了第一个满足虚拟包名称的包。
有没有办法强制执行所需的行为?
Ubuntu 20.04
自 Ubuntu 18 以来,我一直使用(古代 - 2006 年)目录管理软件 Gwhere。最近,在启动时,它“忘记”了存储数据的目录,每次使用该软件时都必须打开它。
所以我想我会卸载(使用 Synaptic 包管理器)并使用下载的 .Deb 文件重新安装软件。
然而,尽管 Synaptic 告诉我我已经安装了 libglib2.0,但现在包安装程序告诉我依赖关系不满足(libglib1.2)。
谁能指出我如何让 Gwhere 再次工作 - 就像 20 分钟前我试图用我的大锤解决一个非常小的问题一样。我无法提出更集中的问题,因为我什至不知道从哪里开始寻找。
感谢您的帮助,尼尔
我有一个通过 qt creator 编译的程序,在我的计算机上似乎可以正常工作,但我试图在远程计算机集群上运行它,它会吐出这些错误消息。
./programs/sampleapp: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./programs/sampleapp)
./programs/sampleapp: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./programs/sampleapp)
./programs/sampleapp: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./programs/sampleapp)
我猜这些依赖项丢失了?我不知道在哪里可以找到它们。谷歌搜索他们并没有让我找到任何有用的东西,我试过搜索我自己的电脑但没有运气。
我在构建 Ardour 时遇到了麻烦。任何人都可以帮助我解决依赖关系吗?我试过重新安装一切都无济于事。
luis@Luis-Macbook:~/Downloads/music/DAW/ardour/ardour$ ./waf configure
Setting top to : /home/luis/Downloads/music/DAW/ardour/ardour
Setting out to : /home/luis/Downloads/music/DAW/ardour/ardour/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Global Configuration
* Install prefix : /usr/local
* Debuggable build : True
* Build documentation : False
Ardour Configuration
* Will build against private GTK dependency stack : no
* Will rely on libintl built into libc : yes
* Will build against private Ardour dependency stack : no
Checking for function 'dlopen' in dlfcn.h : yes
Checking for boost library >= 1.56 : ok
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for 'alsa' : yes
Checking for 'libpulse' : yes
Checking for 'glib-2.0' >= 2.28 : yes
Checking for 'glib-2.0' >= 2.68 : not found
Checking for 'gthread-2.0' >= 2.2 : yes
Checking for 'glibmm-2.4' >= 2.32.0 : yes
Checking for 'sndfile' >= 1.0.18 : yes
Checking for 'giomm-2.4' >= 2.2 : yes
Checking for 'libcurl' >= 7.0.0 : yes
Checking for 'libarchive' >= 3.0.0 : yes
Checking for 'liblo' >= 0.26 : not found
The configuration failed
(complete log in /home/luis/Downloads/music/DAW/ardour/ardour/build/config.log)
log
Checking for 'liblo' >= 0.26 ['/usr/bin/pkg-config', 'liblo >= 0.26', '--cflags', '--libs', 'liblo']
err: Package liblo was not found in the pkg-config search path. Perhaps you should add the directory containing liblo.pc'
to the PKG_CONFIG_PATH environment variable No package 'liblo' found Package liblo was not found in the pkg-config search path.
Perhaps you should add the directory containing liblo.pc'
to the PKG_CONFIG_PATH environment variable No package 'liblo' found
Checking for 'glib-2.0' >= 2.68
['/usr/bin/pkg-config', 'glib-2.0 >= 2.68', '--cflags', '--libs', 'glib-2.0']
err: Requested 'glib-2.0 >= 2.68' but version of GLib is 2.56.4
not found
Ubuntu 18.04.4
我的(新手)Ubuntu 20.04 服务器配置为 32 位和 64 位架构:
$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
但是,我似乎无法同时拥有应用程序所依赖的同一库的 32 位和 64 位版本。
apt-get install libodbc1:i386
apt-get install libodbc1
当我安装一个时,另一个被删除。当我安装 32 位版本时,需要 64 位版本的应用程序(Plesk、VS Code)会中断,而当我安装 64 位版本时,需要 32 位版本的应用程序(WineHQ)会中断。
如何安装两者以使所有应用程序正常工作?
更新
当我运行以下命令时,我得到以下信息:
$ sudo apt install libodbc1 libodbc1:i386
The following packages have unmet dependencies:
libodbc1 : Breaks: libodbc1:i386 (!= 2.3.7) but 2.3.6-0.1build1 is to be installed
libodbc1:i386 : Breaks: libodbc1 (!= 2.3.6-0.1build1) but 2.3.7 is to be installed
E: Unable to correct problems, you have held broken packages.
而且,当我运行以下命令时,我得到以下信息:
$ apt policy libodbc1
libodbc1:
Installed: 2.3.7
Candidate: 2.3.7
Version table:
*** 2.3.7 500
500 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages
100 /var/lib/dpkg/status
2.3.6-0.1build1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages