PDA

View Full Version : HowTo: Installing and using KernelCheck


Pages : 1 2 [3]

LostSpoon
May 29th, 2010, 02:55 AM
I'm having trouble getting KernelCheck to run for me on Kubuntu 10.04.

If I try the straight dev method listed on top it all goes fine until I try to run
sudo kernelcheck

At which point I get back

Traceback (most recent call last):
File "/usr/local/bin/kernelcheck", line 9, in <module>
import os, gtk, sys, getopt, shutil
ImportError: No module named gtk


As far as I can tell, gtk is installed already.

And when I try using the .deb from stevenpusser I get

Error: Cannot install 'python-glade2'

From Package Installer.

So I try to find python-glade2 which says it requires python-gtk2 which says it needs python2.5-gobject.

Attempts to install meet with

Package python2.5-gobject is a virtual package provided by:
You should explicitly select one to install.
E: Package python2.5-gobject has no installation candidate

So I do some digging around and find out that this is already depreciated and I have the newest version already. So I'm not entirely sure where to go from here.


The overarching reason for all of this is my laptop doesn't realize when it's plugged in and others with the same make and model have fixed the problem by compiling their own kernel with certain parts as modules. So if anyone can either help me get KernelCheck working or get my laptop to realize it's plugged in it would be much appreciated.


:KS Thanks

master_kernel
May 29th, 2010, 04:19 PM
I'm having trouble getting KernelCheck to run for me on Kubuntu 10.04.

If I try the straight dev method listed on top it all goes fine until I try to run
sudo kernelcheck

At which point I get back

Traceback (most recent call last):
File "/usr/local/bin/kernelcheck", line 9, in <module>
import os, gtk, sys, getopt, shutil
ImportError: No module named gtk


As far as I can tell, gtk is installed already.

And when I try using the .deb from stevenpusser I get

Error: Cannot install 'python-glade2'

From Package Installer.

So I try to find python-glade2 which says it requires python-gtk2 which says it needs python2.5-gobject.

Attempts to install meet with

Package python2.5-gobject is a virtual package provided by:
You should explicitly select one to install.
E: Package python2.5-gobject has no installation candidate

So I do some digging around and find out that this is already depreciated and I have the newest version already. So I'm not entirely sure where to go from here.


The overarching reason for all of this is my laptop doesn't realize when it's plugged in and others with the same make and model have fixed the problem by compiling their own kernel with certain parts as modules. So if anyone can either help me get KernelCheck working or get my laptop to realize it's plugged in it would be much appreciated.


:KS Thanks

Hmmm.... Try installing python-gobject. Also try apt-get build-dep python-gtk2 and then try installing python-gtk2. You definitely need that to run KC.

LostSpoon
May 29th, 2010, 06:54 PM
According to apt python-gobject is already the newest version.

And when I try apt-get build-dep python-gtk2

I get

