尝试在 Ubuntu 18.04 上安装 gnuradio 时出现“未满足的依赖项”错误

尝试在 Ubuntu 18.04 上安装 gnuradio 时出现“未满足的依赖项”错误

按照此处的指南操作:

https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation

我尝试安装:

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo add-apt-repository ppa:gnuradio/gnuradio-master
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7
sudo apt-get update
sudo apt install gnuradio

我的输出:

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:
 gnuradio : Depends: libgnuradio-analog (>= 3.9.0.0git~master~13593~bionic) but it is not     going to be installed
        Depends: libgnuradio-audio (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-blocks (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-channels (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-digital (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-dtv (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-fec (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-fft (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-filter (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-qtgui (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-runtime (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-trellis (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-uhd (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-video-sdl (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-vocoder (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-wavelet (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-zeromq (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Recommends: python3-qwt-qt5 but it is not installable
E: Unable to correct problems, you have held broken packages.

如果我使用其中一个错误包沿着依赖链向上走,我最终会得到:

sudo apt-get install libgnuradio-runtime
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:
 libgnuradio-runtime : Depends: libvolk2.2 (>= 2.2.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

最后:

sudo apt-get install libvolk2.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libvolk2.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libvolk2.2' has no installation candidate

查找 libvolk2.2 表明它位于 Debian 的 sid(不稳定)存储库中。但是,当我搜索有关安装 gnuradio 的信息时,我没有找到任何关于必须使用 sid 存储库的信息。而且,如果是这样的话,我使用的指南似乎会提到这一点。

因此,在诉诸使用 sid 存储库并冒着损坏风险之前,我想看看是否还有其他我没有看到但需要的东西。

谢谢您的帮助。

非常感谢您的帮助。

[编辑] 还想提一下,这是 18.04 的全新安装,并且据我所知,自动软件更新程序已将所有内容更新至最新版本。

答案1

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo add-apt-repository ppa:gnuradio/gnuradio-master
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7

您只需添加上述 PPA 存储库中的一个,而无需全部三个。

因此,在诉诸使用 sid 存储库并冒着损坏风险之前,我想看看是否还有其他我没有看到但需要的东西。

是的,目前软件包ppa:gnuradio/gnuradio-master似乎已损坏。我刚刚从ppa:gnuradio/gnuradio-releases存储库成功安装了 gnuradio 3.8。

首先,您需要删除ppa:gnuradio/gnuradio-releasesppa:gnuradio/gnuradio-releases-3.7然后重试安装gnuradio

rm /etc/apt/sources.list.d/gnuradio-ubuntu-gnuradio-master-bionic.list
rm /etc/apt/sources.list.d/gnuradio-ubuntu-gnuradio-releases-3_7-bionic.list
apt-get install gnuradio

相关内容