Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2017, 04:02 AM   #1
LQ Newbie
Registered: Feb 2017
Posts: 1

Rep: Reputation: Disabled
Error: Your Session only lasted less than 10 seconds.

I'm pretty new to Linux. I decided to install Mint, after a day or two i logged on and got the following error message.

"Your Session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix the problem.

View Details(~/.xsession-errors file)
/etc/mdm/Xsession: Beginning session setup...
/etc/mdm/Xsession: 173: /etc/mdm/Xsession: grep not found
/etc/mdm/Xsession: Executing mate-session failed, will try to run x-terminal-emulator
/etc/mdm/Xsession: 205: exec: x-terminal-emulator: not found"

I'm pretty sure i have enough diskspace, but i am stumped. If anyone has a solution its greatly appreciated! Thanks.
Old 02-27-2017, 05:09 AM   #2
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Hi Poweer, and welcome to LQ.

There will hopefully be suggestions as to what you can do to resolve this problem but personally, given the fundamental nature of the failure and the fact that you've only been running Mint for a couple of days, I would reinstall the operating system.

Can I ask which version of Mint you're using and where you got the iso from? Also, your computer setup (e.g. single boot and dual boot?) and how much disk space you've given Mint?

Can you remember doing anything over the last couple of days on a system level which you think might have caused the problem?

If it's of any reassurance, what you're seeing is not common.

Last edited by hydrurga; 02-27-2017 at 05:30 AM.
Old 02-27-2017, 05:20 AM   #3
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,041
Blog Entries: 17

Rep: Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218
Given that this is a freshly installed system, it's almost certainly an installation problem. The messages are associated with the Mint display manager (mdm), which is the program that gives you your graphical login in Mint. Specifically an ancillary script (/etc/mdm/xsession) is playing up. The fact that it can't find the grep program is very worrying, because this is one of the most basic programs in Linux and it should be there.

If you press ctrl+alt+F1, you will get to a text console where you can log in and explore. Start by typing which grep. This should report the location of grep; if there is no output, the installation is definitely screwed up and you will need to reinstall. Can you remember getting any weird error messages during installation?

It's also worth typing startx to try to bring the desktop up by hand. See how far it gets and let us know the result.

Last edited by hazel; 02-27-2017 at 05:21 AM.
Old 03-05-2017, 11:06 AM   #4
Registered: Sep 2009
Location: Caribbean
Distribution: Slackware 14.2
Posts: 68

Rep: Reputation: Disabled
So, last year, the Linux Mint website was hacked and some of the ISOs were compromised.

Read about it here

Also, I've had similar error messages before when the permissions on the user's home folder did not belong to the user.

Potentially, this may also be caused by a partition not being mounted or not being readable. Interesting that you can still boot the computer but not find 'grep', but that can happen if your PATH variable does not include the /bin or /usr/bin paths.

So, maybe your .bashrc or .bash_profile files are unreadable or missing?

Still, best move would be to wipe and re-install from scratch, possibly with a new ISO that you've downloaded and checked the MD5 checksum.
Old 03-06-2017, 07:50 PM   #5
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
From a web-search of some of the errors, a 'MAYBE' / my 'wild-guess': check: echo $PATH
Again, just 'my wild-guess', fwiw=ForWhatIt'sWorth, from web-researchnig some of the errors.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not log using root >>> Your session only lasted less than 10 seconds error . . . eng_mohammedmostafa Linux - Software 2 04-25-2010 10:44 AM
Your session only lasted less than 10 seconds error . . . eng_mohammedmostafa Linux - Software 8 04-23-2010 03:10 PM
HELP: Session lasted for only less than 10 seconds. pockie Linux - General 1 05-31-2008 01:13 AM
Urgent: getting error message as YOUR SESSION ONLY LASTED LESS THAN 10 SECONDS chirla Linux - Enterprise 3 08-25-2007 04:36 PM
Your session lasted for < 10 seconds ... rsamurti Slackware 4 06-27-2004 08:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration