현재 운영 체제인 Kali를 Kali 버전 2017.2로 업그레이드한 후 소프트웨어를 설치할 수 없습니다.
sudo apt-get install<package name>
내가 뭘 한거지
나는 사용했다
sudo apt-get update
sudo apt-get dist-upgrade
reboot
그리고 업그레이드 후
다음과 같은 오류가 발생합니다.
E:Unable to Locate package
다시 업그레이드를 시도했지만 여전히 동일합니다.
저장소(kali linux의 롤링 저장소의 내용을 다시 저장) 세부 사항을 변경하고 동일하게 수행했지만 동일한 작업이 계속됩니다.
그 후 나는
다음과 같이 했다
apt update ; apt full-upgrade -y ; apt autoremove -y
피해를 복구하라고 하더군요apt --fix-broken install
깨진 링크를 설치하려고 하면 다음 오류가 발생합니다.
root@Pavan:~# apt --fix-broken 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:
apache2-data apache2-utils castxml chrome-gnome-shell espeak-data fakeroot
firebird2.5-common firebird2.5-common-doc gccxml gdebi-core
gir1.2-clutter-gst-2.0 gir1.2-gkbd-3.0 gir1.2-xkl-1.0 git-man
gnome-characters gnome-icon-theme-symbolic gnome-logs gnome-mime-data
gnupg-agent gnuplot-tex gnuplot5-data gnuplot5-qt gstreamer1.0-packagekit
hwdata imagemagick-common iproute java-wrappers libadns1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libasn1-8-heimdal
libbasicusageenvironment0 libbind9-90 libblas-common libbonobo2-0
libbonobo2-common libboost-filesystem1.58.0 libboost-python1.58.0
libboost-system1.58.0 libboost-thread1.58.0 libcamel-1.2-54 libchromaprint0
libclutter-gst-2.0-0 libconfig9 libcrypto++6 libcrypto++9v5
libdirectfb-1.2-9 libdns100 libebook-1.2-16 libedataserver-1.2-21 libespeak1
libevent-core-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5
libfakeroot libgadu3 libgdict-1.0-9 libgdict-common libgeos-3.5.0
libgfortran3 libgif4 libgles1-mesa libglew1.13 libgmime-2.6-0 libgnome-2-0
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra
libgrilo-0.2-1 libgroupsock1 libgssapi3-heimdal libgtkglext1 libgtop-2.0-10
libhcrypto4-heimdal libhdb9-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhunspell-1.3-0 libhx509-5-heimdal libical1a
libilmbase6v5 libisc95 libisccc90 libisccfg90 libjasper1
libjavascriptcoregtk-1.0-0 libjim0.76 libjpeg9 libjs-mochikit
libkdc2-heimdal libkrb5-26-heimdal libladr4 liblircclient0 liblivemedia23
libllvm3.7 liblouis9 liblua5.1-0 liblwres90 libmeanwhile1 libmimic0
libnm-glib-vpn1 libnm-gtk-common libntdb1 libonig2 libopencv-contrib2.4v5
libopencv-legacy2.4v5 libopencv-ml2.4v5 libopenexr6v5 liborbit-2-0
libpango1.0-0 libpangox-1.0-0 libpcre16-3 libpng12-0 libpoppler57
libpotrace0 libprotobuf-c1 libproxy1-plugin-gsettings
libproxy1-plugin-networkmanager libptexenc1 libpth20 libpython-all-dev
libpython3.4-minimal libpython3.4-stdlib libqdbm14 libqgsttools-p1
libqmi-glib1 libqt5multimedia5-plugins libqt5multimediawidgets5
libquvi-scripts libquvi7 libradare2-0.9.9 libregfi0 libroken18-heimdal
libsynctex1 libtexlua52 libtexluajit2 libtracker-control-1.0-0
libtracker-miner-1.0-0 libtracker-sparql-1.0-0 libtrio2 libtsk13
libunistring0 liburcu4 libusageenvironment1 libusbmuxd2 libvncclient1
libwebkitgtk-1.0-0 libwebpdemux1 libwebpmux1 libwebrtc-audio-processing-0
libwildmidi1 libwind0-heimdal libwireshark6 libwiretap5 libwsutil6 libx86-1
libxcb-composite0 libzephyr4 libzip2 libzzip-0-13 lmodern maltegoce nginx
perl-openssl-defaults php-common php-mysql php5-cli php5-json php5-readline
php7.0-common php7.0-mysql pidgin-data prover9 python-adns python-alembic
python-all python-all-dev python-boltons python-bson python-bson-ext
python-characteristic python-cheetah python-clamd python-cluster
python-ctypeslib python-d2to1 python-dap python-darts-lib-utils-lru
python-dbus-dev python-defusedxml python-distlib python-easygui python-ecdsa
python-editor python-esmre python-formencode python-geoip2 python-geojson
python-gitdb python-gridfs python-guess-language python-halberd
python-icalendar python-ipaddr python-keyring python-keyrings.alt
python-levenshtein python-lzma python-lzo python-markdown python-maxminddb
python-metaconfig python-mpltoolkits.basemap python-msgpack
python-ndg-httpsclient python-nltk python-ntdb python-opengl python-openid
python-paste python-pastedeploy python-pastedeploy-tpl python-pastescript
python-pdfminer python-phply python-pip python-pip-whl python-ply
python-psutil python-pyatspi python-pybloomfiltermmap python-pycryptopp
python-pygithub python-pymongo python-pymongo-ext python-pyotp python-pypdf
python-pyqtgraph python-pyscard python-qrcode python-qt4-gl
python-ruamel.ordereddict python-scgi python-secretstorage python-smmap
python-smoke-zephyr python-soappy python-stopit python-svn python-tblib
python-tempita python-tidylib python-tzlocal python-vulndb python-webkit
python-wheel python-wstools python-xdot python3.4 python3.4-minimal
read-edid rsync ruby-rainbow ruby-rexec ruby-snmp ruby2.2-dev
system-config-printer t1utils tex-common u3-tool vim-gui-common vlc-nox
vpnc-scripts
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
gnuplot-data vlc-bin
The following NEW packages will be installed:
gnuplot-data vlc-bin
0 upgraded, 2 newly installed, 0 to remove and 107 not upgraded.
27 not fully installed or removed.
Need to get 0 B/295 kB of archives.
After this operation, 779 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 304842 files and directories currently installed.)
Preparing to unpack .../gnuplot-data_5.0.7+dfsg1-1_all.deb ...
Unpacking gnuplot-data (5.0.7+dfsg1-1) ...
dpkg: error processing archive /var/cache/apt/archives/gnuplot-data_5.0.7+dfsg1-1_all.deb (--unpack):
trying to overwrite '/usr/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz-common.tex', which is also in package gnuplot-tex 4.6.6-3
Preparing to unpack .../vlc-bin_2.2.6-6_amd64.deb ...
Unpacking vlc-bin (2.2.6-6) ...
dpkg: error processing archive /var/cache/apt/archives/vlc-bin_2.2.6-6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/cvlc', which is also in package vlc-nox 2.2.1-5+b1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gnuplot-data_5.0.7+dfsg1-1_all.deb
/var/cache/apt/archives/vlc-bin_2.2.6-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
내 버전에 대한 추가 정보
DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_CODENAME=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2017.2"
VERSION_ID="2017.2"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.kali.org/"
SUPPORT_URL="http://forums.kali.org/"
하지만 문제가 해결되지 않았습니다. 도와주세요.
미리 감사드립니다
파완
답변1
나는 다음과 같은 방법으로 이 문제를 해결했다.
목록을 강제로, 장황하게 삭제하려면 다음 안내를 따르세요.
sudo rm /var/lib/apt/lists/* -vf
그런 다음 다음과 같이 손상된 문제를 해결하려고 했습니다.
sudo apt --fix-broken install
그런 다음 불필요한 650MB 파일을 삭제합니다.
sudo apt-get autoremove
마침내:
sudo apt-get update
답변2
오류는 에서 발생하며 vlc-nox
, 설치되었지만 더 이상 필요하지 않은 패키지 목록에 있습니다.
vlc-bin
불행하게도, fix-broken은 다른 패키지를 제거하지 않고 다른 vlc 패키지를 설치하려고 합니다 . 따라서 제거하고 vlc-nox
실행하십시오 sudo apt-get install --fix-broken
.
sudo apt-get remove vlc-nox
의 경우 E:Unable to Locate package
추가 출력이 없으면 무슨 일이 일어나고 있는지 알 수 없습니다. 전체 출력을 제공하십시오.