一周前,我尝试安装 gnuradio-dev,但失败了,于是放弃了。我当时并不知道,显然我的失败尝试让 APT 陷入了真正的困境。安装、删除或运行 dist-upgrade(或任何其他 APT 命令)都会导致依赖性错误。
我打开软件中心查看是否有建议,它建议我修复。修复失败了,但我最终收到了一条有用的错误消息:
(Reading database ... 333769 files and directories currently installed.)
Preparing to unpack .../libgnuradio-iqbalance_0.37.2-gqrx~trusty6_amd64.deb ...
Unpacking libgnuradio-iqbalance (0.37.2-gqrx~trusty6) ...
dpkg: error processing archive /var/cache/apt/archives/libgnuradio-iqbalance_0.37.2-gqrx~trusty6_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python2.7/dist-packages/gnuradio/iqbalance/__init__.py', which is also in package gr-iqbal 0.37.1.5.d4fd4d-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgnuradio-iqbalance_0.37.2-gqrx~trusty6_amd64.deb
Error in function:
dpkg: dependency problems prevent configuration of gr-osmosdr:
gr-osmosdr depends on libgnuradio-iqbalance; however:
Package libgnuradio-iqbalance is not installed.
dpkg: error processing package gr-osmosdr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgnuradio-osmosdr0.1.4:amd64:
尝试安装 libgnuradio-iqbalance 时出现以下情况:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libgnuradio-iqbalance
0 upgraded, 1 newly installed, 0 to remove and 77 not upgraded.
2 not fully installed or removed.
Need to get 0 B/91.2 kB of archives.
After this operation, 555 kB of additional disk space will be used.
(Reading database ... 333769 files and directories currently installed.)
Preparing to unpack .../libgnuradio-iqbalance_0.37.2-gqrx~trusty6_amd64.deb ...
Unpacking libgnuradio-iqbalance (0.37.2-gqrx~trusty6) ...
dpkg: error processing archive /var/cache/apt/archives/libgnuradio-iqbalance_0.37.2-gqrx~trusty6_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python2.7/dist-packages/gnuradio/iqbalance/__init__.py', which is also in package gr-iqbal 0.37.1.5.d4fd4d-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgnuradio-iqbalance_0.37.2-gqrx~trusty6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我这里不需要 gnuradio - 我很高兴删除它,但是当我使用 apt-get remove 时,我得到了依赖性错误。我完成了第一部分添加 PPA 后如何解决未满足的依赖关系?(直到 PPA 部分)但没有骰子。
还有其他想法吗?甚至是核能?完全愿意用核能摧毁所有的 gnuradio 东西,然后恢复一台可以正常工作的机器。
答案1
也尝试刪除gr-osmosdr
。sudo apt-get remove libgnuradio-iqbalance gr-osmosdr