子进程 /usr/bin/dpkg 返回错误代码 (1)。使用 OAI 5G 时

子进程 /usr/bin/dpkg 返回错误代码 (1)。使用 OAI 5G 时

因此,我将 OpenAirInterface 存储库克隆到我的系统中,并导航到 cmake_targets 并运行此命令。 ./build_oai -I --install-optional-packages -w USRP它似乎试图安装一堆存储库,几分钟后,它尝试 libuhd4.6.0 包,然后尝试解压 libuhd4.5.0 包,然后出现错误。我知道这可能是 OAI 软件的问题,但似乎更像是人们在执行此“解压”操作时遇到的问题。我也知道这是一个常见问题,AskUbuntu 上也有一些类似的问题,但是我已经尝试了所有提出的解决方案,但都没有用。作为一个在 Linux 方面经验很少的人,任何帮助都非常感谢!这是错误消息前的最后几行,然后是错误消息。

Unpacking gnuradio (3.10.1.1-2) ...
Selecting previously unselected package gnuradio-dev.
Preparing to unpack .../3-gnuradio-dev_3.10.1.1-2_amd64.deb ...
Unpacking gnuradio-dev (3.10.1.1-2) ...
Selecting previously unselected package libuhd4.6.0:amd64.
Preparing to unpack .../4-libuhd4.6.0_4.6.0.0-0ubuntu1~jammy1_amd64.deb ...
Unpacking libuhd4.6.0:amd64 (4.6.0.0-0ubuntu1~jammy1) ...
Selecting previously unselected package libuhd-dev.
Preparing to unpack .../5-libuhd-dev_4.6.0.0-0ubuntu1~jammy1_amd64.deb ...
Unpacking libuhd-dev (4.6.0.0-0ubuntu1~jammy1) ...
Preparing to unpack .../6-libuhd4.5.0_4.5.0.0-0ubuntu1~jammy1_amd64.deb ...
Unpacking libuhd4.5.0:amd64 (4.5.0.0-0ubuntu1~jammy1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-msYDXQ/6-libuhd4.5.0_4.5.0.0- 
0ubuntu1~jammy1_amd64.deb (--unpack):
trying to overwrite '/usr/share/uhd/cal/cal_metadata.fbs', which is also in package 
libuhd4.6.0:amd64 4.6.0.0-0ubuntu1~jammy1
Selecting previously unselected package uhd-host.
Preparing to unpack .../7-uhd-host_4.6.0.0-0ubuntu1~jammy1_amd64.deb ...
Unpacking uhd-host (4.6.0.0-0ubuntu1~jammy1) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-msYDXQ/6-libuhd4.5.0_4.5.0.0-0ubuntu1~jammy1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容