Picking 'pygtk' as source package instead of 'python-gtk2'
The following packages have unmet dependencies:
gnome-icon-theme: Depends: librsvg2-common but it is not going to be installed
libglade2-dev: Depends: libglade2-0 (= 1:2.6.4-1) but 1:2.6.4-1build1 is to be installed
Depends: libxml2-dev but it is not going to be installed
libgtk2.0-dev: Depends: libgtk2.0-0 (= 2.18.3-1ubuntu2.2) but 2.20.1-0ubuntu1 is to be installed
Depends: libglib2.0-dev (>= 2.21.3) but it is not going to be installed
Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libatk1.0-dev (>= 1.13.0) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installedPicking 'pygtk' as source package instead of 'python-gtk2'
The following packages have unmet dependencies:
gnome-icon-theme: Depends: librsvg2-common but it is not going to be installed
libglade2-dev: Depends: libglade2-0 (= 1:2.6.4-1) but 1:2.6.4-1build1 is to be installed
Depends: libxml2-dev but it is not going to be installed
libgtk2.0-dev: Depends: libgtk2.0-0 (= 2.18.3-1ubuntu2.2) but 2.20.1-0ubuntu1 is to be installed
Depends: libglib2.0-dev (>= 2.21.3) but it is not going to be installed
Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libatk1.0-dev (>= 1.13.0) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
Depends: libx11-dev (>= 2:1.0.0-6) but it is not going to be installed
Depends: libxext-dev (>= 1:1.0.1-2) but it is not going to be installed
Depends: libxinerama-dev (>= 1:1.0.1-4.1) but it is not going to be installed
Depends: libxi-dev (>= 1:1.0.1-4) but it is not going to be installed
Depends: libxrandr-dev (>= 1:1.2.99) but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Depends: libxfixes-dev (>= 1:3.0.0-3) but it is not going to be installed
Depends: libxcomposite-dev (>= 1:0.2.0-3) but it is not going to be installed
Depends: libxdamage-dev (>= 1:1.0.1-3) but it is not going to be installed
python-all-dbg: Depends: python (= 2.6.4-0ubuntu1) but 2.6.5-0ubuntu1 is to be installed
Depends: python-all (= 2.6.4-0ubuntu1) but it is not going to be installed
Depends: python-dbg (= 2.6.4-0ubuntu1) but 2.6.5-0ubuntu1 is to be installed
python-all-dev: Depends: python (= 2.6.4-0ubuntu1) but 2.6.5-0ubuntu1 is to be installed
Depends: python-all (= 2.6.4-0ubuntu1) but it is not going to be installed
Depends: python-dev (= 2.6.4-0ubuntu1) but it is not going to be installed
Depends: python2.6-dev but it is not going to be installed
python-gobject-dev: Depends: python-dev but it is not going to be installed
Depends: libglib2.0-dev (>= 2.8.0) but it is not going to be installed
Depends: libffi-dev (>= 3.0.5) but it is not going to be installed
python-numpy-dbg: Depends: python-numpy (= 1:1.3.0-3) but it is not going to be installed
Depends: libblas3gf but it is not going to be installed or
libblas.so.3gf or
libatlas3gf-base but it is not going to be installed
Depends: libgfortran3 (>= 4.3) but it is not going to be installed
Depends: liblapack3gf but it is not going to be installed or
liblapack.so.3gf or
libatlas3gf-base but it is not going to be installed
E: Build-dependencies for python-gtk2 could not be satisfied.
Depends: libx11-dev (>= 2:1.0.0-6) but it is not going to be installed
Depends: libxext-dev (>= 1:1.0.1-2) but it is not going to be installed
Depends: libxinerama-dev (>= 1:1.0.1-4.1) but it is not going to be installed
Depends: libxi-dev (>= 1:1.0.1-4) but it is not going to be installed
Depends: libxrandr-dev (>= 1:1.2.99) but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Depends: libxfixes-dev (>= 1:3.0.0-3) but it is not going to be installed
Depends: libxcomposite-dev (>= 1:0.2.0-3) but it is not going to be installed
Depends: libxdamage-dev (>= 1:1.0.1-3) but it is not going to be installed
python-all-dbg: Depends: python (= 2.6.4-0ubuntu1) but 2.6.5-0ubuntu1 is to be installed
Depends: python-all (= 2.6.4-0ubuntu1) but it is not going to be installed
Depends: python-dbg (= 2.6.4-0ubuntu1) but 2.6.5-0ubuntu1 is to be installed
python-all-dev: Depends: python (= 2.6.4-0ubuntu1) but 2.6.5-0ubuntu1 is to be installed
Depends: python-all (= 2.6.4-0ubuntu1) but it is not going to be installed
Depends: python-dev (= 2.6.4-0ubuntu1) but it is not going to be installed
Depends: python2.6-dev but it is not going to be installed
python-gobject-dev: Depends: python-dev but it is not going to be installed
Depends: libglib2.0-dev (>= 2.8.0) but it is not going to be installed
Depends: libffi-dev (>= 3.0.5) but it is not going to be installed
python-numpy-dbg: Depends: python-numpy (= 1:1.3.0-3) but it is not going to be installed
Depends: libblas3gf but it is not going to be installed or
libblas.so.3gf or
libatlas3gf-base but it is not going to be installed
Depends: libgfortran3 (>= 4.3) but it is not going to be installed
Depends: liblapack3gf but it is not going to be installed or
liblapack.so.3gf or
libatlas3gf-base but it is not going to be installed
E: Build-dependencies for python-gtk2 could not be satisfied.


Digging a bit deeper librsvg2-common also seems to be installed, but an older version is needed apparently:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
librsvg2-common: Depends: librsvg2-2 (= 2.26.0-1) but 2.26.3-0ubuntu1 is to be installed


