我遵循中给出的安装指南https://forums.kali.org/showthread.php?18570-如何安装-在卡利-1-0-4-没有sid-repo!。。当我试图通过时,我卡在了第11步。我得到了这个错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
Traceback (most recent call last):
File "/usr/bin/gdebi", line 86, in <module>
if not debi.open(args[0]):
File "/usr/share/gdebi/GDebi/GDebiCli.py", line 88, in open
if not self._deb.check():
File "/usr/lib/python3/dist-packages/apt/debfile.py", line 522, in check
if not self._satisfy_depends(self.depends):
File "/usr/lib/python3/dist-packages/apt/debfile.py", line 552, in _satisfy_depends
if not self._is_or_group_satisfied(or_group):
File "/usr/lib/python3/dist-packages/apt/debfile.py", line 152, in _is_or_group_satisfied
depname = self._maybe_append_multiarch_suffix(depname)
File "/usr/lib/python3/dist-packages/apt/debfile.py", line 125, in _maybe_append_multiarch_suffix
cand = self._cache[multiarch_pkgname].candidate._cand
AttributeError: 'NoneType' object has no attribute '_cand'
请给我一个解决方案,这样我就可以通过。。。。
尝试添加32位拱门,如下所示:
sudo dpkg --add-architecture i386
sudo apt -get update
sudo apt-get dist-upgrade
并再次运行您的命令:
gdebi /root/rep/compiz-gtk_0.8.4-4_i386.deb
编辑:或者你可以像从这个链接手动完成。
查找依赖项
$ dpkg-deb -I compiz-gtk_0.8.4-4_i386.deb | grep Depends
Depends: compiz-core (= 0.8.4-4), libatk1.0-0 (>= 1.29.3), libc6 (>= 2.7), libcairo2 (>= 1.2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.78), libdecoration0 (>= 0.8.4), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgconf2-4 (>= 2.27.0), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.10.0), libmetacity-private0 (>= 1:2.26.0), libpango1.0-0 (>= 1.14.0), libwnck22 (>= 2.22.0), libx11-6 (>= 0), libxcursor1 (>> 1.1.2), libxrender1, gconf2 (>= 2.28.1-2)
安装
sudo apt-get install compiz-core:i386 libatk1.0-0:i386 libc6:i386 libcairo2:i386 libdbus-1-3:i386 libdbus-glib-1-2:i386 libdecoration0:i386 libfontconfig1:i386 libfreetype6:i386 libgconf2-4:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libmetacity-private0:i386 libpango1.0-0:i386 libwnck22:i386 libx11-6:i386 libxcursor1:i386 libxrender1:i386 gconf2:i386
现在安装包:
sudo dpkg -i compiz-gtk_0.8.4-4_i386.deb