我在虚拟机上运行 Ubuntu 12.04.2 LTS 并且遇到了一个小问题。每当我尝试升级时,我都会得到:
apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-headers-virtual : Depends: linux-headers-3.2.0-44-virtual but it is not installed
linux-virtual : Depends: linux-image-virtual (= 3.2.0.44.53) but 3.2.0.45.54 is installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试 -f install (按照建议),我会得到:
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... …Run Code Online (Sandbox Code Playgroud) 比方说,我有一个包A,其具有Depends: B (>= 1.0.0)在其control文件中。
将B安装作为A与依赖前段时间1.0.0版本。
现在B已在存储库中更新到1.0.42版本,我想要upgrade它。
我不喜欢做的事情:apt-get install B因为它会标记B为“手动安装”(不确定如何正确命名)包,autoremove如果我决定停止使用,它也不会被删除A。
那么是否有一个类似的东西apt-get upgrade只升级一个特定的包及其依赖项(可能是递归的,在我的情况下无关紧要,因为B不依赖于其他任何东西)?
PS:我问的是当前可用的 LTS 版本。所以 10.04 和 12.04
我无法在 Ubuntu 14.04 上安装 Wine。当我尝试在 Ubuntu 软件中心安装它时,我总是收到一条消息,说我有未满足的依赖项。我尝试通过终端安装 Wine,我得到了这个:
Reading package lists... Done
Building dependency tree
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:
wine : Depends: wine1.6 but it is …Run Code Online (Sandbox Code Playgroud) package-management apt wine dependencies software-installation
我想在 Ubuntu 上安装 VLC,它不起作用,更新系统,而不是升级它,但它仍然不起作用。
为此,我同时使用了 Ubuntu 软件中心和终端。
在终端中,我输入了命令 sudo apt-get install vlc
终端给我的错误信息如下。
arif@arifpc:~$ sudo apt-get install vlc
[sudo] password for arif:
Reading package lists... Done
Building dependency tree
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 …Run Code Online (Sandbox Code Playgroud) 我一直在尝试在运行 Ubuntu 18.04 的 PC 上安装 lighty。我不断收到的错误是它有未满足的依赖项,即 libssl1.1。但是,已经安装了 libssl1.1。
$ sudo apt-get install lighttpd
Reading package lists... Done
Building dependency tree
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:
lighttpd …Run Code Online (Sandbox Code Playgroud) 我运行以下命令
sudo apt install nvidia-driver-450
但它抛出以下错误
Reading package lists... Done
Building dependency tree
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 msudo apt install nvidia-driver-450
sudo rebootay help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-450 : Depends: libnvidia-gl-450 …Run Code Online (Sandbox Code Playgroud) package-management nvidia dependencies software-installation 20.04
使用突触包管理器,我收到此消息:以下包具有无法解析的依赖项:
com.github.babluboy.bookworm:依赖:ninja,但无法安装
安装 ninja-build 软件包没有帮助。
在终端窗口中输入 sudo apt-get install bookworm 没有帮助。我收到错误消息“无法找到包 bookworm”。
建议?
sudo apt install php7.0-intl
Run Code Online (Sandbox Code Playgroud)
输出:
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.
Run Code Online (Sandbox Code Playgroud)
以前的版本从来没有出现过这种依赖关系的问题
有任何想法吗?..
> 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
Run Code Online (Sandbox Code Playgroud) 我下载了 DOOM BFA 版本 1.2.8,但运行后我收到消息:
./DoomBFA:/usr/lib/x86_64-linux-gnu/libstdc++.so.6:找不到版本“GLIBCXX_3.4.29”(./DoomBFA 需要)
有没有办法在 ubuntu 20.04 中更新这些库?
当我尝试更新系统 (Ubuntu 22.04) 并收到此错误消息时,出现此错误
以下包裹已被保留: gstreamer1.0-vaapi 0 已升级,0 已新安装,0 已删除,1 未升级。
我尝试了互联网上建议的一些解决方案,例如手动安装软件包,我收到了以下消息:
sudo apt-get install gstreamer1.0-vaapi
以下软件包具有未满足的依赖关系: gstreamer1.0-vaapi :取决于:libgstreamer-plugins-bad1.0-0 (>= 1.20.3) 但要安装 1.20.1-1ubuntu2 E:无法纠正问题,您持有破损的包裹。
和“libgstreamer-plugins-bad1.0-0”也已经安装。我也尝试过类似的命令sudo apt-get dist-upgrade,但遇到了同样的错误。
我使用的是带有 Nvidia GPU 的 Ubuntu 22.04。
[编辑]:伙计们,这不是https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages我已经尝试过那里的建议的重复,但我仍然遇到这个问题。谢谢。