This is seeming less a problem with KernelCheck and more with some bug in the dependency system.

master_kernel
May 31st, 2010, 09:04 AM
Yeah that's a little ridiculous. Try python-gnome2.

BlitzkreigBop
May 31st, 2010, 11:49 PM
Tried using it on Ubuntu 10.04-UNE (which was upgraded from 9.10)and I received this error message after running the command:

sudo kernelcheck

Testing your network connection...
Test was successful, you are connected to the internet

Begin data retrival. Please be patient as this may take some time.
Traceback (most recent call last):
File "/usr/local/bin/kernelcheck-stage2", line 555, in <module>
ProgressBar()
File "/usr/local/bin/kernelcheck-stage2", line 336, in __init__
spurl, kpver, sdate, kver, release = kernel_info1()
File "/usr/local/bin/kernelcheck-stage2", line 84, in kernel_info1
htmlFeed = urllib2.urlopen('http://www.kernel.org/kdist/fragments/stable.html')
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found


Any help?

master_kernel
June 2nd, 2010, 04:50 PM
Tried using it on Ubuntu 10.04-UNE (which was upgraded from 9.10)and I received this error message after running the command:

sudo kernelcheck

Testing your network connection...
Test was successful, you are connected to the internet

Begin data retrival. Please be patient as this may take some time.
Traceback (most recent call last):
File "/usr/local/bin/kernelcheck-stage2", line 555, in <module>
ProgressBar()
File "/usr/local/bin/kernelcheck-stage2", line 336, in __init__
spurl, kpver, sdate, kver, release = kernel_info1()
File "/usr/local/bin/kernelcheck-stage2", line 84, in kernel_info1
htmlFeed = urllib2.urlopen('http://www.kernel.org/kdist/fragments/stable.html')
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found


Any help?
You need to upgrade to the latest version. You can download the .deb or the source code here: http://sourceforge.net/projects/kcheck/files/kernelcheck/1.2.5/

LostSpoon
June 7th, 2010, 12:54 AM
Is there someway to have it compile using the free space in /home instead of /?

It filled up / forcing me to reinstall when I couldn't empty enough space to log in, and after reinstalling I tried running it again and it filled up 4 GB of free space on my / partition before exiting because there is no more room.

So, how do I delete all the files it created, how much room do I need and how can I set the compile directory somewhere else?

Sorry for all these questions

master_kernel
June 10th, 2010, 01:10 PM
Is there someway to have it compile using the free space in /home instead of /?

It filled up / forcing me to reinstall when I couldn't empty enough space to log in, and after reinstalling I tried running it again and it filled up 4 GB of free space on my / partition before exiting because there is no more room.

So, how do I delete all the files it created, how much room do I need and how can I set the compile directory somewhere else?

Sorry for all these questions
Not yet. I planned this for the next version.

Melcar
June 10th, 2010, 04:57 PM
After I discovered the kernel ppa I stopped using kernelcheck, but I have gone back to it due to the recent ppa packages not playing nice with my laptop for some reason. Like the new interface, even if it doesn't look as nice under KDE4.
Only issue I have encountered so far is that it doesn't work with rc kernels. Been trying to build the latest 2.6.35 but it always exits at stage 3.
I also tried the development version. When I try to run it the terminal comes back with a "you need python gtk bindings" message. I do have said bindings already installed though. OS is Kubuntu 10.04 32bit.

VastOne
June 11th, 2010, 08:53 PM
Can you force KernelCheck to use the latest Kernel Prepatch 2.6.35-rc2?

TheForumTroll
June 14th, 2010, 06:41 PM
Really nice program you've made here. I just found it and it's doing its magic right now. Can't wait to see if it works out in the first try with all the tweaks I made to the config. Thank you :)

galv
June 18th, 2010, 05:05 PM
Thanks for your hard work :) I have two questions:
1) Kernel.org shows that 2.6.34 is a stable version of kernel, why don't I get to compile that one? just 2.6.33.5

2) Is there tips for a Nvidia Ion based system, with Atom 330. (I have a Giada Cube N3).

):P

afrodeity
July 24th, 2010, 08:38 AM
I've tried installing the candela kerneltwice. First time with defaults, second time with the deprecated IDE/SATA support checked on. Both times I run into a kernel panic and recovery mode suggests problem with the root init

