2

I am using kali linux and not able to update the packages. So I can't install any software. The error message says: Unable to locate package

I've tried a lot but no improvements, kindly tell me how to install those packages.

4
  • Please take a look: black-cybersec-crew.blogspot.de/2014/07/… Commented Aug 3, 2015 at 13:40
  • previously i refered the same link but still getiing errors for some packages while updating
    – Raghu
    Commented Aug 3, 2015 at 14:03
  • You say now "for some packages"? Didn't you mean "So I can't install any software." ? Commented Aug 3, 2015 at 14:07
  • I found that bro .. when im went to another network the updation was successful .. may be my organization firewall blocked me .. Anyway thanq .....plesae tell me is ther any way to get rid of those firwalls
    – Raghu
    Commented Aug 4, 2015 at 12:29

2 Answers 2

1

There might be three reasons if a package can't be located

a) Ensure the package you were locating belongs to the package site which was listed under sources.list file

b)Ensure that your network firewall whitelist the packages which listed under the files of sources.list,you could check it by pinging the native url

C)sometimes if squid have been used you need to ask your network administrator to bypass restrictions

hope it helps

0

This is what happens when apt-get install command isn't working:

Image 1

To fix it,

  1. open a terminal and type:

    leafpad /etc/apt/sources.list
    

I suggest you to copy and paste it.

  1. Once done, you'll see something like this.

This is a Text editor

  1. Replace its contains by the followings.

    deb http://http.kali.org/kali kali-rolling main contrib non-free
    

    # For source package access, use the following line

    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Copy and paste.

Then save it.

  1. Close the editor and test it by:

    apt-get update
    

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .