sudo apt-get -f instalar #?

2

Estou lendo uma linha em algumas instruções e uma das etapas está escrita como:

sudo apt-get -f install # Install dependencies and finish configuring the packages(s)

então eu estou pensando é o "#" o que eu deveria entrar ou eu deveria estar substituindo com uma lista de pacotes que precisava ser instalado a partir do comando anterior, que era isso:

james@james-Galago:~/Desktop/Installers/Citrix$ sudo dpkg -i icaclient_13.1.0.285639_amd64.deb 
Selecting previously unselected package icaclient.
(Reading database ... 580367 files and directories currently installed.)
Preparing to unpack icaclient_13.1.0.285639_amd64.deb ...
Unpacking icaclient (13.1.0.285639) ...
dpkg: dependency problems prevent configuration of icaclient:
 icaclient depends on libgtk2.0-0:i386 (>= 2.12.0); however:
 icaclient depends on libcanberra-gtk-module:i386; however:

dpkg: error processing package icaclient (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Errors were encountered while processing:
 icaclient

Não tenho certeza se preciso fazer algo com esses gatilhos listados acima, como suporte a mime ... Estou tentando configurar meu 14.04 para VPN usando CAG:

link

Quando eu corro:

sudo apt-get -f install

Eu recebo:

james@james-Galago:~/Desktop/Installers/Citrix$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libatk1.0-0:i386 libcanberra0:i386 libdatrie1:i386 libgdk-pixbuf2.0-0:i386
  libgraphite2-3:i386 libjasper1:i386 libpixman-1-0:i386 libspeex1:i386
  libtdb1:i386 libthai0:i386 libvorbisfile3:i386 libxcb-render0:i386
  libxcb-shm0:i386 libxerces-c3.1 libxmu6:i386
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  icaclient
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 37.4 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 580841 files and directories currently installed.)
Removing icaclient (13.1.0.285639) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
    
por simgineer 24.07.2015 / 19:23

1 resposta

8

Basta executar

sudo apt-get -f install

sem nada além disso. # é apenas o abridor de um comentário

Para instalar pacotes, use

sudo apt-get install package_name

Substitua package_name pelo nome do pacote a ser instalado.

No seu caso

sudo apt-get install -f

e se isso não funcionar

sudo apt-get install libcanberra-gtk-module:i386
sudo apt-get install libgtk2.0-0:i386

Uma alternativa para instalar o arquivo deb é

software-center icaclient_13.1.0.285639_amd64.deb

De man apt-get

   -f, --fix-broken
        Fix; attempt to correct a system with broken dependencies in
        place. This option, when used with install/remove, can omit any
        packages to permit APT to deduce a likely solution. If packages 
        are specified, these have to completely correct the problem. The 
        option is sometimes necessary when running APT for the first 
        time; APT itself does not allow broken package dependencies to 
        exist on a system. It is possible that a system's dependency 
        structure can be so corrupt as to require manual intervention 
        (which usually means using dpkg --remove to eliminate some of the 
        offending packages). Use of this option together with -m may 
        produce an error in some situations. Configuration Item: 
        APT::Get::Fix-Broken.
    
por A.B. 24.07.2015 / 19:26