I can't get anything to install via apt-get and I'm using Kali 1.0. I also can't get notepadqq to install. How can I get this to work?

root@kali:~/Desktop# apt-get update

Err http://­security.kali.org sana/updates Release.gpg      

  Could not resolve '­security.kali.org'

Err http://­http.kali.org sana Release.gpg    

  Could not resolve '­http.kali.org'

Reading package lists... Done     

W: Failed to fetch http://­http.kali.org/kali/dists/sana/Release.gpg  Could not resolve '­http.kali.org'

W: Failed to fetch http://­security.kali.org/­kali-security/dists/sana/updates/Release.gpg  Could not resolve '­security.kali.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.

root@kali:~/Desktop# apt-get upgrade

Reading package lists... Done

Building dependency tree       

Reading state information... Done

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@kali:~/Desktop# apt-get notepadqq

E: Invalid operation notepadqq

root@kali:~/Desktop# apt-get install notepadqq

Reading package lists... Done

Building dependency tree       

Reading state information... Done

E: Unable to locate package notepadqq

root@kali:~/Desktop# cat /etc/apt/sources.list

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

deb-src http://­http.kali.org/kali sana main non-free contrib

deb http://­security.kali.org/­kali-security/ sana/updates main contrib non-free

deb-src http://­security.kali.org/­kali-security/ sana/updates main contrib non-freeroot@kali:~/Desktop# 

  • a) did you apt-get update and apt-get upgrade before you attempted to do this? b) can you post the content of cat /etc/apt/sources.list? – Dee Hendrick Dec 24 '15 at 6:30
  • Question edited. Please check – Joe_Vj _95 Dec 24 '15 at 6:31
  • OK, that's too much, you should put content like that in a pastebin.com page. In any case, it's cat /etc/apt/sources.list that we need. – Dee Hendrick Dec 24 '15 at 6:33
  • Post readited. Please check once again – Joe_Vj _95 Dec 24 '15 at 6:37

Change your repositories to:

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

Then next, I'd recommend just using gedit, which is in the repositories; otherwise, you should build notepadqq from source::

$ git clone https://github.com/notepadqq/notepadqq.git $ cd notepadqq notepadqq$ ./configure --prefix /usr notepadqq$ make notepadqq$ sudo make install

per: https://github.com/notepadqq/notepadqq

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.