LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-17-2011, 10:33 AM   #1
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Rep: Reputation: 0
Kernel install issues


Hey Guys,

Fairly new to Ubuntu. Only been running 10.10 for a couple of months now. I'm not sure what happened but I'm getting the following issue that is stopping me from cleanly installing apps:


mike@mike-ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-2.6.35-28-generic (2.6.35-28.50) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-28-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
* dkms: running auto installation service for kernel 2.6.35-28-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
/etc/default/grub: 9: splash: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-28-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-28-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.35-28-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
mike@mike-ubuntu:~$


Anyone know how to fix this? I'm hoping to upgrade to 11.04 next month (after I see the responses) and want to make sure I have a stable install first.

Thanks in advance!!

Cheers!

Mike
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-17-2011, 10:49 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by mikemeadows View Post
Hey Guys,

mike@mike-ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-2.6.35-28-generic (2.6.35-28.50) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-28-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
* dkms: running auto installation service for kernel 2.6.35-28-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
/etc/default/grub: 9: splash: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-28-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-28-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.35-28-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
mike@mike-ubuntu:~$
Are you trying to upgrade your linux kernel or you are just trying to look for the updates on web? It appears from the command that you are looking for updates from web. If you are trying to install a new kernel then do the following:

1. Download the kernel image from the web.
2. Run the following command: apt-get install kernel kernel_image_name

In the very beginning I can see the following :

mike@mike-ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.

It appears that it is not able to see any updates because it is saying that After this operation, 0B of additional disk space will be used. It should show the actual size that will be used after installing the packages say 18 MB or 100 MB etc.

Is this system connected to the internet? Did you check the connectivity?

Also do the following just to confirm your kernel version

uname -a (paste the out of this command in this thread)

Last edited by T3RM1NVT0R; 04-17-2011 at 10:51 AM.
 
Old 04-17-2011, 11:43 AM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,625

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Yes, definitely run;
Code:
uname -a
It would be good to run;
Code:
sudo dpkg --configure -a
and post the results of that here too.
 
Old 04-17-2011, 12:06 PM   #4
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Original Poster
Rep: Reputation: 0
mike@mike-ubuntu:~$ uname -a
Linux mike-ubuntu 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
mike@mike-ubuntu:~$ sudo dpkg --configure -a
[sudo] password for mike:
Setting up linux-image-2.6.35-28-generic (2.6.35-28.50) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-28-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
* dkms: running auto installation service for kernel 2.6.35-28-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
/etc/default/grub: 9: splash: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-28-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-28-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.35-28-generic
mike@mike-ubuntu:~$
 
Old 04-17-2011, 12:20 PM   #5
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Original Poster
Rep: Reputation: 0
I haven't attempted to update the kernel ... this came about due to regular upgrades I believe.

I ran the update to make sure my software sources were up to date and valid and then attempted to force and upgrade to see if that rectified the issue. No such luck. It seems that something attempted to install but never finished for some reason and I am at a loss as to how to fix or backout. Now every time I attempt to install any programs or packages I get the same error message.
 
Old 04-17-2011, 12:49 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Appears to be some problem with your existing kernel. Do the following:

1. Download the kernel image from the following link: https://launchpad.net/ubuntu/maveric...c/2.6.35-28.49 .
2. Type sudo apt-get install kernel-image name. Do not use sudo apt-get ugprade kernel_image because it will overwrite your existing kernel (which is the same in this case but just to be sure that we do not mess with existing kernel)
3. Once installed the kernel reboot your system. At the boot selection screen you should see another line added to select the kernel to boot. Select the new one is should be 3rd or 4th number down in the line.
4. Login and then try to run sudo apt-get upgrade.
 
Old 04-17-2011, 08:03 PM   #7
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Original Poster
Rep: Reputation: 0
I must be doing something wrong:


mike@mike-ubuntu:~/Downloads$ l
linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
mike@mike-ubuntu:~/Downloads$ sudo apt-get install kernel-install linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kernel-install
E: Unable to locate package linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
E: Couldn't find any package by regex 'linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb'
mike@mike-ubuntu:~/Downloads$ sudo apt-get install linux-image-2.6.35-28-generic_2.6.35-28.49_i386.debReading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
E: Couldn't find any package by regex 'linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb'
mike@mike-ubuntu:~/Downloads$


Also ... when I try and use software center to install the .deb it tells me it's not for my architecture ... thought the desc says its for 64 bit systems.
 
Old 04-17-2011, 09:08 PM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,625

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Going by your original post, and the repeat of the same errors in dpkg, it is clear that there are 2 problems. One has to to with grub and the other with the post install script run to set up the kernel.

This does not mean that there is anything wrong with the kernel you got in the update/upgrade. It means it is not fully set up.

