尝试在 ubuntu 18.04 上安装 `gdb-multiarch`

问题描述 投票:0回答:2

我正在尝试在

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.

我找不到安装上述依赖项的方法。

remote-debugging
2个回答
1
投票

这可能是由于安装了 Ubuntu 安装中未包含的 Python 版本引起的,因此你的包管理器不知道该怎么做。

这对我有用:

https://askubuntu.com/questions/1061762/ubuntu-18-04-cant-upgrade-because-of-libpython3-6-version-conflicts


0
投票

使用

安装特定版本

sudo apt install gdb=8.1-0ubuntu3.2

然后安装 gdb-multiarch

sudo apt-get install gdb-multiarch

© www.soinside.com 2019 - 2024. All rights reserved.