If it try to update-initramfs I get a modules not found error.

sudo update-initramfs -c -k linux-image-2.6.34.1-candela
update-initramfs: Generating /boot/initrd.img-linux-image-2.6.34.1-candela
Cannot find /lib/modules/linux-image-2.6.34.1-candela
update-initramfs: failed for /boot/initrd.img-linux-image-2.6.34.1-candela


This is the contents of /boot showing a missing initrd.img for candela kernel

ls
abi-2.6.31-19-generic memtest86+.bin
abi-2.6.31-20-generic System.map-2.6.31-19-generic
abi-2.6.32-22-generic System.map-2.6.31-20-generic
abi-2.6.32-23-generic System.map-2.6.32-22-generic
abi-2.6.34-020634-generic System.map-2.6.32-23-generic
config-2.6.31-19-generic System.map-2.6.34-020634-generic
config-2.6.31-20-generic System.map-2.6.34.1-candela
config-2.6.32-22-generic vmcoreinfo-2.6.31-19-generic
config-2.6.32-23-generic vmcoreinfo-2.6.31-20-generic
config-2.6.34-020634-generic vmcoreinfo-2.6.32-22-generic
config-2.6.34.1-candela vmcoreinfo-2.6.32-23-generic
grub vmlinuz-2.6.31-19-generic
initrd.img-2.6.31-19-generic vmlinuz-2.6.31-20-generic
initrd.img-2.6.31-20-generic vmlinuz-2.6.32-22-generic
initrd.img-2.6.32-22-generic vmlinuz-2.6.32-23-generic
initrd.img-2.6.32-23-generic vmlinuz-2.6.34-020634-generic
initrd.img-2.6.34-020634-generic vmlinuz-2.6.34.1-candela

afrodeity
July 24th, 2010, 08:48 AM
Putting this out there helped me solve this I hope.


Cannot find /lib/modules/linux-image-2.6.34.1-candela

should have been a clue

I cd'd into the /lib/modules/ and found my problem "linux-image" is not part of the initramfs way of doing things.

Correct syntax should be:


sudo update-initramfs -c -k 2.6.34.1-candela

afrodeity
July 24th, 2010, 09:05 AM
well, that only solved the "update-initramfs" modules not found issue. It still wants me to append a root, but grub is supposed to pass a "root=UUID=xxx" parameter. Anybody know what is going on and how to fix?

Kernel panic not solved.

UPDATE: I'm going to guess and say I have to run update-grub as well? See you next boot.

SOLVED --- update-grub did the trick, guess the kernelcheck script is slightly out of date.

zanadou
August 8th, 2010, 06:17 AM
Thanks for your hard work :) I have two questions:
1) Kernel.org shows that 2.6.34 is a stable version of kernel, why don't I get to compile that one? just 2.6.33.5

I have a similar error, my copy of KernelCheck Lumen right now can't find the latest stable 2.6.35, it just tells me that the latest kernel patch is 2.6.34 with the latest prepatch being 2.6.34.2 .

How can I "force" KernelCheck to "find" v2.6.35? Is there a problem with the kernel.org source URLs again?

kingsrook14
August 10th, 2010, 01:26 AM
I have a similar error, my copy of KernelCheck Lumen right now can't find the latest stable 2.6.35, it just tells me that the latest kernel patch is 2.6.34 with the latest prepatch being 2.6.34.2 .

How can I "force" KernelCheck to "find" v2.6.35? Is there a problem with the kernel.org source URLs again?

Hello,
Download 2.6.35 kernel and save to /usr/src
Choose Custom ==> Old stable patch as 2.6.35 in KernelCheck

Compiled 2.6.35 using KernelCheck Old Stable patch method with modified config for my laptop
Working very well so far (1 hr old)
Trying to fix === Wireless issues

EDIT: BTW my Core i7 4 GB RAM HP dv6 laptop compiled and installed kernel in 20 mins flat with -j16 flag
No Turbo Boost working

HeadHunter00
August 21st, 2010, 11:27 AM
Also, kernelcheck doesn't create any initrd images. So, make sure to create one before reboot using these steps: 1. cd /boot
2. sudo mkinitramfs -o initrd.img-kernel.name kernel.name

