5

I have Ubuntu 12.04LTS installed on a dual-booted machine i5 dual core 8G RAM and it's been working fine, but today for some reason when I logged out and tried to log back in it is stuck at the login page, i.e. the mouse and the keyboard are not responding. The mouse is stuck at the top left corner of my screen, and I can do nothing but to turn the machine off. (I have been using logitech wireless mouse and keyboard.) I can not access the virtual console using Alt F1 or Ctrl Alt F1 either!

Here is what I have tried so far:

  1. Verified it is not a H/W problem since the mouse and keyboard work fine with windows7
  2. Booted with ubuntu installation dvd and ran trial mode and mouse and keyboard worked fine.
  3. Tried bypassing the login screen by booting into recovery mode and editing tty1.conf, but to no avail.
  4. I moved .Xauthority .profile and .bashrc from my $HOME to another location so my login would proceed completely by system defaults. But this did not help
  5. From recovery mode commandline used to dpkg-reconfigure to switch between gdm and lightgdm. This did not help either.
  6. By the way, when in recovery mode as root from command line I mount the filesystem, all apps work fine. Python is Ok, octave is ok, vi is ok etc.

I have a feeling if I could only bypass the login screen, and automatically get into the desktop, I will be ok. But I haven't been able to accomplish this either.

I desperately need help please. Thank you in advance.

Update: So I tried to switch to lightdm by dpkg-configure lightdm. This at least brings me up to the classical linux commandline login prompt but without a gui. Should I install startx? Should I install ubuntu-desktop?

pl_rock
  • 11,715

5 Answers5

2

Phew! Thanks for the help blue; so this is what I ended up doing:

  1. From grub boot menu entered recovery
  2. mount -o rw,remount /
  3. Commented out any samba or nfs mounts in my fstab file, as these were interfering with enabling networking.
  4. Enabled networking
  5. sudo apt-get update and sudo apt-get upgrade and sudo apt-get update --fix-missing
  6. dpkg-reconfigure lightdm (I switched to lightdm)
  7. Rebooted, this gave a properly functioning command line login shell. 8.sudo apt-get install ubuntu-desktop
  8. startx

Things seem to be working, but the desktop did crash once for no apparent reason. If the desktop crashes again, I might remove ubuntu-desktop and just use an old 90's style cruddy twm or something.

Mudit Kapil
  • 2,081
0

Try run sudo dpkg --configure -a in the terminal. It will enable the mandatory things.

blue
  • 93
0

I don't think it's an X11 problem. Switch to a virtual console using Alt F2 and login as your normal user. Now delete the .config .gconf and .compiz-1 folders from your home directory.

rm -rf .config .gconf .compiz-1

This has fixed a couple of my problems in the past. The only downside is you'll have to redo all your settings again (wallpapers, nautilus bookmarks etc...)

pl_rock
  • 11,715
tusharkant15
  • 1,223
0

Check your Ubuntu Partition and consider to deduct the bad sectors. Here is my experience to the same problem, when I installed custom partition ubuntu. I overlooked the Hard Disk Bad Sectors When I do Custom Partition. So the swap cannot mount properly. So I found out size of my hard disk Badsectors. Then I minus them from my total hard disk space and minus again with some extra space and then made the custom partition. Now the problem solved and Ubuntu began to load excellently.

0

As suggested here [1], this solved my keyboard problem when trying to login at LightDM screen (mouse worked fine):

sudo dpkg-reconfigure keyboard-configuration

[1] http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/keyboard-not-working-login-screen-ubuntu-13-10-a-4175491335/

sequielo
  • 291