Results 1 to 2 of 2

Thread: How to reinstall packages without internet connection

  1. #1
    Join Date
    2014-Jun
    Posts
    2

    How to reinstall packages without internet connection

    I had a problem a few weeks ago where installing mono (C# ide for linux) caused the GUI to fail to start and all drivers related to internet also failed. Xorg commands caused a crash and Xorg -configure gave me a message that was very strange... "more monitors than devices" error popped up...

    Is it possible to, "repair" kali linux by reinstalling packages from a USB? If so, how do you do so?

  2. #2
    Join Date
    2014-Jun
    Location
    Greece
    Posts
    133
    Hi C1ph3r1324

    To be honest, I don't know if you can "repair" your kali installation, but if I was you I could try this:

    All the packages you downloaded are stored in /var/cache/apt/archives. From another machine, or a live kali you can install debsums. (debsums - check the MD5 sums of installed Debian packages)
    It will be stored in /var/cache/apt/archives/debsums_2.0.52_all.deb

    Copy and install debsums to your broken machine and run it with --changed option which will only list modified files or with --config it will verify only the configuration files.

    If (you will ) find any broken files, you can identify them to which deb package they belong by running:
    Code:
    dpkg --search /path/to/your/broken/file
    Now, you can reinstall the broken package by executing:

    Code:
    apt-get --reinstall install broken_package_name
    Good luck!
    Last edited by Nick_the_Greek; 2014-06-25 at 05:48. Reason: typo

Similar Threads

  1. I can't set up Internet connection on my Kali
    By TNcosmo in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2021-03-23, 14:48
  2. Internet Connection
    By Diegodejesus2325 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-05-12, 05:27

Posting Permissions

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