HeadHunter00
August 21st, 2010, 11:28 AM
EDIT: BTW my Core i7 4 GB RAM HP dv6 laptop compiled and installed kernel in 20 mins flat with -j16 flag
No Turbo Boost working
arghh, I am so jealous of you.

macaddict01
November 4th, 2010, 09:28 AM
Appears that KC is broken now that 2.6.36 is stable. Anyone found a workaround?

jdeeth
November 16th, 2010, 09:15 AM
Been trying to roll my own 2.6.35.8 on a new Asus laptop for a few days and I'm getting hung up on nVidia drivers. I've tried both the Yes and No options to reinstall the nVidia drivers during the kernel build and I fail each time.

The most common outcome is I get to a command line login prompt and after I log in, startx fails. The other outcome is, after the Asus splash screen, I simply have a blank screen.

lspci -v under 2.6.35.22 gives me these specs:

01:00.0 VGA compatible controller: nVidia Corporation Device 0df0 (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 1522
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at d000 [size=128]
[virtual] Expansion ROM at d3000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidia-current, nouveau, nvidiafb

Been using KernelCheck with no major issues on my old laptop for a year plus. What am I doing wrong here?:confused:

TheNikkoMan
March 4th, 2011, 10:49 AM
I know the above post is very old, but I had the same problem but managed to solve it. So, for future reference;
Most likely you have compiled with the nvidiafb module enabled, which had the same impact on me when I did the same. Compile again, WITHOUT Nvidia Framebuffer (or something), and you'll be good to go.
Just pumping in my own question here; The instructions on the first page showing how to change the name of the produced kernel does no longer apply. I've checked all three of my python-directories in usrlib, but no-one of them contained the correct file. Is there an equalient that still applies?

afrodeity
April 22nd, 2011, 11:18 AM
Just did a kernelcheck compile of latest kernel 2.6.38-candela. Didn't see a clean up tick box, and now wanting to cleanup the excess space used, anybody know where the working directory for candela would be?

UPDATE: forgot about this, its the linux-2.6.38 directory in /usr/src

static chaser
May 12th, 2011, 11:58 PM
I think I borked up my latest kernel. I used KC to download and compile 2.6.38.6 candela and I get an error that says "The package linux-image-2.6-38.6-candela needs to be reinstalled, but I can't find an archive for it." When I try Synaptic or apt-get or KC to reinstall it gives me this same error. I am on 10.04 AMD64 & have tried several times to reboot. I have used KC once before to fix a freezing problem and the program worked very well. Any help would be appreciated.

mockingbird
May 24th, 2011, 03:13 AM
Does this work with Kubuntu? When I launch it fromt he menu, it keeps asking me for the password which it claims is incorrect, but if I launch it from sudo or kdesudo it works but then crashes and exits when I press "Apply".

Z06Gal
June 28th, 2011, 09:50 PM
I am giving kc a whirl right now and wanted to ask those of you who have done this did you make alot of changes the first time you used it? I didn't make any changes than what came up on the config because I wasn't sure what to "tweak." Lol


Robin


Edit to add everything went great. This will make upgrading kernels so much better. Thanks to the developer of this program :)

master_kernel
July 24th, 2011, 07:40 PM
KernelCheck 1.5.0 due out late this July or early August.

MK

wormwang
July 31st, 2011, 03:01 PM
When KernelCheck support v3.0 Linux kernel?

zanadou
December 28th, 2011, 12:05 AM
Has KernelCheck development been abandoned?? It's starting to look that way...

afrodeity
December 29th, 2011, 10:32 AM
Would be a shame if it was, I rely on Kernelcheck, especially when the Ubuntu kernels fail.

deepspring
December 31st, 2011, 08:55 AM
Just a quick note from me...

I am not a member of the KernelCheck development team, and haven't been for nearly 2 years. Unfortunately Master_Kernel no longer checks his emails and hasn't bothered to update his sourceforge and launchpad sites to reflect this fact. There aren't any disagreements or anything between Master_Kernel and myself, it's just that life has pulled us in different directions.

I have not heard anything from Master_Kernel in years, so I am unaware of what he is doing with his life now.

I am now a Graphic Designer and have moved away from using Linux as my primary Operating System of choice in favour of Apple Mac OSX (which is the industry standard).