Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have just updated my ubuntu 12.04 yo the latest version. It asked me to restart to complete the update. When i restarted my sysytem it hangs at loading page .... and keeps showing me that loading status bar again and again.

Even in recovery mode it keeps showing up the same thing its loading loading and loading but nothing is hapening. I waited for full 30-35 minutes but i dont know what is it loading.

Upon pressing up some key it shows the background proessing taking place.

Starting web server apache2
starting anac(h)ronistic
stopping anac(h)ronistic
checking battery state
stopping sysytem V runlevel compatibility
starting mysql server 

after this nothing is happening......

EDIT

Doing Alt+Ctrl+F! opens termainal donsole

I can login there and start ubuntu by typing startx or lightdm

EDIT

From terminal output on rynlevel is :

sahil@sahil:~$ runlevel
N 2

sahil@sahil:/etc/rc2.d$ ls

README 
S20vboxweb-service   
S70dns-clean
S10adbd
S20virtualbox
S70pppd-dns
S20kerneloops
S20winbind
S75sudo
S20redis-server
S20yum-updatesd
S91apache2
S20speech-dispatcher
S45landscape-client
S99acpi-support
S20sphinxsearch             
S50pulseaudio       
S99grub-common
S20vboxballoonctrl-service  
S50rsync            
S99ondemand
S20vboxdrv                  
S50saned             
S99rc.local

Content of /etc/init/lightdm.conf are :

LightDM - light Display Manager

#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services
#
# based on gdm upstart script

description "LightDM Display Manager"
author      "Robert Ancell <robert.ancell@canonical.com>"

start on ((filesystem
           and runlevel [!06]
           and started dbus
           and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or stopped udev-fallback-graphics))
          or runlevel PREVLEVEL=S)

stop on runlevel [016]

emits login-session-start
emits desktop-session-start
emits desktop-shutdown

script
    if [ -n "$UPSTART_EVENTS" ]
    then
        # Check kernel command-line for inhibitors, unless we are being called
        # manually
        for ARG in $(cat /proc/cmdline); do
            if [ "$ARG" = "text" ]; then
        plymouth quit || : 
                stop
        exit 0
            fi
        done

    [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/lightdm" -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] || { stop; exit 0; }

    if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
    then
        # Single-user mode
        plymouth quit || :
        exit 0
    fi
    fi

    exec lightdm
end script

post-stop script
    if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
        initctl emit desktop-shutdown
    fi
end script
share|improve this question

closed as off topic by jrg Apr 30 '12 at 22:33

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Can you provide your runlevel (use runlevel command) and files in /etc/rc[RUNLEVEL].d ? –  warl0ck Apr 25 '12 at 6:22
    
@warl0ck updated my question acc to your comments. –  Sahil Grover Apr 25 '12 at 9:59
    
Sorry I made a mistake , can you check /etc/init/lightdm.conf , see if it's enabled ? There's a start on field ; Or maybe you can try to re-configure lightdm , did you installed any other DM that might disabled lightdm ? –  warl0ck Apr 25 '12 at 10:13
    
Also , can you try service lightdm status , see what's printed –  warl0ck Apr 25 '12 at 10:15
    
@warl0ck service lightdm status says : lightdm stop/waiting –  Sahil Grover Apr 25 '12 at 11:29

1 Answer 1

After Ubuntu crashed in the middle of the update, I restarted and got the same hang. I used ctrl-alt-F1 to open a terminal and then:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get dist-upgrade

and then reboot for a working system.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.