Erro “sudo apt-get -f install”

2

Eu executei o comando sudo apt-get upgrade no Ubuntu Terminal, onde havia três pacotes para atualizar, (libgnuradio-iqbalance) e outros dois. os processos de upgrade do libgnuradio-iqbalance falharam. Ele diz que deve ser executado sudo apt-get -f install , eu corri, mas não resolve o problema.

ayad@Ayad:~$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libgnuradio-iqbalance
The following NEW packages will be installed:
  libgnuradio-iqbalance
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 0 B/93.4 kB of archives.
After this operation, 532 kB of additional disk space will be used.
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 ... 495085 files and directories currently installed.)
Preparing to unpack .../libgnuradio-iqbalance_0.37.2-myriadrf5~xenial_amd64.deb ...
Unpacking libgnuradio-iqbalance (0.37.2-myriadrf5~xenial) ...
dpkg: error processing archive /var/cache/apt/archives/libgnuradio-iqbalance_0.37.2-myriadrf5~xenial_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libgnuradio-iqbalance.so', which is also in package gr-iqbal 0.37.2-5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libgnuradio-iqbalance_0.37.2-myriadrf5~xenial_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ayad@Ayad:~$
    
por Ayad B.S 15.09.2016 / 21:37

1 resposta

3

A partir da pergunta acima, fica claro que o sistema tenta instalar libgnuradio-iqbalance package e não pode. Eu não posso fazer muito até corrigir este problema, então eu ia remover os pacotes que exigiam libgnuradio-iqbalance package. Eu digitei o comando sudo apt-get upgrade e a saída foi como segue:

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.

É claro que tenho dois pacotes que exigem libgnuradio-iqbalance package. Portanto, tentei excluí-los usando o comando sudo apt-get remove PACKAGE_NAME , a saída foi como a seguinte:

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).

Na saída do Terminal, podemos ver que o pacote gr-osmosdr não pode ser removido. E assim por diante para o pacote libgnuradio-osmosdr0.1.4 , porque é necessário dos pacotes gr-osmosdr e gqrx-sdr . Então eu fui deletar gqrx-sdr package, mas não consegui deletar.

Ao pesquisar na internet, descubro uma maneira de excluir esses pacotes de aqui , usando o comando sudo dpkg --remove --force-remove-reinstreq PACKAGE_NAME . então eu digitei o seguinte:

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) ...

E então eu digitei o comando sudo apt-get upgrade .

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.

É feito.

Agora eu vou remover o gnuradio e reinstalá-lo porque acho que há alguns arquivos faltando dentro dele.

    
por Ayad B.S 17.09.2016 / 22:46