Cannot install new kernel / bad return status

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Cannot install new kernel / bad return status

Postby joerack on Wed Apr 03, 2013 1:49 am

This is the error I get when compiling, I've followed this guide : http://linux.lyricastic.com/linux-kernel-3-8-5/

Error! Bad return status for module build on kernel: 3.8.5-030805-generic (x86_64)
Consult /var/lib/dkms/virtualbox-guest/4.1.18/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.5-030805-generic /boot/vmlinuz-3.8.5-030805-generic
update-initramfs: Generating /boot/initrd.img-3.8.5-030805-generic
Warning: No support for locale: en_US.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.8.5-030805-generic /boot/vmlinuz-3.8.5-030805-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.5-030805-generic /boot/vmlinuz-3.8.5-030805-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.5-030805-generic
Found initrd image: /boot/initrd.img-3.8.5-030805-generic
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up linux-image-extra-3.8.5-030805-generic (3.8.5-030805.201303281651) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled
(3.8.5-030805.201303281651 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.8.5-030805.201303281651 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.8.5-030805-generic /boot/vmlinuz-3.8.5-030805-generic
Error! Bad return status for module build on kernel: 3.8.5-030805-generic (x86_64)
joerack
Level 1
Level 1
 
Posts: 24
Joined: Wed Apr 03, 2013 1:31 am

Linux Mint is funded by ads and donations.
 

Re: Cannot install new kernel / bad return status

Postby xenopeek on Wed Apr 03, 2013 2:19 am

Are you running Linux Mint on real hardware or on a virtual machine? Unless you are on VirtualBox, you can remove these guest additions and compile should work fine. Note that the kernel you are compiling doesn't work with VirtualBox also if you are using Linux Mint as a host. You may have problems with proprietary drivers (for graphics card for example) as well.

Remove VirtualBox guest additions and utilities:
Code: Select all
sudo apt-get --purge autoremove virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Cannot install new kernel / bad return status

Postby joerack on Wed Apr 03, 2013 7:05 am

Nope, I'm not running linux under vmware.

I might have messed up the installation though, as I formatted the partitions manually, and installed grub to my home partition- as I might install windows later, and I don't want boot loaders interfeering with one another.

I am doubtful though, that the swap partition (8gb hdd for 4gb ram) has been reserved correctly to the system, Is there a way I can check it?
joerack
Level 1
Level 1
 
Posts: 24
Joined: Wed Apr 03, 2013 1:31 am

Re: Cannot install new kernel / bad return status

Postby xenopeek on Wed Apr 03, 2013 7:29 am

joerack wrote:Nope, I'm not running linux under vmware.

Eh, I meant VirtualBox. Whether you use VMWare or not is irrelevant :wink: If you're not running Linux Mint as a client in VirtualBox, you can remove those packages I listed with the command given. That should allow your kernel to compile.

joerack wrote:I am doubtful though, that the swap partition (8gb hdd for 4gb ram) has been reserved correctly to the system, Is there a way I can check it?

You can check with the following command on the terminal:
Code: Select all
free

Last line will given the details about your swap.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Cannot install new kernel / bad return status

Postby joerack on Wed Apr 03, 2013 2:44 pm

It worked! thank you
joerack
Level 1
Level 1
 
Posts: 24
Joined: Wed Apr 03, 2013 1:31 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot], H.Remedy and 22 guests