Ubuntu cannot log on to an endless loop.

Source: Internet
Author: User
Ubuntu cannot log on to the endless loop. solve this problem. I installed Windows 7 + ubuntu on my computer some time ago. then I set up a java development environment on ubuntu, installed jdk, tomcat, eclipse, mysql, and other environment variables, after all these steps are completed, ubuntu restarts inexplicably, and then arrives at login... ubuntu cannot log on to the endless loop. solve this problem. I installed Windows 7 + ubuntu on my computer some time ago. then I set up a java development environment on ubuntu, installed jdk, tomcat, eclipse, mysql, and other environment variables, after all these steps are completed, ubuntu restarts inexplicably. Then, on the login page, enter the user name and password, and the login will not go in. the system prompts that the information will flash through, so it will continue to log on in an endless loop, I don't know why, so I Googled it and finally found the cause, which is due to a problem with JDK environment variable configuration. The following is a solution: on the login screen, press alt + ctrl + f2 to enter tty2. because no environment variable is set, the command must be in the full path, for example If ls is required, you need to input/bin/ls, edit the/etc/environment file, and have root permissions. If yes, run the following command on my computer: /usr/bin/sudo/usr/bin/vi/etc/environment edit the/etc/environment file, move the cursor to the row to be deleted, and press dd (twice) then, enter ": wq" (not including double quotation marks) to save and exit vi, and then exit tty2. Log on again. OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.