Ubuntu _ solve Ubuntu login failure (enter the correct user name and password and switch back to the logon Interface)

Source: Internet
Author: User

This is the case: JDK and tomcat were installed on the Ubuntu Virtual Machine some time ago, and the environment variables were set in/etc/profile (for example, the figure has been changed, which is generally the case)

After logging on again several times, I found that even if I entered the correct user name and password, I jumped to the logon interface and could not enter the system.

 

 

Solution:

It was found online that it may be caused by environment variables. Therefore, you can only enter the command line through CTRL + ALT + F1, enter the user name and password with super permissions, and enter the command line mode, then, use VI to view the file where I previously set the environment variable,/etc/profile, and find that the command line is garbled due to an error in the system environment:

 

If garbled characters are found, you can add the complete path:/usr/bin/sudo/usr/bin/VI/etc/profile, and press dd to delete the wrong line, then press shift and enter ":", and then enter "WQ" and press Enter. restart again to solve the problem.

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.