Results 1 to 12 of 12

Thread: Problem using apt-get upgrade / libpcap

  1. #1

    Problem using apt-get upgrade / libpcap

    I messed something up with libpcap and can't figure out how to correct it..

    when i run apt-get upgrade i get the following error.. please help..

    running kali rolling

    Code:
    root@atreyu:~# apt-get upgrade 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     libpcap0.8 : Breaks: libpcap0.8:i386 (!= 1.8.1-3) but 1.4.0-2 is installed
     libpcap0.8:i386 : Breaks: libpcap0.8 (!= 1.4.0-2) but 1.8.1-3 is installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    but then when i run apt --fix-broken install i get the following:
    Code:
    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:
      empathy-common espeak-data firebird2.5-common firebird2.5-common-doc gir1.2-clutter-gst-2.0 gir1.2-gkbd-3.0 gir1.2-gtop-2.0 gir1.2-javascriptcoregtk-3.0 gir1.2-webkit-3.0 gir1.2-xkl-1.0 gnome-icon-theme-symbolic gnome-packagekit-session
      golang-go.tools golang-golang-x-tools gstreamer1.0-clutter gstreamer1.0-nice hwdata imagemagick-common java-wrappers libadns1 libarchive-extract-perl libasn1-8-heimdal libavcodec56 libavdevice55 libavformat56 libavresample2 libavutil54
      libbasicusageenvironment0 libbind9-90 libboost-atomic1.61.0 libboost-chrono1.61.0 libboost-date-time1.61.0 libboost-filesystem1.61.0 libboost-program-options1.61.0 libboost-python1.55.0 libboost-regex1.61.0 libboost-serialization1.61.0
      libboost-system1.61.0 libboost-test1.61.0 libboost-thread1.61.0 libboost-timer1.61.0 libcamel-1.2-49 libcamel-1.2-57 libchamplain-gtk-0.12-0 libchromaprint0 libclass-method-modifiers-perl libclass-xsaccessor-perl libclutter-gst-2.0-0
      libcpan-changes-perl libcpan-meta-perl libcrypto++6 libcrypto++9 libdata-perl-perl libdata-section-perl libdbus-1-dev libdns100 libdvbpsi9 libecal-1.2-16 libedataserver-1.2-18 libedataserver-1.2-21 libegl1-mesa-drivers libept1.4.12 libespeak1
      libexiv2-13 libexporter-tiny-perl libfarstream-0.2-5 libfile-slurp-perl libfreerdp-rail1.1 libgdata19 libgdict-1.0-6 libgetopt-long-descriptive-perl libgif4 libglew1.10 libgphoto2-port10 libgrilo-0.2-1 libgroupsock1 libgtkglext1 libgtop2-7
      libgupnp-igd-1.0-4 libhcrypto4-heimdal libhdb9-heimdal libheimbase1-heimdal libhiredis0.10 libhunspell-1.3-0 libhx509-5-heimdal libical1a libilmbase6 libimobiledevice4 libimport-into-perl libinput5 libintl-perl libintl-xs-perl libio-stringy-perl
      libisc95 libisccc90 libisccfg90 libjasper1 libjavascriptcoregtk-3.0-0 libjim0.75 libkrb5-26-heimdal liblinear1 liblircclient0 liblist-moreutils-perl liblivemedia23 liblog-message-perl liblog-message-simple-perl liblouis2 liblwres90
      libmediaart-1.0-0 libmicrohttpd10 libmimic0 libmission-control-plugins0 libmodule-build-perl libmodule-load-conditional-perl libmodule-pluggable-perl libmodule-signature-perl libmono-2.0-dev libmono-addins-gui0.2-cil libmono-addins0.2-cil
      libmono-c5-1.1-cil libmono-cil-dev libmono-codecontracts4.0-cil libmono-compilerservices-symbolwriter4.0-cil libmono-cscompmgd0.0-cil libmono-custommarshalers4.0-cil libmono-db2-1.0-cil libmono-debugger-soft4.0a-cil
      libmono-entityframework-sqlserver6.0-cil libmono-entityframework6.0-cil libmono-http4.0-cil libmono-management4.0-cil libmono-messaging-rabbitmq4.0-cil libmono-microsoft-build4.0-cil libmono-microsoft-visualc10.0-cil libmono-npgsql4.0-cil
      libmono-opensystem-c4.0-cil libmono-oracle4.0-cil libmono-parallel4.0-cil libmono-peapi4.0a-cil libmono-rabbitmq4.0-cil libmono-relaxng4.0-cil libmono-simd4.0-cil libmono-smdiagnostics0.0-cil libmono-system-componentmodel-composition4.0-cil
      libmono-system-data-datasetextensions4.0-cil libmono-system-data-entity4.0-cil libmono-system-data-services4.0-cil libmono-system-deployment4.0-cil libmono-system-drawing-design4.0-cil libmono-system-dynamic4.0-cil
      libmono-system-io-compression-filesystem4.0-cil libmono-system-io-compression4.0-cil libmono-system-json-microsoft4.0-cil libmono-system-json4.0-cil libmono-system-ldap-protocols4.0-cil libmono-system-management4.0-cil
      libmono-system-net-http-formatting4.0-cil libmono-system-net-http-webrequest4.0-cil libmono-system-net-http4.0-cil libmono-system-net4.0-cil libmono-system-numerics-vectors4.0-cil libmono-system-reactive-core2.2-cil
      libmono-system-reactive-debugger2.2-cil libmono-system-reactive-experimental2.2-cil libmono-system-reactive-interfaces2.2-cil libmono-system-reactive-linq2.2-cil libmono-system-reactive-observable-aliases0.0-cil
      libmono-system-reactive-platformservices2.2-cil libmono-system-reactive-providers2.2-cil libmono-system-reactive-runtime-remoting2.2-cil libmono-system-reactive-windows-forms2.2-cil libmono-system-reactive-windows-threading2.2-cil
      libmono-system-reflection-context4.0-cil libmono-system-runtime-durableinstancing4.0-cil libmono-system-runtime-interopservices-runtimeinformation4.0-cil libmono-system-servicemodel-discovery4.0-cil libmono-system-servicemodel-routing4.0-cil
      libmono-system-servicemodel-web4.0-cil libmono-system-serviceprocess4.0-cil libmono-system-threading-tasks-dataflow4.0-cil libmono-system-web-abstractions4.0-cil libmono-system-web-dynamicdata4.0-cil libmono-system-web-extensions-design4.0-cil
      libmono-system-web-http-selfhost4.0-cil libmono-system-web-http-webhost4.0-cil libmono-system-web-http4.0-cil libmono-system-web-mobile4.0-cil libmono-system-web-regularexpressions4.0-cil libmono-system-web-routing4.0-cil
      libmono-system-windows-forms-datavisualization4.0a-cil libmono-system-windows4.0-cil libmono-system-workflow-activities4.0-cil libmono-system-workflow-componentmodel4.0-cil libmono-system-workflow-runtime4.0-cil
      libmono-system-xml-serialization4.0-cil libmono-tasklets4.0-cil libmono-web4.0-cil libmono-webmatrix-data4.0-cil libmonoboehm-2.0-1 libmonoboehm-2.0-dev libmonosgen-2.0-1 libmonosgen-2.0-dev libmoo-perl libmoox-handlesvia-perl libmusicbrainz5-1
      libnamespace-autoclean-perl libnice10 libnm-glib-vpn1 libnm-gtk-common libnma-common libntdb1 libnunit-cil-dev libnunit-console-runner2.6.3-cil libnunit-core-interfaces2.6.3-cil libnunit-core2.6.3-cil libnunit-framework2.6.3-cil
      libnunit-mocks2.6.3-cil libnunit-util2.6.3-cil libopencv-contrib2.4v5 libopencv-legacy2.4v5 libopencv-ml2.4v5 libopenexr6 libopenjpeg5 libopenvg1-mesa libpackage-constants-perl libparams-validate-perl libpath-tiny-perl libperl4-corelibs-perl
      libpff1 libplist2 libpng12-0 libpod-latex-perl libpod-markdown-perl libpod-readme-perl libpoppler46 libpostproc52 libpth20 libpython-dbg libpython2.7-dbg libqmi-glib1 libqscintilla2-11 libqtwebkit-dev libquvi-scripts libquvi7 libradare2-0.9.6
      libregexp-common-perl libregfi0 libroken18-heimdal librole-tiny-perl librygel-core-2.4-2 librygel-renderer-2.4-2 librygel-server-2.4-2 libschroedinger-1.0-0 libsctp1 libsgutils2-2 libsoftware-license-perl libsoundtouch0 libstrictures-perl
      libswscale3 libtask-weaken-perl libtelepathy-farstream3 libterm-ui-perl libtext-soundex-perl libtext-template-perl libtre5 libturbojpeg1 libtype-tiny-perl libtype-tiny-xs-perl libunicode-utf8-perl liburcu2 libusageenvironment1 libusbmuxd2
      libv8-3.14.5 libvncclient0 libvpx1 libwebkitgtk-3.0-0 libwebp5 libwebpdemux1 libwebpmux1 libwebrtc-audio-processing-0 libwildmidi1 libwind0-heimdal libx264-142 libxapian22 libxcb-composite0 mono-csharp-shell msgpack-python python-adns
      python-apsw python-async python-cffi python-characteristic python-ctypeslib python-cups python-dbg python-dbus-dev python-distlib python-easygui python-ecdsa python-levenshtein python-magic python-metaconfig python-ntdb python-oauth
      python-pyatspi python-pycparser python-pycryptopp python-pyqtgraph python-pyregfi python-qt4-gl python-qt4-phonon python-smbc python-tidylib python-twisted-conch python-twisted-lore python-twisted-mail python-twisted-names python-twisted-news
      python-twisted-runner python-twisted-words python2.7-dbg reglookup-doc ruby-rainbow ruby-rexec ruby2.1-dev system-config-printer telepathy-gabble telepathy-logger telepathy-mission-control-5 telepathy-salut udisks vlc-nox
    Use 'apt autoremove' to remove them.
    The following additional packages will be installed:
      libpcap0.8:i386
    The following packages will be upgraded:
      libpcap0.8:i386
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    Need to get 0 B/144 kB of archives.
    After this operation, 38.9 kB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Reading changelogs... Done
    (Reading database ... 451000 files and directories currently installed.)
    Preparing to unpack .../libpcap0.8_1.8.1-3_i386.deb ...
    Unpacking libpcap0.8:i386 (1.8.1-3) over (1.4.0-2) ...
    dpkg: error processing archive /var/cache/apt/archives/libpcap0.8_1.8.1-3_i386.deb (--unpack):
     trying to overwrite shared '/usr/share/doc/libpcap0.8/CREDITS.gz', which is different from other instances of package libpcap0.8:i386
    Errors were encountered while processing:
     /var/cache/apt/archives/libpcap0.8_1.8.1-3_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    FYI
    Code:
    root@atreyu:~# uname -r
    4.9.0-kali3-amd64
    please help.. i was trying to fix reaver, looking at this post: https://null-byte.wonderhowto.com/fo...-dead-0168056/

    help please

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    It's a brutish solution, but I'd try apt-get install kali-linux-full. That should overwrite your entire install with the latest packages from the repos.

  3. #3
    i tried that and this error pops out

    dpkg: error processing archive /tmp/apt-dpkg-install-IwhUlo/183-libpcap0.8_1.8.1-3_i386.deb (--unpack):
    trying to overwrite shared '/usr/share/doc/libpcap0.8/CREDITS.gz', which is different from other instances of package libpcap0.8:i386
    .
    .
    .
    Errors were encountered while processing:
    /tmp/apt-dpkg-install-IwhUlo/183-libpcap0.8_1.8.1-3_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  4. #4
    hello

    dpkg --configure -a

    which will try to install any package not properly installed in a gentle way
    If this does not work try

    apt-get install -f

    or

    dpkg -i --force-overwrite /usr/share/doc/libpcap0.8/CREDITS.gz

    or

    apt-get purge libpcap0.8

  5. #5
    do you thinik this is related to my other post : https://forums.kali.org/showthread.p...0348#post70348

  6. #6
    prob purge and reinstall

  7. #7
    now im getting problems with other things:
    Code:
    root@atreyu:~# dpkg --configure -a
    Setting up kismet (2016.07.R1-1) ...
    dpkg: error processing package kismet (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of kali-linux-full:
     kali-linux-full depends on kismet; however:
      Package kismet is not configured yet.
    
    dpkg: error processing package kali-linux-full (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of giskismet:
     giskismet depends on kismet; however:
      Package kismet is not configured yet.
    
    dpkg: error processing package giskismet (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     kismet
     kali-linux-full
     giskismet
    root@atreyu:~# apt-get install -f 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up kismet (2016.07.R1-1) ...
    dpkg: error processing package kismet (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of kali-linux-full:
     kali-linux-full depends on kismet; however:
      Package kismet is not configured yet.
    
    dpkg: error processing package kali-linux-full (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of giskismet:
     giskismet depends on kismet; however:
      Package kismet is not configured yet.
    
    dpkg: error processing package giskismet (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     kismet
     kali-linux-full
     giskismet
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  8. #8
    apt-get remove --purge libpcap0.8:i386
    apt-get install libpcap0.8:i386
    apt-get -f install
    apt-get configure -a

  9. #9
    can you explain the last command there?
    Code:
    root@atreyu:~# apt-get configure -a
    E: Command line option 'a' [from -a] is not understood in combination with the other options.

  10. #10
    apt-get --configure -a

  11. #11
    no good for me...

    Code:
    root@atreyu:~# apt-get --configure -a
    E: Command line option --configure is not understood in combination with the other options
    root@atreyu:~# apt-get -configure -a
    E: Opening configuration file onfigure - ifstream::ifstream (2: No such file or directory)

  12. #12
    lol cheers
    dpkg --configure -a
    dpkg -f install

Similar Threads

  1. Upgrade problem
    By Nithish685 in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2019-12-03, 21:56
  2. Problem with apt-get upgrade
    By Stefan.W in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2015-10-14, 15:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •