我一直在尝试在我的 Kali Linux 中安装某个软件,并aptitude
在过程中使用了该命令。然而,在使用它时,我被提示输入一些信息,我唯一记得的是它在 17GB 上运行。
我注意力不集中,所以我一直回答“是”,直到我重新启动后发现没有可用的 GUI。只需要一个终端即可使用。尝试使用tasksel
安装桌面环境但出现错误。经过一番研究,我意识到我实际上丢失了 17GB 的数据,而且我无法安装任何东西,因为我缺少我尝试安装的任何软件或命令的所有依赖项。
我已经添加了这些存储库
- repo.steampowered.com/steam
- repo.skype.com/deb
- kali.download/kali
有没有办法一次安装所有基本依赖项(apt dist-upgrade
也不起作用,它还显示多个缺少的依赖项)或将系统恢复到早期状态?值得注意的是,我找到了大多数软件 /var/cache/apt/archives 但由于同样的原因无法安装它们..缺少依赖项
[编辑]
这篇文章几乎可以解释我目前的情况:
https://askubuntu.com/questions/716915/dpkg-error-processing-packages-cannot-complete-install-desktop-gui-from-termina
唯一的区别是我的 Kali 中几乎每个包都显示错误(不仅仅是像帖子这样的一些软件),问题的根源是错误使用的结果aptitude
apt
这是尝试或安装某个命令时upgrade
的任何输出:(输出更大,但不能包含在本文中。--fix-broken install
)dist-upgrade
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
airgeddon : Depends: aircrack-ng but it is not installed
altdns : Depends: python3-termcolor but it is not installed
androguard : Depends: python3-click but it is not installed
Depends: python3-colorama but it is not installed
Depends: python3-ipython but it is not installed
Depends: python3-networkx but it is not installed
Depends: python3-pydot but it is not installed
Recommends: python3-pyperclip but it is not installed
android-sdk : Depends: default-jre but it is not installed
arjun : Depends: python3-dicttoxml but it is not installed
awscli : Depends: python3-pyasn1 but it is not installed
Depends: python3-colorama but it is not installed
Depends: python3-docutils but it is not installed
beef-xss : Depends: ruby-ansi but it is not installed
Depends: ruby-async-dns but it is not installed
Depends: ruby-em-websocket (>= 0.3.6) but it is not installed
Depends: ruby-erubis but it is not installed
Depends: ruby-espeak but it is not installed
Depends: ruby-execjs but it is not installed
Depends: ruby-maxmind-db but it is not installed
Depends: ruby-mime-types but it is not installed
Depends: ruby-msfrpc-client but it is not installed
Depends: ruby-otr-activerecord but it is not installed
Depends: ruby-parseconfig but it is not installed
Depends: ruby-qr4r but it is not installed
Depends: ruby-rack (>= 1.4.1) but it is not installed
Depends: ruby-rack-protection but it is not installed
Depends: ruby-rubydns (>= 0.7.0) but it is not installed
Depends: ruby-rushover but it is not installed
Depends: ruby-sinatra (>= 1.4.2) but it is not installed
Depends: ruby-slack-notifier but it is not installed
Depends: ruby-sqlite3 but it is not installed
Depends: ruby-term-ansicolor but it is not installed
Depends: ruby-twitter but it is not installed
Depends: ruby-uglifier (>= 2.2.1) but it is not installed
Depends: ruby-zip (>= 1.0.0) but it is not installed
Depends: thin but it is not installed
Recommends: geoipupdate but it is not installed
bettercap : Depends: libnetfilter-queue1 (>= 1.0.0) but it is not installed
brutespray : Depends: medusa but it is not installed
Recommends: nmap but it is not installed
changeme : Depends: python3-psycopg2 but it is not installed
Depends: python3-pysnmp4 but it is not installed
Depends: python3-redis but it is not installed
Depends: python3-selenium but it is not installed
Depends: python3-shodan but it is not installed
Depends: python3-sqlalchemy but it is not installed
Depends: python3-tabulate but it is not installed
cherrytree : Depends: libfmt7 (>= 7.1.3+ds1) but it is not installed
Depends: libgtksourceviewmm-3.0-0v5 (>= 3.18.0) but it is not installed
Depends: libxml++2.6-2v5 (>= 2.40.0) but it is not installed
commix : Depends: unicorn-magic (>= 3.12) but it is not installed
cpp-11 : Depends: gcc-11-base (= 11.2.0-10) but 11.2.0-9 is installed
crackmapexec : Depends: python3-impacket but it is not installed
Depends: python3-pywerview but it is not installed
Depends: python3-aioconsole but it is not installed
Depends: python3-lsassy but it is not installed
Depends: python3-msgpack but it is not installed
Depends: python3-neo4j but it is not installed
Depends: python3-pylnk but it is not installed
Depends: python3-pypsrp but it is not installed
Depends: python3-requests-ntlm but it is not installed
Depends: python3-termcolor but it is not installed
Depends: python3-terminaltables but it is not installed
Depends: python3-xmltodict but it is not installed
crowbar : Depends: freerdp2-x11 but it is not installed
dirsearch : Depends: python3-colorama but it is not installed
dnsgen : Depends: python3-click but it is not installed
dumpsterdiver : Depends: python3-colorama but it is not installed
Depends: python3-termcolor but it is not installed
eaphammer : Depends: python3-flask-socketio but it is not installed
Depends: python3-scapy but it is not installed
Depends: python3-tqdm but it is not installed
Depends: responder but it is not installed
Depends: seclists but it is not installed
emailharvester : Depends: python3-colorama but it is not installed
Depends: python3-termcolor but it is not installed
ettercap-common : Depends: ethtool but it is not installed
Depends: libluajit-5.1-2 (>= 2.0.4+dfsg) but it is not installed
Depends: libnet1 (>= 1.1.6) but it is not installed
eyewitness : Depends: python3-selenium but it is not installed
Depends: xvfb
finalrecon : Depends: python3-ipwhois but it is not installed
Depends: python3-dnslib but it is not installed
Depends: python3-aiohttp but it is not installed
Depends: python3-psycopg2 but it is not installed
firebird3.0-server-core : Depends: firebird3.0-common (= 3.0.7.33374.ds4-2) but 3.0.7.33374.ds4-3 is installed
Depends: firebird3.0-common-doc (= 3.0.7.33374.ds4-2) but 3.0.7.33374.ds4-3 is installed
Recommends: firebird3.0-utils but it is not installed
firewalk : Depends: libnet1 (>= 1.1.2.1) but it is not installed
freeradius : Depends: libct4 (>= 0.64) but it is not installed
Recommends: freeradius-utils but it is not installed
freeradius-wpe : Depends: libct4 (>= 0.64) but it is not installed
g++-11 : Depends: gcc-11-base (= 11.2.0-10) but 11.2.0-9 is installed
gcc-11 : Depends: gcc-11-base (= 11.2.0-10) but 11.2.0-9 is installed
gcc-11-base : Breaks: gcc-11-base:i386 (!= 11.2.0-9) but 11.2.0-10 is installed
gcc-11-base:i386 : Breaks: gcc-11-base (!= 11.2.0-10) but 11.2.0-9 is installed
gnuradio : Depends: python3-click but it is not installed
Depends: python3-click-plugins but it is not installed
Depends: python3-mako but it is not installed
Depends: python3-numpy but it is not installed
Depends: python3-pyqtgraph but it is not installed
Depends: liblog4cpp5v5 (>= 1.1.3) but it is not installed
Recommends: python3-networkx but it is not installed
Recommends: python3-scipy but it is not installed
gqrx-sdr : Depends: liblog4cpp5v5 (>= 1.1.3) but it is not installed
gr-air-modes : Depends: liblog4cpp5v5 (>= 1.1.3) but it is not installed
Recommends: python3-numpy but it is not installed
Recommends: python3-scipy but it is not installed
gr-iqbal : Depends: liblog4cpp5v5 (>= 1.1.3) but it is not installed
gr-osmosdr : Depends: liblog4cpp5v5 (>= 1.1.3) but it is not installed
Recommends: gr-fosphor but it is not installed
grokevt : Depends: reglookup but it is not installed
gstreamer1.0-plugins-bad : Depends: libaom0 (>= 1.0.0) but it is not installed
Depends: libdc1394-25 (>= 2.2.6) but it is not installed
Depends: libdca0 (>= 0.0.5) but it is not installed
Depends: libdvdnav4 (>= 4.1.3) but it is not installed
Depends: libfaad2 (>= 2.7) but it is not installed
Depends: libfluidsynth2 (>= 2.0.5) but it is not installed
Depends: libkate1 (>= 0.4.1) but it is not installed
Depends: libltc11 (>= 1.2.0) but it is not installed
Depends: libmjpegutils-2.1-0 but it is not installed
Depends: libmms0 (>= 0.4) but it is not installed
Depends: libmodplug1 (>= 1:0.8.8.5) but it is not installed
Depends: libmpcdec6 (>= 1:0.1~r435) but it is not installed
Depends: libmpeg2encpp-2.1-0 but it is not installed
Depends: libmplex2-2.1-0 but it is not installed
Depends: libnice10 (>= 0.1.14) but it is not installed
Depends: libofa0 (>= 0.9.3) but it is not installed
Depends: libopenal1 (>= 1.14) but it is not installed
Depends: libopenni2-0 (>= 2.2.0.33+dfsg) but it is not installed
Depends: libspandsp2 (>= 0.0.6~pre18) but it is not installed
Depends: libvo-aacenc0 (>= 0.1.3) but it is not installed
Depends: libvo-amrwbenc0 (>= 0.1.3) but it is not installed
Depends: libwildmidi2 (>= 0.2.3) but it is not installed
gstreamer1.0-plugins-good : Breaks: gstreamer1.0-plugins-good:i386 (!= 1.18.5-1) but 1.18.5-1+b1 is installed
gstreamer1.0-plugins-good:i386 : Breaks: gstreamer1.0-plugins-good (!= 1.18.5-1+b1) but 1.18.5-1 is installed
gvm : Depends: xsltproc
Recommends: greenbone-security-assistant (>= 21.4.2) but it is not installed
Recommends: gvm-tools but it is not installed
gvmd-common : Depends: xsltproc
hcxtools : Depends: ieee-data but it is not installed
hosthunter : Depends: python3-selenium but it is not installed
hydra : Depends: libfreerdp2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1) but it is not installed
Depends: libmemcached11 but it is not installed
Depends: libsvn1 (>= 1.10) but it is not installed
Depends: libwinpr2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1) but it is not installed
ibombshell : Depends: powershell but it is not installed
Depends: python3-termcolor but it is not installed
intel-media-va-driver : Breaks: intel-media-va-driver:i386 (!= 21.3.4+dfsg1-1) but 21.4.1+dfsg1-1 is installed
intel-media-va-driver:i386 : Breaks: intel-media-va-driver (!= 21.4.1+dfsg1-1) but 21.3.4+dfsg1-1 is installed
ipv6-toolkit : Depends: ieee-data but it is not installed
ivre : Depends: python3-bottle but it is not installed
Depends: python3-future but it is not installed
Depends: python3-mysqldb but it is not installed
Depends: python3-pil but it is not installed
Depends: python3-psycopg2 but it is not installed
Depends: python3-sqlalchemy but it is not installed
Recommends: nmap but it is not installed
jd-gui : Depends: default-jre but it is not installed
Depends: jarwrapper but it is not installed
kali-linux-arm : Depends: aircrack-ng but it is not installed
Depends: cewl but it is not installed
Depends: crunch but it is not installed
Depends: dnsrecon but it is not installed
Depends: john but it is not installed
Depends: medusa but it is not installed
Depends: mfoc but it is not installed
Depends: ncrack but it is not installed
Depends: nmap but it is not installed
Depends: passing-the-hash but it is not installed
Depends: windows-binaries but it is not installed
Depends: winexe but it is not installed
Depends: wpscan but it is not installed
Depends: cgpt
Depends: ethtool but it is not installed
Depends: libnfc-bin but it is not installed
Depends: vboot-utils
Depends: vboot-kernel-utils but it is not installed
kali-linux-default : Depends: autopsy but it is not installed
Depends: cutycapt but it is not installed
Depends: dirbuster but it is not installed
Depends: faraday but it is not installed
Depends: fern-wifi-cracker but it is not installed
Depends: guymager but it is not installed
Depends: king-phisher but it is not installed
Depends: legion but it is not installed
Depends: ophcrack but it is not installed
Depends: ophcrack-cli but it is not installed
Depends: gparted but it is not installed
Depends: rdesktop but it is not installed
Depends: recordmydesktop but it is not installed
Depends: sqlitebrowser but it is not installed
kali-linux-headless : Depends: aircrack-ng but it is not installed
Depends: arp-scan but it is not installed
Depends: arping but it is not installed or
iputils-arping
Depends: bulk-extractor but it is not installed
Depends: bully but it is not installed
Depends: cadaver but it is not installed
Depends: cewl but it is not installed
Depends: chntpw but it is not installed
Depends: creddump7 but it is not installed
Depends: crunch but it is not installed
Depends: cryptcat but it is not installed
Depends: davtest but it is not installed
Depends: dbd but it is not installed
Depends: dirb but it is not installed
Depends: dmitry but it is not installed
Depends: dns2tcp but it is not installed
Depends: dnschef but it is not installed
Depends: dnsenum but it is not installed
Depends: dnsrecon but it is not installed
Depends: enum4linux but it is not installed
Depends: exe2hexbat but it is not installed
Depends: ffuf but it is not installed
Depends: fierce but it is not installed
Depends: fping but it is not installed
Depends: gpp-decrypt but it is not installed
Depends: hash-identifier but it is not installed
Depends: hashcat but it is not installed
Depends: hashcat-utils but it is not installed
Depends: hashid but it is not installed
Depends: hping3 but it is not installed
Depends: i2c-tools but it is not installed
Depends: ike-scan but it is not installed
Depends: impacket-scripts but it is not installed
Depends: inetsim but it is not installed
Depends: iodine but it is not installed
Depends: john but it is not installed
Depends: kismet but it is not installed
Depends: lbd but it is not installed
Depends: macchanger but it is not installed
Depends: magicrescue but it is not installed
Depends: maltego but it is not installed
Depends: maskprocessor but it is not installed
Depends: masscan but it is not installed
Depends: mimikatz but it is not installed
Depends: mitmproxy but it is not installed
Depends: msfpc but it is not installed
Depends: nasm but it is not installed
Depends: nbtscan but it is not installed
Depends: ncrack but it is not installed
Depends: ncurses-hexedit but it is not installed
Depends: netdiscover but it is not installed
Depends: netsed but it is not installed
Depends: nikto but it is not installed
Depends: nmap but it is not installed
Depends: onesixtyone but it is not installed
Depends: passing-the-hash but it is not installed
Depends: patator but it is not installed
Depends: pdf-parser but it is not installed
Depends: pdfid but it is not installed
Depends: pipal but it is not installed
Depends: pixiewps but it is not installed
Depends: powersploit but it is not installed
Depends: proxytunnel but it is not installed
Depends: ptunnel but it is not installed
Depends: python3-impacket but it is not installed
这是apt list --upgradable
输出(再次部分输出):
afl++-doc/kali-rolling,kali-rolling 3.14c-2 all [upgradable from: 2.68c-1]
afl++/kali-rolling 3.14c-2 amd64 [upgradable from: 2.68c-1+b1]
amass-common/kali-rolling,kali-rolling 3.15.0-0kali1 all [upgradable from: 3.14.1-0kali1]
amass/kali-rolling 3.15.0-0kali1 amd64 [upgradable from: 3.14.1-0kali1]
apache2-bin/kali-rolling 2.4.51-2 amd64 [upgradable from: 2.4.51-1]
apache2-data/kali-rolling,kali-rolling 2.4.51-2 all [upgradable from: 2.4.51-1]
apache2-utils/kali-rolling 2.4.51-2 amd64 [upgradable from: 2.4.51-1]
apache2/kali-rolling 2.4.51-2 amd64 [upgradable from: 2.4.51-1]
apt/kali-rolling 2.3.11 amd64 [upgradable from: 2.3.9]
at-spi2-core/kali-rolling 2.42.0-2 amd64 [upgradable from: 2.42.0-1]
awscli/kali-rolling,kali-rolling 1.21.9-1 all [upgradable from: 1.20.53-1]
bash-completion/kali-rolling,kali-rolling 1:2.11-5 all [upgradable from: 1:2.11-4]
bash/kali-rolling 5.1-3.1 amd64 [upgradable from: 5.1-3+b2]
binutils-mingw-w64-i686/kali-rolling 2.37-7+9 amd64 [upgradable from: 2.35.2-2+8.11+b3]
binutils-mingw-w64-x86-64/kali-rolling 2.37-7+9 amd64 [upgradable from: 2.35.2-2+8.11+b3]
bsdextrautils/kali-rolling 2.37.2-4 amd64 [upgradable from: 2.37.2-3]
bsdutils/kali-rolling 1:2.37.2-4 amd64 [upgradable from: 1:2.37.2-3]
capstone-tool/kali-rolling 4.0.2-3+b1 amd64 [upgradable from: 4.0.2-3]
cherrytree/kali-rolling 0.99.43+dfsg-1 amd64 [upgradable from: 0.99.41+dfsg-1]
cpp-10/kali-rolling 10.3.0-12 amd64 [upgradable from: 10.3.0-11]
crackmapexec/kali-rolling,kali-rolling 5.1.7-0kali2 all [upgradable from: 5.1.7-0kali1]
cryptsetup-bin/kali-rolling 2:2.4.2-1 amd64 [upgradable from: 2:2.4.1-1]
cryptsetup-initramfs/kali-rolling,kali-rolling 2:2.4.2-1 all [upgradable from: 2:2.4.1-1]
cryptsetup/kali-rolling 2:2.4.2-1 amd64 [upgradable from: 2:2.4.1-1]
dislocker/kali-rolling 0.7.3-2+b1 amd64 [upgradable from: 0.7.3-2]
dnsmasq-base/kali-rolling 2.86-1.1 amd64 [upgradable from: 2.85-1]
dnsmasq/kali-rolling,kali-rolling 2.86-1.1 all [upgradable from: 2.85-1]
exfatprogs/kali-rolling 1.1.3-1 amd64 [upgradable from: 1.1.2-2]
exploitdb-bin-sploits/kali-rolling,kali-rolling 20211123-0kali1 all [upgradable from: 20210828-0kali1]
exploitdb-papers/kali-rolling,kali-rolling 20211117-0kali1 all [upgradable from: 20210826-0kali1]
exploitdb/kali-rolling,kali-rolling 20211118-0kali1 all [upgradable from: 20211016-0kali1]
eyewitness/kali-rolling 20211110.1-0kali1 amd64 [upgradable from: 20211018.1-0kali1]
fdisk/kali-rolling 2.37.2-4 amd64 [upgradable from: 2.37.2-3]
feroxbuster/kali-rolling 2.4.0-0kali1 amd64 [upgradable from: 2.3.3-0kali1]
file/kali-rolling 1:5.41-2 amd64 [upgradable from: 1:5.39-3]
firebird3.0-common-doc/kali-rolling,kali-rolling 3.0.8.33535.ds4-1 all [upgradable from: 3.0.7.33374.ds4-3]
firebird3.0-common/kali-rolling,kali-rolling 3.0.8.33535.ds4-1 all [upgradable from: 3.0.7.33374.ds4-3]
firebird3.0-server-core/kali-rolling 3.0.8.33535.ds4-1 amd64 [upgradable from: 3.0.7.33374.ds4-2]
forensic-artifacts/kali-rolling,kali-rolling 20211012-1 all [upgradable from: 20201106-1]
gcc-10-base/kali-rolling 10.3.0-12 amd64 [upgradable from: 10.3.0-11]
gcc-10/kali-rolling 10.3.0-12 amd64 [upgradable from: 10.3.0-11]
gcc-11-base/kali-rolling 11.2.0-10 amd64 [upgradable from: 11.2.0-9]
gdal-data/kali-rolling,kali-rolling 3.3.3+dfsg-1 all [upgradable from: 3.3.2+dfsg-2]
gir1.2-atspi-2.0/kali-rolling 2.42.0-2 amd64 [upgradable from: 2.42.0-1]
gir1.2-javascriptcoregtk-4.0/kali-rolling 2.34.1-1 amd64 [upgradable from: 2.34.0-1]
gir1.2-soup-2.4/kali-rolling 2.74.1-1 amd64 [upgradable from: 2.74.0-2]
gir1.2-vte-2.91/kali-rolling 0.66.1-1 amd64 [upgradable from: 0.64.2-3]
gnome-desktop3-data/kali-rolling,kali-rolling 41.1-1 all [upgradable from: 41.0-1]
gnuradio-dev/kali-rolling 3.8.2.0-15 amd64 [upgradable from: 3.8.2.0-14]
gnuradio/kali-rolling 3.8.2.0-15 amd64 [upgradable from: 3.8.2.0-14]
golang-src/kali-rolling,kali-rolling 2:1.17~1 amd64 [upgradable from: 2:1.16~1]
gqrx-sdr/kali-rolling 2.14.4-1+b1 amd64 [upgradable from: 2.14.4-1]
gr-osmosdr/kali-rolling 0.2.2-1+b6 amd64 [upgradable from: 0.2.2-1+b5]
greenbone-security-assistant-common/kali-rolling,kali-rolling 21.4.3-0kali1 all [upgradable from: 21.4.2-1]
gsettings-desktop-schemas/kali-rolling,kali-rolling 41.0-2 all [upgradable from: 41.0-1]
gstreamer1.0-plugins-good/kali-rolling 1.18.5-1+b1 amd64 [upgradable from: 1.18.5-1]
gvm/kali-rolling,kali-rolling 21.4.3~0kali1 all [upgradable from: 21.4.2.0]
gvmd-common/kali-rolling,kali-rolling 21.4.4-0kali2 all [upgradable from: 21.4.3-1]
gvmd/kali-rolling 21.4.4-0kali2 amd64 [upgradable from: 21.4.3-1]
hcxdumptool/kali-rolling 6.2.4-1 amd64 [upgradable from: 6.0.5-2]
hcxtools/kali-rolling 6.2.4-2 amd64 [upgradable from: 6.0.2-1+b1]
htshells/kali-rolling,kali-rolling 0.1~git20131205-1kali2 all [upgradable from: 0.1~git20131205-1kali1]
hydra-gtk/kali-rolling 9.2-1 amd64 [upgradable from: 9.1-1+b2]
hydra/kali-rolling 9.2-1 amd64 [upgradable from: 9.1-1+b2]
intel-media-va-driver/kali-rolling 21.4.1+dfsg1-1 amd64 [upgradable from: 21.3.4+dfsg1-1]
iproute2/kali-rolling 5.15.0-1 amd64 [upgradable from: 5.14.0-1]
iw/kali-rolling 5.16-1 amd64 [upgradable from: 5.9-3]
jd-gui/kali-rolling,kali-rolling 1.6.6-0kali1 all [upgradable from: 1.6.3-0kali1]
joplin/kali-rolling 2.6.2-0kali2 amd64 [upgradable from: 2.2.5-0kali2]
jupyter-core/kali-rolling,kali-rolling 4.9.1-1 all [upgradable from: 4.8.0-1]
kali-defaults-desktop/kali-rolling,kali-rolling 2021.4.5 all [upgradable from: 2021.4.2]
kali-defaults/kali-rolling,kali-rolling 2021.4.5 all [upgradable from: 2021.4.2]
kali-desktop-base/kali-rolling,kali-rolling 2021.4.2 all [upgradable from: 2021.4.1]
kali-legacy-wallpapers/kali-rolling,kali-rolling 2021.4.0 all [upgradable from: 2021.2.1]
kali-linux-arm/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-linux-core/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-linux-default/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-linux-headless/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-themes-common/kali-rolling,kali-rolling 2021.4.2 all [upgradable from: 2021.4.1]
kali-tools-802-11/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-tools-bluetooth/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-tools-gpu/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-tools-rfid/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-tools-sdr/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-tools-top10/kali-rolling 2021.4.6 amd64 [upgradable from: 2021.4.3]
kali-undercover/kali-rolling,kali-rolling 2021.4.0 all [upgradable from: 2021.1.2]
kali-wallpapers-2020.4/kali-rolling,kali-rolling 2021.4.0 all [upgradable from: 2021.2.1]
kali-wallpapers-2021.4/kali-rolling,kali-rolling 2021.4.0 all [upgradable from: 2021.2.1]
kali-wallpapers-legacy/kali-rolling,kali-rolling 2021.4.0 all [upgradable from: 2021.2.1]
kded5/kali-rolling 5.88.0-1 amd64 [upgradable from: 5.86.0-1]
kpackagetool5/kali-rolling 5.88.0-1 amd64 [upgradable from: 5.86.0-1]
kwayland-data/kali-rolling,kali-rolling 4:5.88.0-1 all [upgradable from: 4:5.86.0-1]
libaio1/kali-rolling 0.3.112-13 amd64 [upgradable from: 0.3.112-11]
libairspy0/kali-rolling 1.0.10-2 amd64 [upgradable from: 1.0.9-4]
libapache2-mod-php7.4/kali-rolling 7.4.21-1+deb11u1+b2 amd64 [upgradable from: 7.4.21-1+deb11u1+b1]
libapparmor1/kali-rolling 3.0.3-6 amd64 [upgradable from: 3.0.3-4]
libapt-pkg6.0/kali-rolling 2.3.11 amd64 [upgradable from: 2.3.9]
libatspi2.0-0/kali-rolling 2.42.0-2 amd64 [upgradable from: 2.42.0-1]
libaudit1/kali-rolling 1:3.0.6-1+b1 amd64 [upgradable from: 1:3.0.6-1]
libavcodec58/kali-rolling 7:4.4.1-1+b1 amd64 [upgradable from: 7:4.4-6+b2]
libavfilter7/kali-rolling 7:4.4.1-1+b1 amd64 [upgradable from: 7:4.4-6+b2]
libavformat58/kali-rolling 7:4.4.1-1+b1 amd64 [upgradable from: 7:4.4-6+b2]
libavutil56/kali-rolling 7:4.4.1-1+b1 amd64 [upgradable from: 7:4.4-6+b2]
libb-keywords-perl/kali-rolling,kali-rolling 1.23-1 all [upgradable from: 1.22-1]
libbcmail-java/kali-rolling,kali-rolling 1.68-5 all [upgradable from: 1.68-4]
libbcpkix-java/kali-rolling,kali-rolling 1.68-5 all [upgradable from: 1.68-4]
libbcprov-java/kali-rolling,kali-rolling 1.68-5 all [upgradable from: 1.68-4]
libblkid1/kali-rolling 2.37.2-4 amd64 [upgradable from: 2.37.2-3]
libboost-atomic1.74-dev/kali-rolling 1.74.0-13 amd64 [upgradable from: 1.74.0-9]
libboost-atomic1.74.0/kali-rolling 1.74.0-13 amd64 [upgradable from: 1.74.0-9]
libboost-chrono1.74-dev/kali-rolling 1.74.0-13 amd64 [upgradable from: 1.74.0-9]
libboost-chrono1.74.0/kali-rolling 1.74.0-13 amd64 [upgradable from: 1.74.0-9]
libboost-date-time1.74-dev/kali-rolling 1.74.0-13 amd64 [upgradable from: 1.74.0-9]
答案1
似乎您删除了 python3 和 ruby,现在您的桌面环境以及依赖于这两个包中任何一个的其他任何东西都不起作用。
Ctrl按键盘快捷键+ Alt+打开纯文本虚拟控制台F3。
在
login:
提示符处输入您的用户名并按Enter。在
Password:
提示符处输入您的用户密码并按Enter。通过运行以下命令重新安装默认的 Python 3 版本和默认的 ruby 版本:
sudo apt install python3-all ruby
在删除默认桌面环境的依赖包之前,您已经安装了“默认”Kali Linux 桌面环境。重新安装默认的 Kali Linux 桌面环境。
sudo apt update sudo apt install -y kali-linux-default
通过按键盘快捷键Ctrl+ Alt+退出虚拟控制台,退出F2虚拟控制台并返回桌面环境。
答案2
这这是在 Ubuntu 上执行此操作的方法,但您可以根据您的问题进行调整。
为了防止链接失效,我将在这里总结一下:
从 LiveCD (LiveUSB) 启动。进入终端:
sudo mount /dev/sda1 /mnt
在这里我们假设您有一个根目录/dev/sda1
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
这可以让你为接下来要做的事情做好准备。这很重要,因为/dev
、/proc
、 和/sys
是特殊目录,它们包含的文件是虚拟生成的,代表系统的内部工作原理。
sudo chroot /mnt
这将使该终端会话的根目录成为您上面安装的目录。
sudo apt update
sudo apt upgrade
现在。如果这不起作用,那么这可能是一个更严重的问题。从你的描述来看,它可能就是其中之一。您可能需要执行以下操作:
sudo dpkg -i package.deb
不幸的是,我没有 GUI 在 Kali 上工作所需的软件包列表,我真的希望你没有破坏dpkg
它自己。你也没有核武器X.org。