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.

エラー パッケージの 1 つを使用して依存関係チェーンを上っていくと、最終的に次のようになります。

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 自動ソフトウェア アップデータによってすべてが最新になっていることも言及しておきます。

答え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 リポジトリのうち 3 つすべてではなく、1 つだけを追加する必要があります。

したがって、sid リポジトリを使用して破損のリスクを冒す前に、他に必要なものがあるかどうかを確認したいと思います。

はい、現在パッケージがppa:gnuradio/gnuradio-master壊れているようです。ppa:gnuradio/gnuradio-releasesリポジトリから gnuradio 3.8 を正常にインストールしました。

ppa:gnuradio/gnuradio-releasesまず、を削除しppa: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

関連情報