This, I think, should be able to be straightened out with apt or dpkg.

What I would have you do is open your terminal and run;
Code:
sudo apt-get -f install
If that does not work I would restart your compute and boot to "recovery". You get can run that same command from there before uch of the system is mounted and the commands have a lot more effect then.

I would also, if that works from your terminal, run;
Code:
sudo update-grub
Yes that should be run automatically when the kernel is installed. Run it again, it will not hurt.

After that run;
Code:
sudo grub-install /dev/sdx
where "x " is the drive that has grub installed on the mbr. If you are on a single drive that would be "a" where the "x" is.
 
Old 04-18-2011, 11:10 AM   #9
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Original Poster
Rep: Reputation: 0
Still get the same error whether I'm in normal boot, recovery (dpkg repair or root prompt):

mike@mike-ubuntu:~$ sudo apt-get -f install
[sudo] password for mike:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgio-cil python-mutagen python-dockmanager libdbi0 zeitgeist-datahub zeitgeist python-mpd
zeitgeist-fts-extension libtextcat-data-utf8 zeitgeist-core libevtlog0 libnet1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.35-28-generic (2.6.35-28.50) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-28-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.35-28.49 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
* dkms: running auto installation service for kernel 2.6.35-28-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
/etc/default/grub: 9: splash: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-28-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-28-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.35-28-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
mike@mike-ubuntu:~$
 
Old 04-18-2011, 11:53 AM   #10
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,625

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Boy, that is a tough one. I will have to look into some more severe dpkg commands. There is not going to be anything installed until this is resolved.

Dpkg is the foundation of package management in Debian branch OS'. When it is having problems it is not good.

One thing that I would like you to do is to move the .deb that you down loaded for the kernel to a safe place where it will not be any interference. If it is in your Downloads directory just put it somewhere else (Desktop maybe).

The command;
Code:
sudo dpkg --clear-avail
may help. I am not sure about that command but it will not hurt. It clears available packages. What I a not sure of is if it clears packages that have started the installation process. Give it a try.
 
Old 04-18-2011, 01:16 PM   #11
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi Mike,

The command that you are using does not appear to be correct:

mike@mike-ubuntu:~/Downloads$ sudo apt-get install kernel-install linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb

It should be:

mike@mike-ubuntu:~/Downloads$ sudo apt-get install kernel linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
 
Old 04-18-2011, 02:00 PM   #12
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Original Poster
Rep: Reputation: 0
mike@mike-ubuntu:~$ l
Desktop/ flock/ Music/ Ubuntu One/
Documents/ Flock.desktop* My Safes/ Videos/
Downloads/ FrostWire/ Pictures/ weather
Dropbox/ GNUstep/ Public/
et-linux-2.60.x86.run IMG_1082.JPG scripts/
examples.desktop linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb Templates/
mike@mike-ubuntu:~$ sudo apt-get install kernel linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kernel
E: Unable to locate package linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
E: Couldn't find any package by regex 'linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb'
mike@mike-ubuntu:~$
 
Old 04-18-2011, 02:26 PM   #13
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

I have seen this message before not able to remember when. Anyways I will do some R&D on my system and in the meantime you can give a try to the following command:

dpkg -i --configure linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb

If it error out let us know the error messsage.
 
Old 04-18-2011, 02:28 PM   #14
mikemeadows
LQ Newbie
 
Registered: Mar 2011
Posts: 18

Original Poster
Rep: Reputation: 0
mike@mike-ubuntu:~$ dpkg -i --configure linux-image-2.6.35-28-generic_2.6.35-28.49_i386.deb
dpkg: conflicting actions -

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked[*] produce a lot of output - pipe it through `less' or `more' !
mike@mike-ubuntu:~$
 
Old 04-18-2011, 03:23 PM   #15
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,625

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
You are not going to be installing anything until you get your original problem cleared one way or another.

I am thinking that you are going to have the use the --force command in dpkg but I am not sure of the proper syntax to use. I have succeeded in avoiding the need for it myself.

I keep hoping someone will jump in here that has experience with it.

I take it that clear-avail did nothing.
 
  


Reply


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
Fedora core 8 install issues. "unable to handle kernel paging request" Gangrif Fedora - Installation 7 03-12-2008 10:46 AM
madwifi install issues with kernel on FC6 alabamaman Linux - Wireless Networking 2 08-03-2007 09:47 AM
Kernel Module issues with ELF after kernel update drumvudu SUSE / openSUSE 2 01-02-2007 12:54 PM
Mandrake 8.0 Kernel Startup/RedHat 9.0 Install Filesystem Issues PSandusky Linux - Newbie 3 05-06-2004 07:50 PM
Slackware 9 install kernel issues Ayukawa Slackware 3 04-07-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:37 PM.

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