Jump to content

Recommended Posts

Hi, I have a nexus 5 and I've installed Kali nethunter on there with no problems but I've tried to run commands such as apt-get update, apt-get install ect.. but it always says err 404 and the E: failed to fetch some archives maybe run apt-get update or try with --fix-missing? Can anyone please help explain how I can fix this, thanks  

Link to comment
Share on other sites

17 minutes ago, Rkiver said:

https://github.com/offensive-security/kali-nethunter/issues/592

 

A quick google gives that, while it is for the Nexus 6, it then linked to http://security.kali.org/README which covered what the issue was and how to resolve it.

 

 

I've found that but there is no instructions or information on how to change the repositories on a nexus 5?

Link to comment
Share on other sites

You shouldn't need to change repositories. The tools are specific to NetHunter, don't try installing some third party repo of tools or from the main desktop branches, they need to be for the android devices from the NetHunter repos. Kali NetHunter will have the proper repos for it(although might not have rolling in the default downloads form our site).

Make sure you have an internet connection on the device and then try the meta packages to install them in bundles for what you need. 

https://github.com/offensive-security/kali-nethunter/wiki/NetHunter-Chroot-Manager 

If these still fail, try removing and installing one from the nightly builds. - https://build.nethunter.com/nightly/

You'll have to figure out which above is the version you need from the nightly files though. I don't have a Nethunter compatible device, so I can't test along side you, but NetHunter is one that a lot of people use, and support is more community driven by other users. Check the Kali forums as well, they probably have answered similar issues before. forums.kali.org There is an entire section devoted to NetHunter questions and issues.

 

Good luck!

Link to comment
Share on other sites

1 hour ago, digip said:

You shouldn't need to change repositories. The tools are specific to NetHunter, don't try installing some third party repo of tools or from the main desktop branches, they need to be for the android devices from the NetHunter repos. Kali NetHunter will have the proper repos for it(although might not have rolling in the default downloads form our site).

Make sure you have an internet connection on the device and then try the meta packages to install them in bundles for what you need. 

https://github.com/offensive-security/kali-nethunter/wiki/NetHunter-Chroot-Manager 

If these still fail, try removing and installing one from the nightly builds. - https://build.nethunter.com/nightly/

You'll have to figure out which above is the version you need from the nightly files though. I don't have a Nethunter compatible device, so I can't test along side you, but NetHunter is one that a lot of people use, and support is more community driven by other users. Check the Kali forums as well, they probably have answered similar issues before. forums.kali.org There is an entire section devoted to NetHunter questions and issues.

 

Good luck!

Thanks dude! Really appreciate your help, I'll try some of those things now!

Link to comment
Share on other sites

On 09/05/2017 at 5:27 PM, NOOB2017 said:

Hi, I have a nexus 5 and I've installed Kali nethunter on there with no problems but I've tried to run commands such as apt-get update, apt-get install ect.. but it always says err 404 and the E: failed to fetch some archives maybe run apt-get update or try with --fix-missing? Can anyone please help explain how I can fix this, thanks  

Hi,

 

My friend you need absolutely to change your sources list if you don't want troubles in the futur.

Go to play store and install root browser: https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree&hl=en

After installation go to: data/local/nhsystem/kali-armhf/etc/apt/sources.list

Delete anything inside txt file and add the last sources:

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

 

After that,all should be ok for any update.

Link to comment
Share on other sites

Try:
su -c bootkali
cat /etc/apt/sources.list
If you're on security.kali.org, you can switch to sana (pre 2.0 rolling) by changing to old.kali.org for your sources (which may be removed in the future)
or change to
deb http://http.kali.org/kali kali-rolling main contrib non-free
to be on the latest kali rolling and then update. I would usggest using the gui app for chroot and package updating, but you can change your source list for udpates.

The root for nethunter is /data/local/kali-armhf/ and not your phones default /etc, so keep in mind what/where you are in the system, since you dont want to mess with the android's OS side, let the chroot do its job. You shouldn't need third party apps, except the Offsec NetHunter app
 

Link to comment
Share on other sites

8 hours ago, Dedsec_Nethunter said:

Hi,

 

My friend you need absolutely to change your sources list if you don't want troubles in the futur.

Go to play store and install root browser: https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree&hl=en

After installation go to: data/local/nhsystem/kali-armhf/etc/apt/sources.list

Delete anything inside txt file and add the last sources:

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

 

After that,all should be ok for any update.

It worked!!! Thanks dude

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...