Hey We are MyGurukulam

Welcome to MyGurukulam thought & Blogs

If you’ve recently downgraded Python on Ubuntu, you may have noticed that your GUI is not functioning properly. Specifically, the login screen may be corrupted or not loading at all, and you may not be able to log in or access your desktop. This is because the downgrade may have caused some dependencies to break, including the lightdm package that manages the display manager.

What is Lightdm ?

Lightdm is a display manager that manages the login screen and desktop environment for Ubuntu and other Linux distributions. It’s responsible for starting the X server, authenticating users, and loading the graphical user interface. If lightdm is not functioning properly, you may not be able to log in or access your desktop. Reinstalling lightdm is a simple and effective solution to fix these issues and restore your system’s GUI.

Downgrading Python can cause unexpected issues with your system, particularly with the graphical user interface (GUI). Specifically, the display manager known as lightdm may become corrupted, resulting in an unusable login screen and desktop environment.


Boot into recovery mode:-

  1. Turn on your computer and wait for the GRUB boot loader menu to appear. If you don’t see the GRUB menu, you may need to press and hold the Shift key while booting up Ubuntu.
  2. Use the arrow keys to select the “Advanced options for Ubuntu” menu and then select the recovery mode option for your current kernel. You may see several recovery mode options, but you should choose the one that matches your current kernel version.
  3. Press Enter to continue.

Select the root option:

  1. You should now see a recovery menu with several options. Select the “root” option to open a root shell.
  2. This will give you access to the command line, which you’ll need to reinstall lightdm.

Reinstall lightdm:

  1. Type the following command to reinstall lightdm: sudo apt-get install lightdm
  2. This will download and install the latest version of lightdm, along with any necessary dependencies.
  3. Wait for the installation to complete. This may take a few minutes, depending on your internet connection speed and system resources.

Restart your system:

After the installation is complete, type the command “reboot” to restart your system. Wait for your system to restart and try logging in again.

If everything went smoothly, you should now be able to log in normally and access your desktop. However, if you still experience issues, there may be other dependencies or conflicts that need to be resolved.

Here are some additional tips for troubleshooting the issue:

Check the lightdm configuration file:

  1. If lightdm is still not working properly after reinstalling it, you may need to check the configuration file to make sure it’s set up correctly.
  2. Open the file “/etc/lightdm/users.conf” using a text editor and make sure the following lines are present and uncommented:
  1. Save the file and try restarting lightdm using the command “sudo systemctl restart lightdm“.

Look for conflicting packages:

  1. If you’re still experiencing issues after reinstalling lightdm and checking the configuration file, there may be other packages that are conflicting with lightdm.
  2. You can use the command “sudo apt-get check” to check for any broken dependencies or conflicting packages.
  3. You can also use the command “sudo dpkg –configure -a” to configure any packages that may not have been installed properly.

In conclusion, downgrading Python on Ubuntu can cause some unexpected problems with your GUI, but reinstalling lightdm is a quick and easy way to fix the issue. By following these steps and additional troubleshooting tips, you can get your system back up and running in no time. If you have any other tips or tricks for fixing this issue, please share them in the comments below…..


Leave a Reply

Your email address will not be published. Required fields are marked *

Download Ebook
Fill in the details to download the brochure

The Snatak period consists of industrial training where you are supposed to work on a specific project using various tools along with your teammates. This phase gives you a real life touch and feel of how projects can be in real life. The candidates are given planned and ad hoc tasks that need to be executed.


This round of discussion is a part of final evaluation after the DevOps Ninja program. There is a discussion round and technical round where the 3 month knowledge is tested, final CTC and offer is made to you to join full time as a DevOps Engineer and be work ready from Day 1.


This program is designed specifically for people in the advanced stage of their career who want to brush up their skill set and learn new skills and tools. This program enables you to learn DevOps in depth and continue without taking up a job with us. The price point for this program is slightly different from that of the Train-hire program.


This program is specifically designed for the candidates who want to continue with us i.e take up a job with us, designed for people in early stages of their career. In this case you will be signing a service agreement with us where you commit to stay with us throughout the course and thereafter continue working with us for a minimum of 2 years. We have in depth discussions around appraisal and CTC before one chooses to get into the phase. There will be specific cost implications if one chooses to leave anytime before the predefined period in the service agreement.


After the commencement of our 2 weeks program, where we shortlist a number of candidates on the basis of attitude, aptitude and dedication there is a detailed discussion around the candidature of these candidates.

  • We discuss the involvement required for the next 3 months.
  • We also discuss the CTC that we will be able to provide after the course concludes.
  • We discuss the total time and resources commitment required from your side and what we offer from our side.


This is the first phase of the DevOps Ninja program. The entry fee for the program is Rs 2000/-. At this phase candidates get a taste of what the course is. This gives a chance to the people for the candidates to assess the quality of our training or involvement and our teaching methodology. This phase pays special attention to AWS and everything around it.See this as the first step to building a career in DevOps.

Download Brochure
Fill in the details to download the brochure
Fill in the details to enroll now
Please fill in following details.

Register now and we will contact you with more details when its time to complete your registration.