我正在阅读一些说明中的一行,其中一个步骤写如下:
sudo apt-get -f install # Install dependencies and finish configuring the packages(s)
所以我想知道我应该输入“#”还是应该用上一个命令需要安装的软件包列表来替换它:
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
我不确定是否需要对上面列出的这些触发器执行任何操作(例如 mime-support...)我正在尝试使用 CAG 将我的 14.04 配置为 vpn:
https://help.ubuntu.com/community/CitrixICAClientHowTo
当我跑步时:
sudo apt-get -f install
我得到:
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) ...
答案1
只需运行
sudo apt-get -f install
没有任何额外的东西。#
只是评论的开场白
要安装软件包,请使用
sudo apt-get install package_name
替换package_name
为要安装的包的名称。
在你的情况下
sudo apt-get install -f
如果这不起作用
sudo apt-get install libcanberra-gtk-module:i386
sudo apt-get install libgtk2.0-0:i386
安装 deb 文件的另一种方法是
software-center icaclient_13.1.0.285639_amd64.deb
来自男人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.