Error "sudo apt-get -f install" caused by libgnuradio-iqbalance
Solution 1:
From the question above it's clear that is the system try to install libgnuradio-iqbalance
package, and it's can't. I cannot do a lot until fix this issue, so I was going to remove the packages that required libgnuradio-iqbalance
package. I have typed sudo apt-get upgrade
command, and the output was as the following ::
ayad@Ayad:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
gr-osmosdr : Depends: libgnuradio-iqbalance but it is not installed
libgnuradio-osmosdr0.1.4 : Depends: libgnuradio-iqbalance but it is not installed
E: Unmet dependencies. Try using -f.
It's clear that is I have two packages require libgnuradio-iqbalance
package. Therefore I have tried to delete them using sudo apt-get remove PACKAGE_NAME
command, the output was as the following ::
ayad@Ayad:~$ sudo apt-get remove gr-osmosdr
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgnuradio-osmosdr0.1.4 : Depends: libgnuradio-iqbalance but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ayad@Ayad:~$ sudo apt-get remove libgnuradio-osmosdr0.1.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gqrx-sdr : Depends: libgnuradio-osmosdr0.1.4 but it is not going to be installed
gr-osmosdr : Depends: libgnuradio-osmosdr0.1.4 but it is not going to be installed
Depends: libgnuradio-iqbalance but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
From the Terminal's output, we can see that it the gr-osmosdr
package cannot be removed. And so on for libgnuradio-osmosdr0.1.4
package because it's required from gr-osmosdr
and gqrx-sdr
packages. So I went to delete gqrx-sdr
package, but it was unable to delete.
By searching on the internet, I find a way to delete these packages from here, using sudo dpkg --remove --force-remove-reinstreq PACKAGE_NAME
command. then I have typed the following ::
ayad@Ayad:~$ sudo dpkg --remove --force-remove-reinstreq gqrx-sdr
dpkg: warning: files list file for package 'arduino' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'arduino-core' missing; assuming package has no files currently installed
(Reading database ... 364867 files and directories currently installed.)
Removing gqrx-sdr (2.5.3-gqrx4~xenial) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
ayad@Ayad:~$ sudo dpkg --remove --force-remove-reinstreq gr-osmosdr
dpkg: warning: files list file for package 'arduino' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'arduino-core' missing; assuming package has no files currently installed
(Reading database ... 364858 files and directories currently installed.)
Removing gr-osmosdr (0.1.4.75.ae686c4-myriadrf3~xenial) ...
Processing triggers for man-db (2.7.5-1) ...
ayad@Ayad:~$ sudo apt-get remove libgnuradio-osmosdr0.1.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gr-fcdproplus libairspy0 libbladerf1 libgnuradio-fcdproplus0 libhackrf0 libmirisdr0 libosmodsp libosmosdr0 libsoapysdr0.5-2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libgnuradio-osmosdr0.1.4
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
10 not fully installed or removed.
After this operation, 1,052 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'arduino' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'arduino-core' missing; assuming package has no files currently installed
(Reading database ... 364826 files and directories currently installed.)
Removing libgnuradio-osmosdr0.1.4:amd64 (0.1.4.75.ae686c4-myriadrf3~xenial) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libgnuradio-fcdproplus0 (10.0.1.0-myriadrf5~xenial) ...
Setting up gr-fcdproplus (10.0.1.0-myriadrf5~xenial) ...
Setting up libosmodsp (0.3.0-myriadrf1~xenial) ...
Setting up libsoapysdr0.5-2:amd64 (0.5.3.1.609808b-myriadrf1~xenial) ...
Setting up libairspy0:amd64 (1.0.8-1~ubuntu16.04.1~myriadrf1) ...
Setting up libbladerf1:amd64 (0.2016.01~rc1-3) ...
Setting up libhackrf0:amd64 (2015.07.2-6) ...
rmmod: ERROR: Module hackrf is not currently loaded
Setting up libmirisdr0:amd64 (0.0.4.59ba37-4) ...
Setting up libosmosdr0:amd64 (0.1.8.effcaa7-5) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
And then I typed sudo apt-get upgrade
command.
ayad@Ayad:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
gr-fcdproplus libairspy0 libbladerf1 libgnuradio-fcdproplus0 libhackrf0 libmirisdr0 libosmodsp libosmosdr0 libsoapysdr0.5-2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
It's Done.
Now I have going to remove gnuradio and reinstall it because I think there are some files missing within it.