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.

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

    Example output:
    root@kali:~# curl -sI
    HTTP/1.1 302 Found
    Date: Sat, 29 Aug 2015 14:52:29 GMT
    Server: Apache/2.2.22 (Debian)
    X-MirrorBrain-Realm: country
    Link: <>; rel=describedby; type="application/metalink4+xml"
    Link: <>; rel=duplicate; pri=1; geo=fr
    Link: <>; rel=duplicate; pri=2; geo=nl
    Link: <>; rel=duplicate; pri=3 geo=de

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

    root@kali:~# 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: (Offline PDF version)
    Bugs Reporting & Tool Requests:
    Kali Tool List, Versions & Man Pages:

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