PDA

View Full Version : Problem with update on new install Nexus 5



RChadwick
2019-01-25, 07:44
I reset and rooted my Nexus 5, and then installed Nethunter 3.0. After running Nethunter, I'm unable to add Metapackages. Running apt-get update fails with a bunch of errors:

W: Failed to fetch http://security.kali.org/kali/dists/sana/updates/contrib/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://http.kali.org/kali/dists/sana/non-free/binary-armhf/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

I tried modifying the sources.list file, and symptoms changed, and I could actually install a few packages, but others fail, apt-get update fails, and Metapackages fail.

How can I fix updates?

Thanks!

B4DB0Y_21
2019-02-01, 06:31
Try this:
wget -q -O - archive.kali.org/archive-key.asc | apt-key add

bigbiz
2019-02-20, 03:23
So what did you chnge sources.list to?

RChadwick
2019-02-27, 18:10
I modified it many times, and don't remember them all :) After lots of messing around, I found a post about the repositories, and changed it to this:

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

I stopped getting errors, but now I can't seem to do anything. Before, I believe a terminal window was left open after the repository failed, and I used that window to run apt-get. Now I can't get that terminal window back. In the Nethunter app, there doesn't appear to be any way to open a terminal directly. If I run the Nethunter Terminal app, I get a choice between kali, android, and androidsu. If I choose kali, it just exits (leaving messages about 'no title', and about Nethunter Terminal being granted SU permissions), but if I choose either of the Android ones, I can't do much in the terminal. sudo apt-get returns a not found error. Same with wifite, which I believe I installed (Maybe I wiped, so not sure), although aircrack-ng runs.

While clicking 'check app update' in the Nethunter App never worked, I found and installed the latest app. Not sure if that's a factor.

re4son
2019-02-28, 03:38
I modified it many times, and don't remember them all :) After lots of messing around, I found a post about the repositories, and changed it to this:

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

Looks good


I found and installed the latest app. Not sure if that's a factor.
Did you try this one?
https://github.com/offensive-security/nethunter-app/releases/tag/v2019.1

That version should solve the problem of the terminal window exiting on you.

bigbiz
2019-03-01, 00:56
My guess is you may have messed something up with the install when changing around the repos so many times.
Can you boot into recovery mode (twrp?) and reinstall the nethunter image, then reconfigure the repo (again!), then try to update!

RChadwick
2019-03-09, 07:43
Thanks for the help. I've flashed new images, and updates are good now.

bigbiz
2019-03-12, 01:56
Good to know