Friday, January 10, 2014

Fixing Kali linux errors. (startx not found, "oh no! something has gone wrong" etc)

After your fresh install of kali, you might run into some problems.
One of them consists of the login screen missing and returning:

"Oh no! Something has gone wrong.
A problem has occured and the system can't recover. Please contact a system administrator"
To fix this issue (a temporary fix), press CTRL+ALT+F1, it will take you to the terminal. From there, check if you can use the command "startx"

If you get the following error:

root@kali:~#startx
-bash: startx: command not found
The problem would be that you don't have the x window system functioning yet, install it by using the command:
  apt-get install x-window-system
Let it install and from there, you should be able to access your graphical user interface using "startx"

Don't forget to make sure that all your packages are up to date.
Please leave a link if you copy this tutorial.


Apres une installation de kali linux, vous avez peut etre rencontrée la probleme suivante:


"Oh Mince, quelque chose s'est mal passé
Oh mince! Quelque chose s'est mal passé. Un problème est survenu et le système ne peut pas se récupérer. Déconnectez-vous et essayez à nouveau.
"
Pour resoudre cette probleme (resolution temporaire), appuiyez sur CTRL+ALT+F1, pour ouvrir le  terminal.Dans le terminal, voyez si vous pouvez executer la commande "startx"

Si il retourne l'erreur suivante:

root@kali:~#startx
-bash: startx: command not found
Il est possible que vous n'avez pas encore la systeme de fenetre X (x window system) installée, ulilisez cette commande pout l'installer:
  apt-get install x-window-system
Laisse installer, Apres installation, vous pouvez maintenant acceder a l'interface graphique avec la commande "startx"

Verifiez que tous vos paquets sont mis a jour.
Veuillez laisser un indice si vous copiez ce guide.

