我正在尝试在
gdb-multiarch
上安装 ubuntu 18.04
。当我使用 sudo apt-get install gdb-multiarch
时,出现以下错误。
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:
gdb-multiarch : Depends: gdb (= 8.1-0ubuntu3.2) but it is not going to be installed
Depends: libpython3.6 (>= 3.6.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我找不到安装上述依赖项的方法。
这可能是由于安装了 Ubuntu 安装中未包含的 Python 版本引起的,因此你的包管理器不知道该怎么做。
这对我有用:
使用
安装特定版本sudo apt install gdb=8.1-0ubuntu3.2
然后安装 gdb-multiarch
sudo apt-get install gdb-multiarch