LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   gpg error compiling new kernel (2.6.4) (https://www.linuxquestions.org/questions/debian-26/gpg-error-compiling-new-kernel-2-6-4-a-168536/)

Qucho 04-10-2004 04:41 PM

gpg error compiling new kernel (2.6.4)
 
Debian woody. Curren kernel 2.4.18-bf2.4

I got my kener sources from:

deb http://www.backports.org/debian stable kernel-source-2.6.4
deb-src http://www.backports.org/debian stable kernel-source-2.6.4

After I did...

su then enter root password

# apt-get install kernel-package kernel-source-2.4.18 expectk
# cd /usr/src/
# bunzip2 kernel-source-2.4.18.tar.bz2
# tar xvf kernel-source-2.4.18.tar
# ln -s /usr/src/kernel-source-2.4.18 /usr/src/linux
# cd linux
# make xconfig

select kernel modules

# make-kpkg -rev Qucho.1 kernel_image

Here I got the error:

dpkg-deb: building package `kernel-headers-2.6.4' in `../kernel-headers-2.6.4_Qucho.1_i386.deb'.
rm -rf debian/tmp-headers
touch stamp-headers
make[2]: Leaving directory `/usr/src/kernel-source-2.6.4'
make[1]: Leaving directory `/usr/src/kernel-source-2.6.4'
signfile kernel-source-2.6.4_Qucho.1.dsc
gpg: skipped `Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>': secret key not available
gpg: [stdin]: clearsign failed: secret key not available
make: *** [stamp-buildpackage] Error 2

What in heavens this gpg error means ?

geekzen 04-10-2004 05:02 PM

I think its cause your building a header package. If you want to build a new kernel, download it from kernel.org, or wait until it gets released to unstable. In woody you wont be able to run a 2.6.* kernel, as woody does not have module-init-tools.

Qucho 04-10-2004 05:54 PM

well.. i am a newbie... but... is to my understanding I was compiling from source not headers.

Notice I used my apt-get install with a source package.

The creation of the headers files as I understand is just part of the whole proccess.

Now..gpg is the GNU program for managment of encrypting and signature keys. If I am not mistaken.

What I dont understand is how this is affecting my compilation.

I wonder if the source files are corrupted or the signature deos not match ??
has to do my my personal gpg keys ?

<sigh> :(

geekzen 04-10-2004 06:10 PM

Well... put it this way. I've never had to build the headers. If you do, then i guess i've built my last... 20 kernels wrong.

mrcheeks 04-10-2004 07:15 PM

install kernel headers if you don't have it.
make-kpkg --revision=custom.1 kernel_image modules_image

you can simply do
make && make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.4
ln -s /boot/vmlinuz-2.6.4 /
vim /etc/lilo.conf
lilo
reboot

----------------------------------------------------------------------------------
don't forget to apt-get install modules-init-tools

HappyTux 04-11-2004 12:37 AM

Re: gpg error compiling new kernel (2.6.4)
 
Quote:

Originally posted by Qucho
Debian woody. Curren kernel 2.4.18-bf2.4

I got my kener sources from:

deb http://www.backports.org/debian stable kernel-source-2.6.4
deb-src http://www.backports.org/debian stable kernel-source-2.6.4

After I did...

su then enter root password

# apt-get install kernel-package kernel-source-2.4.18 expectk
# cd /usr/src/
# bunzip2 kernel-source-2.4.18.tar.bz2
# tar xvf kernel-source-2.4.18.tar
# ln -s /usr/src/kernel-source-2.4.18 /usr/src/linux
# cd linux
# make xconfig

select kernel modules



Asumming the 2.4.18's in the lines are typos the commands would be right but you are not the recommended user when doing them except for the install of the actual kernel source there is no need to be root when doing any of the other steps you should be in your normal user account after the kernel install.
Quote:

# make-kpkg -rev Qucho.1 kernel_image
Here you should be normal user again and be using the fakeroot package to compile the kernel so the compile line would be fakeroot make-kpkg -rev Qucho.1 kernel_image. You should have also used fakeroot make-kpkg clean before starting the compile.
Quote:

Here I got the error:

dpkg-deb: building package `kernel-headers-2.6.4' in `../kernel-headers-2.6.4_Qucho.1_i386.deb'.
rm -rf debian/tmp-headers
touch stamp-headers
Now this makes no sense at all you do not have a kernel_headers in the compile line you post above.

Quote:

make[2]: Leaving directory `/usr/src/kernel-source-2.6.4'
make[1]: Leaving directory `/usr/src/kernel-source-2.6.4'
signfile kernel-source-2.6.4_Qucho.1.dsc
gpg: skipped `Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>': secret key not available
gpg: [stdin]: clearsign failed: secret key not available
make: *** [stamp-buildpackage] Error 2

What in heavens this gpg error means ?

According to my reading of the debsign man page it looks like you somehow have turned on the gpg package signing in the file /etc/devscripts.conf in this section here.
Code:

##### debsign
#
# Which signing program to use?  gpg and pgp are the usual values; the
# default is determined as described in the manpage.
# Corresponds to -p option
# DEBSIGN_PROGRAM=
#
# How the signing program works; must be either gpg or pgp as of
# devscripts version 2.7.2.  The default is described in the
# manpage.  Corresponds to -sgpg and -spgp.
# DEBSIGN_SIGNLIKE=
#
# Maintainer name (only used to determine GPG keyid; -m option)
# DEBSIGN_MAINT=
#
# GPG keyid to use (-k option)
# DEBSIGN_KEYID=

##### debrsign

You may want to check the settings in the file and this here.

Code:

Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>
Can be fixed by editing the /etc/kernel-pkg.conf file and putting in the proper settings like this.

Code:

# The maintainer information.
maintainer := Stephen Cormier
email := scormier@no.spam

And as has already been mentioned install a backport of the module-init-tools or that 2.6 kernel will never boot when you get it compiled.

geekzen 04-11-2004 01:15 PM

Actually, it will boot, however, modules will NOT work.


All times are GMT -5. The time now is 11:49 AM.