我正在尝试在 kali 中安装一些第三方软件,但当我尝试使用终端安装时总是出现错误?
sudo dpkg -i /root/Desktop/gdebi_0.9.5.5+nmu1_all.deb
(Reading database ... 319034 files and directories currently installed.)
Preparing to unpack .../gdebi_0.9.5.5+nmu1_all.deb ...
Unpacking gdebi (0.9.5.5+nmu1) over (0.9.5.5+nmu1) ...
dpkg: dependency problems prevent configuration of gdebi:
gdebi depends on gdebi-core (= 0.9.5.5+nmu1); however:
Package gdebi-core is not installed.
gdebi depends on gir1.2-vte-2.90; however:
Package gir1.2-vte-2.90 is not installed.
dpkg: error processing package gdebi (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
gdebi
我现在应该怎么做 ?请在这件事上给予我帮助。任何答案都将受到高度赞赏
但是当尝试使用它添加缺少的依赖项时,我收到此错误?
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:
gdebi gdebi-core libappindicator1 libdbusmenu-glib4 libdbusmenu-gtk4
libindicator7
Recommended packages:
lintian
The following packages will be REMOVED:
picasa
The following NEW packages will be installed:
gdebi-core libappindicator1 libdbusmenu-glib4 libdbusmenu-gtk4
libindicator7
The following packages will be upgraded:
gdebi
1 upgraded, 5 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 329 kB/382 kB of archives.
After this operation, 108 MB disk space will be freed.
Do you want to continue? [Y/n] y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 libdbusmenu-glib4
amd64 16.04.1+17.04.20170109.1-4
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 libdbusmenu-gtk4
amd64 16.04.1+17.04.20170109.1-4
404 Not Found
Err:3 http://http.kali.org/kali kali-rolling/main amd64 libappindicator1
amd64 0.4.92-4
404 Not Found
Err:4 http://http.kali.org/kali kali-rolling/main amd64 gdebi all
0.9.5.7+nmu1
404 Not Found
Err:5 http://http.kali.org/kali kali-rolling/main amd64 gdebi-core all
0.9.5.7+nmu1
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/libd/libdbusmenu
/libdbusmenu-glib4_16.04.1+17.04.20170109.1-4_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/libd/libdbusmenu
/libdbusmenu-gtk4_16.04.1+17.04.20170109.1-4_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/liba
/libappindicator/libappindicator1_0.4.92-4_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gdebi
/gdebi_0.9.5.7+nmu1_all.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/g/gdebi/gdebi-
core_0.9.5.7+nmu1_all.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
答案1
答案就在您收到的错误消息中。
您尝试安装的软件包具有您还需要安装的依赖项。您可以通过安装软件包来做到这一点apt-get
对于您在 中看到的错误apt-get
,您/etc/apt/sources.list
需要更正。该文件应为:
deb http://http.kali.org/kali kali-rolling main non-free contrib
完成后,转到.deb
您尝试安装的软件包的位置,然后:
apt-get install gdebi_0.9.5.5+nmu1_all.deb
如果您从存储库外部获取该包并且依赖项不存在,那么您必须单独下载它们,将它们放入一个目录中,然后apt-get install *.deb
放入该目录中。