Hax4us / Nethunter-In-Termux

This is a script by which you can install Kali nethunter (Kali Linux) in your termux application without rooted phone
GNU General Public License v3.0
2.41k stars 331 forks source link

Signature error while apt update #13

Closed manjitsaha closed 6 years ago

manjitsaha commented 6 years ago

printf "\nnameserver 8.8.8.8" > /etc/resolv.conf

How to do this

manjitsaha commented 6 years ago

Okay... I did that.. now got another error..

W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.

manjitsaha commented 6 years ago

I got the above error while. Doing

apt-get update

Hax4us commented 6 years ago

Edit your sources.list file and add trusted=yes like deb [trusted=yes] http........... Means just add [trusted=yes] between deb and http

manjitsaha commented 6 years ago

In Com.termux/home/kali/etc/apt/sources.list

Hax4us commented 6 years ago

Yes

manjitsaha commented 6 years ago

Still getting that error

root@localhost:~# apt update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org

Hax4us commented 6 years ago

apt show python is working or not ?

manjitsaha commented 6 years ago

root@localhost:~# apt show python

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: can not open /var/lib/apt/lists/http.kali.org_kali_dists_kali-rolling_Release - fopen (13: Permission denied) E: The package lists or status file could not be parsed or opened.

Hax4us commented 6 years ago

What is your architecture ? And also tell your phone is rooted or not

manjitsaha commented 6 years ago

Now i think apt python worked. But not not update command

root@localhost:~# apt show python

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

root@localhost:~# apt update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org root@localhost:~#

manjitsaha commented 6 years ago

I have rooted phone . Otherwise tell. I was not able to edit startkali file

Hax4us commented 6 years ago

Can you try apt-get update with root permissions

manjitsaha commented 6 years ago

root@localhost:~# apt-get update W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org root@localhost:~#

manjitsaha commented 6 years ago

startkali

root@localhost:~# apt-get update W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org root@localhost:~#

manjitsaha commented 6 years ago

root@localhost:~# apt-get update

W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org

root@localhost:~#

manjitsaha commented 6 years ago

Cpu architecture --- aarch64

Instruction sets --- arm64-v8a

Kernel architecture -- aarch64

Hax4us commented 6 years ago

Can you revert your changes means just remove [trusted=yes] from sources.list and then execute given command wget -q -O - archive.kali.org/archive-key.asc | apt-key add Then again try apt-get update

manjitsaha commented 6 years ago

root@localhost:~# wget -q -O - archive.kali.org/archive-key.asc | apt-key add Warning: apt-key output should not be parsed (stdout is not a terminal) root@localhost:~# apt-get update root@localhost:~#

Is that supposed???

manjitsaha commented 6 years ago

root@localhost:~# wget -q -O -

archive.kali.org/archive-key.asc | apt-key

add

Warning: apt-key output should not be

parsed (stdout is not a terminal)

root@localhost:~# apt-get update

root@localhost:~#

manjitsaha commented 6 years ago

And also no command is working..

Ls, clear nothing is working

manjitsaha commented 6 years ago

Well.. i can't see the directories using ls command. But... I am able to change directory..

roott@localhost:~# ls root@localhost:~# cd /var/www root@localhost:/var/www#

Hax4us commented 6 years ago

Remove whole Kali folder and reinstall to confirm the error . Then first you have to do wget -q -O - archive.kali.org/archive-key.asc | apt-key add and then apt-get update

manjitsaha commented 6 years ago

It means.. i have to run that kalinethunter Again.

manjitsaha commented 6 years ago

Okay.. now this is stucked at this..

You are going to install Kali Nethunter in termux ;) Cool

[] Checking host architecture ... [] Updating termux ... $

manjitsaha commented 6 years ago

Okay... I reinstalled kali..

Now... I did what u said

root@localhost:~# wget -q -O - archive.kali.org/archive-key.asc | apt-key add gpg: no valid OpenPGP data found. root@localhost:~# root@localhost:~# apt-get update Err:1 http://http.kali.org/kali kali-rolling InRelease Temporary failure resolving 'http.kali.org' Reading package lists... Done W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Temporary failure resolving 'http.kali.org' W: Some index files failed to download. They have been ignored, or old ones used instead.

mikeit commented 6 years ago

pkg install dirmngr gnupg

https://wiki.termux.com/wiki/Package_Management

mikeit commented 6 years ago

first of to have the error. Uninstall Termux and first install pkg install dirmngr gnupg https://wiki.termux.com/wiki/Package_Management

firstbon commented 6 years ago

i made it with this, apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6 what problem can already be closed?

ghost commented 1 year ago

patching mirrorlist temporarily until further source update don t worry about gpg errors

I faced this error, please help