按照这里的指南:
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 的全新安装,自动软件更新程序 AFAICT 的所有内容都是最新的。
您只需要添加上述 PPA 存储库之一,而不是全部三个。
是的,
ppa:gnuradio/gnuradio-master
目前的包裹似乎坏了。我刚刚从存储库成功安装了 gnuradio 3.8ppa:gnuradio/gnuradio-releases
。首先您需要删除
ppa:gnuradio/gnuradio-releases
然后ppa:gnuradio/gnuradio-releases-3.7
重试安装gnuradio