LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu 12.10 problem after update (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-12-10-problem-after-update-4175455911/)

Puneet Jindal 03-28-2013 09:14 AM

Ubuntu 12.10 problem after update
 
Hi,
I am using Ubuntu 12.10 on Dell XPS i7 Laptop.Ubuntu was working fine some days ago. But as I installed new "Generic linux kernel headers -> linux-headers-generic 3.5.0.27.43" etc, I can no longer boot to Ubuntu. It just gives me black screen and nothing happens after that. I have recently installed 27th version. When I choose older version from advance boot options ubuntu boots perfectly fine. My system also gives me error that "Ubuntu has experienced some prooblem". What can be the problem? What should I do? Thanks in advance.

eklavya 03-29-2013 01:41 AM

Did you get this error before?
Code:

Error:15 File not found
and after two three restart, it is stopped to give this error.

Is there small white horizontal line on top left side of the screen?

Go on command line and try
Code:

$ apt-get update
$ apt-get upgrade

If the process is not completed, you will get the error, now you can search remedy for that.

OR

Go to recovery mode and try to fix broken packages.

Puneet Jindal 03-30-2013 03:59 AM

I tried to fix some broken packages by booting from previous image (26th version). The process was completed but problem still persists. Any other idea? Yes, I could see the small horizontal line on the upper left corner of the screen during shutdown. But that was several weeks ago. And my system started giving me above mentioned problem only 3-4 days ago.

eklavya 04-01-2013 12:33 AM

It looks like your new kernel header is not booted properly.
Have you checked your new kernel entry in /boot directory as vmlinuz-kernelversion-generic
If you are using grub (not grub2), then you can see a file /boot/grub/menu.lst
your new kernel entry should be here in this file other wise it does not boot new kernel.
but if you are using grub2 then menu.lst will not be there
Check /boot/grub/grub.cfg, your new kernel entry should be here in this file.
it looks like this
Code:

menuentry 'Ubuntu, with Linux 3.2.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 1ccba539-eed4-43f4-967f-263ffa57db10
        linux        /boot/vmlinuz-3.2.0-32-generic root=UUID=1ccba539-eed4-43f4-967f-263ffa57db10 ro  quiet splash $vt_handoff
        initrd        /boot/initrd.img-3.2.0-32-generic

The new kernel entry will always be on top of menuentry attribute.

This is the proper way to install new kernel header. Try this
using command line.
When you try to fix broken packages, it fixes every thing for your including kernel header.

There are large number of chances if you try to install only kernel header and if you do not install properly, it does not boot properly.

Generally newbie upgrades ubuntu and it upgrades new kernel header for you.

Puneet Jindal 04-01-2013 08:18 PM

Thanks for replying. I tried the command line method you mentioned above. But it seems to check only the version(26th) I am currently booting. I also check the grub.cfg file. I found the menu entry there. I even tried to re-install the headers and the package but it doesn't work even after that.

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6c22200c-357c-4419-801b-6cbe1c27962c' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 6c22200c-357c-4419-801b-6cbe1c27962c
else
search --no-floppy --fs-uuid --set=root 6c22200c-357c-4419-801b-6cbe1c27962c
fi
linux /boot/vmlinuz-3.5.0-27-generic root=UUID=6c22200c-357c-4419-801b-6cbe1c27962c ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.5.0-27-generic

}

lucky9 04-01-2013 11:54 PM

Quote:

Originally Posted by Puneet Jindal (Post 4923134)
Thanks for replying. I tried the command line method you mentioned above. But it seems to check only the version(26th) I am currently booting. I also check the grub.cfg file. I found the menu entry there. I even tried to re-install the headers and the package but it doesn't work even after that.

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6c22200c-357c-4419-801b-6cbe1c27962c' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 6c22200c-357c-4419-801b-6cbe1c27962c
else
search --no-floppy --fs-uuid --set=root 6c22200c-357c-4419-801b-6cbe1c27962c
fi
linux /boot/vmlinuz-3.5.0-27-generic root=UUID=6c22200c-357c-4419-801b-6cbe1c27962c ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.5.0-27-generic

}


Try update-grub from outside of X. IE: get to the boot screen. highlight the partition's entry that you wish to boot from. type 3 and hit the Enter key. at the prompt enter root, hit the Enter key. type in the root password, hit Enter. Type in update-grub and hit the Enter key. There should be no output. Type in reboot, hit Enter.
It probably needs to have an update-initrd run first.

eklavya 04-02-2013 12:16 AM

Ok try this
In recovery mode, it shows your new kernel on top of the screen.
Highlight it and press e to edit it.

Now change following text.

linux /boot/vmlinuz-3.5.0-27-generic root=UUID=6c22200c-357c-4419-801b-6cbe1c27962c ro quiet splash $vt_handoff

change it to

linux /boot/vmlinuz-3.5.0-27-generic root=UUID=6c22200c-357c-4419-801b-6cbe1c27962c ro nomodeset $vt_handoff

I have changed quiet splash to nomodeset

Now ctrl+x to boot

But these changes will not be permanent, you have to change this every time when you will restart.

To make this permanent,

Add this option to /etc/default/grub

Code:

sudo nano /etc/default/grub
Add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT:
Code:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""

Now run:
Code:

sudo update-grub
Now I hope, it should be fixed.

Puneet Jindal 04-03-2013 08:05 PM

No it was not a good idea. Screen just freezed after showing Ubuntu logo. I could no longer boot properly. I tried previous version (26th). Resolution was really bad. Only keypad was working. Neither unity bar nor touch pad was working. I used terminal to undo the changes made as you suggested. After that I was able to boot properly from previous image. Perhaps the problem is something else.


All times are GMT -5. The time now is 02:12 AM.