Results 1 to 1 of 1

Thread: Enabling Network Repositories / Fixing Corrupt sources.list File

  1. #1

    Lightbulb Enabling Network Repositories / Fixing Corrupt sources.list File

    This is a how to guide to enable Network Repositories, if during the setup of Kali you didn't:

    • Have Internet access for whatever reason (e.g. no drivers, incorrect IP/subnet/proxy, it dropped etc)
    • Didn't select to use them


    ... then network repositories would NOT have been added.
    This will be an issue when you try and use 'apt-get install <package_name>' to install a new package or upgrade current ones.

    The issue
    Here are some screens, showing signs of the network repositories will not be configured to be used.

    Images are from a "Text Install". Graphical install will have the same message(s) displayed.

    During your install, you must select here to use it (next screen will ask for proxy information - if it's required):

    Images are from a "Text Install". Graphical install will have the same message(s) displayed.


    Solution
    In a terminal window, paste the following:
    Code:
    cat <<EOF > /etc/apt/sources.list
    deb http://http.kali.org/kali sana main non-free contrib
    deb-src http://http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
    deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
    EOF
    
    apt-get update
    Troubleshooting
    If you are still facing issues using network repositories, please share the output of:
    Code:
    curl -sI http://http.kali.org/README
    This is because http.kali.org and security.kali.org are load balancers. They will automatically redirect you to the closest mirror based on your GeoIP.

    Example output:
    root@kali:~# curl -sI http://http.kali.org/README
    HTTP/1.1 302 Found
    Date: Sat, 29 Aug 2015 14:52:29 GMT
    Server: Apache/2.2.22 (Debian)
    X-MirrorBrain-Mirror: ftp.free.fr
    X-MirrorBrain-Realm: country
    Link: <http://http.kali.org/README.meta4>; rel=describedby; type="application/metalink4+xml"
    Link: <http://ftp.free.fr/pub/kali/README>; rel=duplicate; pri=1; geo=fr
    Link: <http://mirror.pcextreme.nl/kali/README>; rel=duplicate; pri=2; geo=nl
    Link: <http://ftp.halifax.rwth-aachen.de/kali/README>; rel=duplicate; pri=3 geo=de
    Location: http://ftp.free.fr/kali/README

    Vary: Accept-Encoding
    Content-Type: text/html; charset=iso-8859-1

    root@kali:~#
    ...as well as the exact error message(s) that's on screen.
    Without both bits of information, it's hard to know which mirror is having issues (and what the issues are!)


    Useful links


    Any off topic replies will be deleted.
    Last edited by g0tmi1k; 2015-09-04 at 11:50.
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

Similar Threads

  1. Replies: 2
    Last Post: 2016-02-12, 13:17
  2. No data in Sources.list file
    By rcaca0 in forum General Archive
    Replies: 1
    Last Post: 2015-09-01, 23:06

Posting Permissions

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