{"id":17015,"date":"2023-11-19T01:16:17","date_gmt":"2023-11-19T01:16:17","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=17015"},"modified":"2023-11-19T01:28:30","modified_gmt":"2023-11-19T01:28:30","slug":"fix-failed-to-start-session-at-login-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2023\/11\/19\/fix-failed-to-start-session-at-login-in-ubuntu\/","title":{"rendered":"Fix &#8220;Failed to Start Session&#8221; at Login in Ubuntu."},"content":{"rendered":"\n<p>Unable to log in to Ubuntu because of &#8216;failed to start session&#8217; error? Here&#8217;s what you could try.<\/p>\n\n\n\n<p>I was trying to log in to Ubuntu as usual. I entered my password and it did not log me in even with the correct password. Instead, it showed me&nbsp;<strong>failed to start session<\/strong>&nbsp;in red colors. I could not even log in to the guest session.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"525\" src=\"https:\/\/www.appservgrid.com\/paw92\/wp-content\/uploads\/2023\/11\/image-16.png\" alt=\"\" class=\"wp-image-17016\" srcset=\"https:\/\/www.appservgrid.com\/paw92\/wp-content\/uploads\/2023\/11\/image-16.png 700w, https:\/\/www.appservgrid.com\/paw92\/wp-content\/uploads\/2023\/11\/image-16-300x225.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>In this quick post, we shall see how to fix failed to start session issue in Ubuntu 16.04-20.04 and earlier versions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"fix-failed-to-start-session-in-ubuntu\"><strong>Fix failed to start session in Ubuntu<\/strong><\/h3>\n\n\n\n<p>The reason here is that somehow your Unity desktop has been messed up. You can try several way to recover it. Let\u2019s see how to do it.<\/p>\n\n\n\n<p>When you are at login, press&nbsp;<strong>Ctrl+Alt+F1<\/strong>. It will take you to command line interface from the GUI. In here, type your username and password. Now, you can try the following command to install Unity Desktop:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install ubuntu-desktop<\/code><\/pre>\n\n\n\n<p>If it is already installed, try reinstalling:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install --reinstall ubuntu-desktop<\/code><\/pre>\n\n\n\n<p>Once it is installed or reinstalled. Use the following command to reboot the system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>It will reboot and bring you back to login screen. Try login now. You should be able to log in. If you are still unlucky, try to use the alternative below:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"alternative-method\"><strong>Alternative method:<\/strong><\/h3>\n\n\n\n<p>As an alternative you can use the command below to reconfigure the packaging:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg-reconfigure -a<\/code><\/pre>\n\n\n\n<p>At times, this should fix the failed to start session issue in Ubuntu. But it was not that easy for me. I used another approach which is slightly dirty. When I noticed that reinstalling Unity and reconfiguring the packages did not make any difference, I installed GNOME instead using a command like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install gnome-shell ubuntu-gnome-desktop<\/code><\/pre>\n\n\n\n<p>This time at reboot, I was able to boot in to GNOME desktop or even choose to boot in to Ubuntu default, i.e. Unity. A word of warning, Unity may seem broken after installing Gnome. Change the theme and icons to that of Ambiance, instead of the default (Adawita).<\/p>\n\n\n\n<p>That helped me fix&nbsp;<strong>\u201cfailed to load session\u201d error in Ubuntu<\/strong>. Did it work for you? Do let me know if you have questions or suggestions.<\/p>\n\n\n\n<p><a href=\"https:\/\/itsfoss.com\/failed-to-start-session-ubuntu-14-04\/\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unable to log in to Ubuntu because of &#8216;failed to start session&#8217; error? Here&#8217;s what you could try. I was trying to log in to Ubuntu as usual. I entered my password and it did not log me in even with the correct password. Instead, it showed me&nbsp;failed to start session&nbsp;in red colors. I could &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2023\/11\/19\/fix-failed-to-start-session-at-login-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fix &#8220;Failed to Start Session&#8221; at Login in Ubuntu.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-17015","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/17015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=17015"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/17015\/revisions"}],"predecessor-version":[{"id":17024,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/17015\/revisions\/17024"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=17015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=17015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=17015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}