29 comments:

  1. Hello. I have this problem. I pressed CTRL+ALT+F1, than I login with root and my password. When I typed "startx" it returned "command not found". Than I tried "apt-get install x-window-system" but it returned "Unable to fetch some archives, maybe run "apt-get update" or try with --fix missing?" I tried to update but it says "Some index files failed to doenload. They have been ignored, or old ones used instead.".
    I have installed Kali Linux 1.0.6 64-bit (dual boot with Windows 8.1). And in installation I have chosed my laptop's wifi modem. Thanks for your help.

    ReplyDelete
    Replies
    1. Hello, please try to test the network connectivity first using a ping. (ex "ping www.google.com")
      if it does not return any data or returns an error, the problem might be on the network connection.

      If the network connection works, then the problem might be in your mirror files, try using a different mirror/source for your packages.

      Delete
    2. Hi Eliris, I met the same problem, plus I got no network connection. I wonder how you can configure network via this terminal? Thank you!

      Delete
  2. it keeps saying apt-get install x-window-system permission denied.

    ReplyDelete
    Replies
    1. hello you may had login as a user instead of root and if so you can just try typing "sudo apt-get install x-window system"

      Delete
  3. Me sale:

    Kali GNU/ Linux 1.0.6 kali tty1

    Kali login:
    Password:

    Y no puedo escribir en el password :/

    ReplyDelete
    Replies
    1. Cuando escribes en el password no se ve lo que estás tecleando, pero sí estás escribiendo.

      Delete
    2. This is step by step how to fixs or resolves problem Kali GNU/Linux 1.0.7 kali tty1 caused by lost or removed GNOME Desktop Environment

      # apt-get update # apt-get install xorg # startx

      Note: The steps above need internet connection, so you need to connect your pc to wifi or LAN. Here iam use wifi connection.
      To connect wifi, follow below instructions :
      Okay, I'm going to try and answer your question, even though there is no terminal output included in your question.
      The command ifconfig wlan0 does not turn on your wireless card. It gives you information about your wlan0. To turn on your wireless card, you would enter ifconfig wlan0 up. Although, it's not always wlan0. To find out the name of your wireless card, type iwconfig, and look at the row that has some information in it, not 'no wireless extensions'.
      To be able to run the commands ifconfig wlan0 up, iwconfig wlan0 essid name key password and dhclient wlan0, you need to be root. So, you have to put the word sudo before those commands (unless you're already logged in as root).
      The password in the command iwconfig wlan0 essid name key password should be in hexadecimal. If you want to type the ASCII password, you would use iwconfig wlan0 essid name key s:password.
      The command iwconfig wlan0 essid name key password only works with access points that use WEP as encryption. If the access point uses WPA/WPA2, you'll have to use another method to connect, found here: How do I connect to a WPA wifi network using the command line?
      Also, might I ask, is there a reason why you're trying to connect to a WiFi network through command line? Unless you're experimenting of course. Source: http://askubuntu.com/questions/294257/connect-to-wifi-network-through-ubuntu-terminal
      After you follows step by step above intructions, i am pretty sure that you has login linux in GUI. The last one is you open terminal and type this command
      # apt-get install gnome-core kali-defaults kali-root-login desktop-base
      # reboot

      Now your linux boot normally and the problem fixed.

      Delete
    3. Login: root
      Password: yourpassword

      Delete
  4. so what is the permanent fix?

    ReplyDelete
  5. thnx pro is work :)

    ReplyDelete
  6. yes thanks so much. now i success to fix it

    ReplyDelete
  7. What is the permanent fix?

    ReplyDelete
  8. i can't fix it :'(

    ReplyDelete
  9. This is step by step how to fixs or resolves problem Kali GNU/Linux 1.0.7 kali tty1 caused by lost or removed GNOME Desktop Environment

    # apt-get update
    # apt-get install xorg
    # startx

    Note: The steps above need internet connection, so you need to connect your pc to wifi or LAN. Here iam use wifi connection.
    To connect wifi, follow below instructions :
    Okay, I'm going to try and answer your question, even though there is no terminal output included in your question.
    The command
    # ifconfig wlan0 does not turn on your wireless card. It gives you information about your wlan0. To turn on your wireless card, you would enter
    #ifconfig wlan0 up. Although, it's not always wlan0. To find out the name of your wireless card, type iwconfig, and look at the row that has some information in it, not 'no wireless extensions'.
    To be able to run the commands ifconfig wlan0 up,
    # iwconfig wlan0 essid name key password and dhclient wlan0, you need to be root. So, you have to put the word sudo before those commands (unless you're already logged in as root).
    The password in the command iwconfig wlan0 essid name key password should be in hexadecimal. If you want to type the ASCII password, you would use iwconfig wlan0 essid name key s:password.
    The command iwconfig wlan0 essid name key password only works with access points that use WEP as encryption. If the access point uses WPA/WPA2, you'll have to use another method to connect, found here: How do I connect to a WPA wifi network using the command line?
    Also, might I ask, is there a reason why you're trying to connect to a WiFi network through command line? Unless you're experimenting of course. Source: http://askubuntu.com/questions/294257/connect-to-wifi-network-through-ubuntu-terminal
    After you follows step by step above intructions, i am pretty sure that you has login linux in GUI. The last one is you open terminal and type this command
    # apt-get install gnome-core kali-defaults kali-root-login desktop-base
    # reboot

    Now your linux boot normally and the problem fixed.

    ReplyDelete
  10. Thank you. Saved a lot of time and a possible reinstall.

    ReplyDelete
  11. Awesome , I got it up and running again !! Thanks a million

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. hi, the fix works for me, but the background of kali is like crashed, lines are crossing the background, and some icons in applications menu doesnt appear or you cant see them when i clic on it the pop up but not knowing what i just opend.... any suggestion?

    ReplyDelete
  14. After # apt-get install x-window-system # startx, I'm getting the error of "Segmentation fault"

    ReplyDelete
  15. Kali Linux 2.0 has the same error.
    Was not able to fix.
    Crtl Alt F1 worked
    Logged in as root
    Password - toor
    apt-get install x-window-system (worked)
    But same error message :-(

    ReplyDelete
  16. As I was attempting to install Kali 2.0 on VMware I was running into the same issue. Startx was not found, and even upon manually installing it would not work. The one thing that worked for me was to enable virtualization in bios. This is usually a problem that occurs with VirtualBox for me, but this time it resolves the issue with Kali 2.0 on VMware.

    ReplyDelete
  17. this works for me, however after iu reboot it still says "oops something has went wrong." at which point i havce to hit ctrl-alt-f1 to get into terminal, then type startx to load gnome. how do i work around having to type startx each time i reboot????

    ReplyDelete
  18. when i enter apt-get install x-window-system
    this command,i was erroe
    "unable to locate package x-window-system".
    what can i do/

    ReplyDelete
  19. this commend help me >>> thank you

    # apt-get update
    # apt-get install xorg
    # startx

    ReplyDelete
  20. I FUCKING LOVE YOU THANK YOU SO MUCH!!!!!!!!!!!!!!!!!

    ReplyDelete