How to Fix E: "Unable to Locate Package" Error in Kali Linux - 2024

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2024
  • How to Fix E: "Unable to Locate Package" Error in Kali Linux - 2024
    Note: Right click on the Desktop, and then Click on 'Open in Terminal'.
    Step 1: Open sources.list file by command below:-
    nano /etc/apt/sources.list
    Step 2: Go to the link in the comments below:
    ...and and then scroll down to 'using kali linux' version, under that click on the link 'Kali sources.list Repositories.'
    Update: Go to the link below to find Regular repositories and Source repositories
    Step 3: Now, copy the Regular repositories and Source repositories from there, and then paste in sources.list file.
    Step 4: Now, again try to install the package, you won't get the error.
    It's done
    Thanks for watching, please like and subscribe!! 🔔
    #fix #UnableToLocatePackageError #kalilinux #easyfix
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 87

  • @HansSec
    @HansSec  7 หลายเดือนก่อน +4

    Here is the link my friends :D
    www.kali.org/docs/general-use/

  • @BWPTduada
    @BWPTduada 5 หลายเดือนก่อน

    appreciate it boss man got my linux runnin keep up the vids man

  • @etadcomputer3992
    @etadcomputer3992 หลายเดือนก่อน

    I found this video is the right solution. Thanks sir!

  • @Helianthus_Promotions
    @Helianthus_Promotions 3 หลายเดือนก่อน

    Only Person i met given 100% solution , Thanks Bro

  • @Kelvin.kTokpo
    @Kelvin.kTokpo หลายเดือนก่อน

    You saved me bro. Thank you very much

  • @Gokashi-xt7vd
    @Gokashi-xt7vd 4 หลายเดือนก่อน

    very helpful video ' Thanks

  • @Targeted_in_America
    @Targeted_in_America 2 หลายเดือนก่อน +1

    won't let me rewrite file or save as a different file

  • @badassbantai
    @badassbantai 4 หลายเดือนก่อน +1

    Thank you boss

  • @HassanAhmed-xe2rn
    @HassanAhmed-xe2rn 4 วันที่ผ่านมา

    Thank you bro ❤️

  • @gurjitsingh-hj8br
    @gurjitsingh-hj8br 2 หลายเดือนก่อน

    Working thanks sir

  • @enzoiriarte3015
    @enzoiriarte3015 5 หลายเดือนก่อน +2

    you are the king

  • @SheikhAhmad-cq1fg
    @SheikhAhmad-cq1fg หลายเดือนก่อน

    It is giving me the same message when i start to install lynis
    PLEASE HELP!!!

  • @user-wl7zn7dz9k
    @user-wl7zn7dz9k หลายเดือนก่อน

    its work on usb live presistency or not

  • @MysteryJoy
    @MysteryJoy 27 วันที่ผ่านมา

    after sudo nano section i couldn't remove(backspace) the source list.....how do i do that

    • @HansSec
      @HansSec  27 วันที่ผ่านมา +1

      try opening a new text file. And go back with ctrl X and then, yes, and hit enter

  • @muhammaddanial2054
    @muhammaddanial2054 5 หลายเดือนก่อน

    thank you

  • @ahmadmansour4206
    @ahmadmansour4206 6 หลายเดือนก่อน

    TY

  • @emil9396
    @emil9396 12 วันที่ผ่านมา +1

    Thanks brother♥️ l see that Azerbaijan,good job 👍🏻

  • @iMEONG
    @iMEONG 2 หลายเดือนก่อน

    thanks you bro, its work

  • @mirkodelorenzo3755
    @mirkodelorenzo3755 3 หลายเดือนก่อน +1

    did it but i got the same error...dont know why...when i use apt get update or upgrade it doesnt work, shows some errors with the update..pleeeeaseeeee im going insane lol

    • @HansSec
      @HansSec  3 หลายเดือนก่อน

      are you running under your admin privileges?? If your are not sure try adding "sudo" like: sudo apt update

  • @ANANDCUBIC
    @ANANDCUBIC 10 วันที่ผ่านมา

    Yes I have successfully fixed my "unable to locate packages".

  • @vilaiyattupillai5744
    @vilaiyattupillai5744 4 หลายเดือนก่อน

    Which short key you used 2 times .i can't understand please help me anyone

    • @HansSec
      @HansSec  4 หลายเดือนก่อน

      "sudo nano" to enter, then ctrl x to exit. If you have other doubt let me know. Im sorry I've been out these past weeks. I'll shortly work on another updated video and how you can install scrcpy too!

  • @filtered_fuel
    @filtered_fuel 4 หลายเดือนก่อน

    I can't rewrite the file. It said that "Error writing /etc/apt/sources.list: Permission denied". Pls help

    • @HansSec
      @HansSec  4 หลายเดือนก่อน +1

      make sure you're running with admin privileges, try typing sudo and then the command, it'll ask for your password and then try running it back, let me know if it still shows the same message after that please!

    • @CYBER-SHADOW714
      @CYBER-SHADOW714 2 หลายเดือนก่อน

      Bro it's not working

  • @harounoumarissa9469
    @harounoumarissa9469 21 วันที่ผ่านมา

    Thank

  • @vilaiyattupillai5744
    @vilaiyattupillai5744 4 หลายเดือนก่อน

    How do install scrcpy

  • @THE___DARK-KNIGHT03
    @THE___DARK-KNIGHT03 หลายเดือนก่อน

    Hwo to save the file ?

  • @amoorygamer5447
    @amoorygamer5447 29 วันที่ผ่านมา

    my linux is keeping runing so many cods it has been hour like that and its not stoping please help

    • @HansSec
      @HansSec  29 วันที่ผ่านมา

      @@amoorygamer5447 what is it showing you??

  • @user-ks6zz1du1z
    @user-ks6zz1du1z 3 หลายเดือนก่อน +1

    How to rewrite

  • @omarmaksoud7440
    @omarmaksoud7440 29 วันที่ผ่านมา

    BRO THX VERYYYYYYY MUCH..I WATCHED 999 NON OF THEM HELPED ME...THXXXXXXXXXXXX

  • @marky5643
    @marky5643 4 หลายเดือนก่อน

    Thankyou for your video but I can't rewrite the file. It said that "Error writing /etc/apt/sources.list: Permission denied". Pls help

    • @marky5643
      @marky5643 4 หลายเดือนก่อน +1

      oh I got it. I have to add 'sudo' in order to rewrite it

    • @HansSec
      @HansSec  4 หลายเดือนก่อน

      ​@@marky5643 that's right my friend! Anything else let me know!

    • @A-L-L-in-O-N-E
      @A-L-L-in-O-N-E 4 หลายเดือนก่อน

      Yah you can also do root everything before do it and then go for it

    • @ainanadhirah
      @ainanadhirah 4 หลายเดือนก่อน +1

      i dont get it, where to type the sudo?
      SEND HELP@@marky5643

  • @asbadlani5893
    @asbadlani5893 หลายเดือนก่อน

    Permission denied at the time of saving, when pressing ctrl+x and then yes and then enter.
    It displays permission denied

    • @asbadlani5893
      @asbadlani5893 หลายเดือนก่อน

      Finally solved🎉

    • @ArwaAbdulaziz-j7p
      @ArwaAbdulaziz-j7p 21 วันที่ผ่านมา

      @@asbadlani5893how did you solve it please i got the same error

  • @Motivate_Sphere0
    @Motivate_Sphere0 16 วันที่ผ่านมา

    Not solve😢 but good effort so i m gonna subscribe you man ❤

    • @HansSec
      @HansSec  16 วันที่ผ่านมา

      @@Motivate_Sphere0 What is it showing you??
      Appreciate the sub boss ❤️
      Trying to get some more content to the channel, its not easy between work and college but I hope to come with more useful videos and maybe an update on this one as well soon!

  • @Randompsev
    @Randompsev 5 หลายเดือนก่อน

    I'm trying to install kali nethunter on my phone and it gives me this problem i can't fix it i already watched 10 videos about that problem but still nothing i don't know what to do but thank you

    • @HansSec
      @HansSec  5 หลายเดือนก่อน +1

      Feel you bro.. installing nethunter on your phone is a little bit different. I will try to make a video this coming week explaining it and also post it on my website. Thank you actually for bringing that to the table!!
      Stay tuned bro so you can check it when I finish the tutorial!

    • @Randompsev
      @Randompsev 5 หลายเดือนก่อน

      @@HansSec thanks bro

    • @HansSec
      @HansSec  5 หลายเดือนก่อน

      My pleasure chef 🫡@@Randompsev

  • @existentialism_01
    @existentialism_01 5 หลายเดือนก่อน

    thanks but i can't still install the package , it still says unable to locate , it is giving me headaches already lol

    • @HansSec
      @HansSec  5 หลายเดือนก่อน

      Bro if its not working still, try this..
      Use the df -h to figure out if there is any partition that may be full.
      Now if when see a partition that might be causing the problem, type du -h | sort -h, this will show you the directories and files that are consuming the most space
      Also try clearing cache, try with rm -rf ~/. cache/*
      Another option can be transferring your data to another partition using the df command and -h for reading which ones has more space left, or actually extending the lengh of your partition that is out of space if you have room left in your drive, for that type sudo parted /dev/sdX
      Type print to visualize the current state of your disk and verify if indeed you have room in it.
      After that, type mklabel and specify the type of partition typing msdos, type enter and next type mkpart, run the print command again and check if the partition was successfully created.
      Let me know please!

    • @existentialism_01
      @existentialism_01 5 หลายเดือนก่อน

      @@HansSec i already installed windows 10 with dualboot on kali 😂😂😂 so i don't have the problem , thanks for taking your time and responding my comment. Good luck ❤️

    • @naughtyboys2381
      @naughtyboys2381 4 หลายเดือนก่อน

      ​@@existentialism_01bro did that fix , having the same problem

    • @existentialism_01
      @existentialism_01 4 หลายเดือนก่อน

      yeah it did , entirely wiped whole system and installed fresh one with dualboot.@@naughtyboys2381

    • @ABHI690
      @ABHI690 3 หลายเดือนก่อน

      bro tell me how to fix im getting this problem

  • @vichauhan6875
    @vichauhan6875 2 หลายเดือนก่อน +1

    Still getting same error

    • @HansSec
      @HansSec  24 วันที่ผ่านมา

      What does it show to you??

  • @THE___DARK-KNIGHT03
    @THE___DARK-KNIGHT03 หลายเดือนก่อน +1

    At 2:34 what did your press there

    • @HansSec
      @HansSec  หลายเดือนก่อน

      Ctrl X to save the file name, and then just hit Enter

    • @THE___DARK-KNIGHT03
      @THE___DARK-KNIGHT03 หลายเดือนก่อน

      @@HansSec okay thanks sir

  • @therealAngelXV
    @therealAngelXV 24 วันที่ผ่านมา

    How do i rewrite the file?

    • @HansSec
      @HansSec  24 วันที่ผ่านมา

      @@therealAngelXV ctrl X and then hit Enter my bro

    • @therealAngelXV
      @therealAngelXV 24 วันที่ผ่านมา

      @@HansSec mb, I'm new to all this stuff, ty

    • @HansSec
      @HansSec  24 วันที่ผ่านมา

      @@therealAngelXV we all are here to learn together bro ❤️
      Any other question let me know!

  • @user-qc5ms3mc4f
    @user-qc5ms3mc4f 6 หลายเดือนก่อน +2

    Unable to locate package

  • @PhanXuanViet
    @PhanXuanViet 3 หลายเดือนก่อน

    i love you

  • @gowthaman5689
    @gowthaman5689 6 หลายเดือนก่อน +3

    bro i still cant install any this

    • @HansSec
      @HansSec  6 หลายเดือนก่อน +1

      I'm currently working on a video for a new fix bro, by the moment, try updating the repositories you'll be installing on, if you are not sure of the package name you can use the apt command to search for a partial package names, and also make sure the name of the packages are correct. Hope that works better, if not please let me know!

    • @gowthaman5689
      @gowthaman5689 6 หลายเดือนก่อน

      @@HansSec thanks bro it works

    • @HansSec
      @HansSec  6 หลายเดือนก่อน

      ​@@gowthaman5689 So glad to hear bro! I'll be uploading a new video with an alternative also for the ones the fix doesn't work yet though. Thanks for being on top bro appreciate it! 👊

  • @A-L-L-in-O-N-E
    @A-L-L-in-O-N-E 4 หลายเดือนก่อน +2

    Still not fix

    • @HansSec
      @HansSec  4 หลายเดือนก่อน +1

      What does it show bro??

    • @A-L-L-in-O-N-E
      @A-L-L-in-O-N-E 4 หลายเดือนก่อน +1

      @@HansSec same unable to locate package now i have installed by dual booting now one problem that is wifi driver not available

    • @A-L-L-in-O-N-E
      @A-L-L-in-O-N-E 4 หลายเดือนก่อน +1

      I have downloaded the driver but it is not suitable for my laptop

  • @ShivanshGiri-nn3ig
    @ShivanshGiri-nn3ig 2 หลายเดือนก่อน

    Would you like to make a group of hackers I mean a group like anonymous.

  • @boruto8641
    @boruto8641 2 หลายเดือนก่อน

    i love u

  • @kyle5548
    @kyle5548 6 หลายเดือนก่อน

    Help me bro ,
    Its telling me that No space left on this device while their is (my whole system is empty)
    And
    Tty(1-6) error
    Please 🙏 help

    • @HansSec
      @HansSec  6 หลายเดือนก่อน

      I'll be working on a video about it soon, but try this in the meantime:
      Use the df -h to figure out which partition may be full.
      Now if you see a partition that might be causing the problem, type du -h | sort -h, this will show you the directories and files that are consuming the most space
      Also try clearing cache, this command should work fine rm -rf ~/. cache/*
      Another option can be transferring your data to another partition using the df command and -h for reading which ones has more space left, or actually extending the lengh of your partition that is out of space if you have room left in your drive, for that type sudo parted /dev/sdX
      Type print to visualize the current state of your disk and verify if indeed you have room in it.
      After that, type mklabel and specify the type of partition typing msdos, type enter and next type mkpart, run the print command again and check if the partition was successfully created.
      Hope this helps bro, I'll be bringing a new video about it and mixing it with an update to this one as well this coming week. Anything el else just let me know and how that went!

    • @kyle5548
      @kyle5548 6 หลายเดือนก่อน

      ​@@HansSec
      /dev/nvme0n1p9 ext4 70G 69G 0 100% / ,,,, what should i do now && and thanks for replying bro

    • @HansSec
      @HansSec  6 หลายเดือนก่อน

      @@kyle5548 sure of course bro!
      Ok, well that means that you might have your disk connected through a NVM Express port.
      Now, to take an easier look of your disk and partitioning structure use the command lsblk and -files to look the device names on it.
      This being said bro, you should be able to figure out if theres actually or not available room, the most logical fix would be to extend the capability of your current partition, or creating and using an extra one.
      Those are the alternatives that have previously worked for me, I'm actually working to figure out if theres something ese in these cases, and in my next video this week I'll be showing that! But try this in the meantime bro.

  • @naughtyboys2381
    @naughtyboys2381 4 หลายเดือนก่อน

    When i went for apt upgrade , it took about 10 minutes and upgraded about 500 items

    • @HansSec
      @HansSec  4 หลายเดือนก่อน +1

      Haha it happens ;D

  • @vilaiyattupillai5744
    @vilaiyattupillai5744 4 หลายเดือนก่อน +2

    How do install scrcpy

    • @PAWLO-K4E
      @PAWLO-K4E หลายเดือนก่อน

      Same bro you find a solution ?!