Error 2 installing a custom 2.6.29.1 kernel on Jaunty
I'm trying to compile 2.6.29.1 kernel on Jaunty, I downloaded the sources from Ubuntu repos, made some few changes to .config and compiled it like this
sudo time make-kpkg --rootcmd fakeroot --initrd kernel_image kernel_headers modules_image
headers package installs ok.
luca@luca-
[sudo] password for luca:
Seleccionando el paquete linux-headers-
(Leyendo la base de datos ...
175507 ficheros y directorios instalados actualmente.)
Desempaquetando linux-headers-
Configurando linux-headers-
but I got this error installing the kernel package
luca@luca-
Seleccionando el paquete linux-image-
(Leyendo la base de datos ...
182945 ficheros y directorios instalados actualmente.)
Desempaquetando linux-image-
Done.
Configurando linux-image-
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.29.1
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error al procesar linux-image-
el subproceso post-installation script devolvió el código de salida de error 2
Se encontraron errores al procesar:
linux-
luca@luca-
On my pc I have two installation of Ubuntu:
- on sda2 Intrepid with 2.6.27
- on sda3 Jaunty with 2.6.28
in jaunty I installed as well the 2.6.29.1 kernel from Ubuntu ppa kernel.
Both versions of ubuntu share the /boot on sda1.
The kernel has been installed and it seems to work fine (I'm testing as much as I can), booting verbosely I can see a fail in loading APPARMOR and another fail loading a kernel module for VirtualBox.
In the /boot partition I don' t have an ABI file for my kernel.
Firstly I suspected that the error 2 were due to the fact that I don' t have any linux-restricte
Does somebody can tell me how to fix the error 2 and the other problems?
Thanks a lot.
luca
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- smurf
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
This question was reopened
- by smurf
Revision history for this message
|
#1 |
compilation output (sorry for spanish).
DEPMOD 2.6.29.1
make[2]: se sale del directorio `/usr/src/
test ! -e scripts/
test ! -e scripts/
test ! -f Documentation/
install -p -o root -g root -m 644 Documentation/
test ! -f /usr/src/
chmod 755 /usr/src/
test ! -e /usr/src/
mv /usr/src/
test ! -e /usr/src/
mv /usr/src/
test ! -e ./debian/
mv ./debian/
test ! -e ./debian/build-link || \
mv ./debian/build-link /usr/src/
/sbin/depmod -q -FSystem.map -b /usr/src/
test ! -f System.map || cp System.map \
/usr/
test ! -f System.map || chmod 644 \
/usr/
cp arch/x86/
chmod 644 /usr/src/
if test -d /usr/src/
TMPTOP=
run-parts --verbose /usr/src/
fi
if [ -x debian/post-install ]; then \
TMPTOP=
IMAGE_
fi
test ! -s applied_patches || cp applied_patches \
/usr/
test ! -s applied_patches || chmod 644 \
/usr/
test ! -f Kerntypes || cp Kerntypes \
/usr/
test ! -f Kerntypes || chmod 644 \
/usr/
====== making target debian/
This is kernel package version 11.015.
/usr/bin/make -f ./debian/rules debian/
make[2]: se ingresa al directorio `/usr/src/
====== making target debian/
This is kernel package version 11.015.
install -p -d -o root -g root -m 755 /usr/src/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86_64@g' \
./debian/
chmod 755 /usr/src/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86_64@g' \
./debian/
chmod 755 /usr/src/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86_64@g' \
./debian/
chmod 755 /usr/src/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86_64@g' \
./debian/
chmod 755 /usr/src/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86_64@g' \
./debian/
chmod 755 /usr/src/
po2debconf debian/templates.in > debian/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's@=MK@
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86_64@g' \
./debian/
install -p -o root -g root -m 644 ./debian/
dpkg-gencontrol -DArchitecture=
-plinux-
create_md5sums_fn () { cd $1 ; find . -type f ! -regex '.*/DEBIAN/.*' ! -regex './etc/.*' ! -regex '.*lib/
chmod -R og=rX /usr/src/
chown -R root:root /usr/src/
dpkg --build /usr/src/
dpkg-deb: construyendo el paquete `linux-
make[2]: se sale del directorio `/usr/src/
make[1]: se sale del directorio `/usr/src/
/usr/bin/make -f ./debian/rules debian/
make[1]: se ingresa al directorio `/usr/src/
====== making target debian/
This is kernel package version 11.015.
rm -rf /usr/src/
install -p -d -o root -g root -m 755 /usr/src/
install -p -d -o root -g root -m 755 /usr/src/
install -p -d -o root -g root -m 755 /usr/src/
install -p -d -o root -g root -m 755 /usr/src/
install -p -o root -g root -m 644 debian/changelog /usr/src/
install -p -o root -g root -m 644 ./debian/
install -p -o root -g root -m 644 .config /usr/src/
install -p -o root -g root -m 644 conf.vars /usr/src/
install -p -o root -g root -m 644 CREDITS /usr/src/
install -p -o root -g root -m 644 MAINTAINERS /usr/src/
install -p -o root -g root -m 644 REPORTING-BUGS /usr/src/
install -p -o root -g root -m 644 README /usr/src/
if test -f debian/official && test -f debian/
install -p -o root -g root -m 644 debian/
install -p -o root -g root -m 644 README.Debian /usr/src/
fi
if test -f README.Debian ; then \
install -p -o root -g root -m 644 README.Debian /usr/src/
fi
gzip -9qfr /usr/src/
echo "This was produced by kernel-package version: 11.015." > \
chmod 0644 /usr/src/
install -p -o root -g root -m 644 ./debian/
install -p -o root -g root -m 644 Makefile /usr/src/
test ! -e Rules.make || install -p -o root -g root -m 644 Rules.make /usr/src/
test ! -e .kernelrelease || install -p -o root -g root -m 644 .kernelrelease /usr/src/
test ! -e arch/x86/Makefile || \
test ! -e arch/x86/
test ! -e arch/x86/
test ! -e Rules.make || install -p -o root -g root -m 644 Rules.make /usr/src/
test ! -e Module.symvers || install -p -o root -g root -m 644 Module.symvers /usr/src/
tar cf - include | (cd /usr/src/
tar cf - scripts | (cd /usr/src/
(cd /usr/src/
find . -path './scripts/*' -prune -o -path './Documentation/*' -prune -o \
\( -name Makefile -o -name 'Kconfig*' \) -print | \
cpio: /usr/src/
cpio: /usr/src/
6826 bloques
test ! -d arch/x86/include || find arch/x86/include \
2221 bloques
test ! -d arch/x86/scripts || find arch/x86/scripts \
test ! -e arch/x86/
install -p -o root -g root -m 644 arch/x86/
for file in dummy; do \
test ! -e $file || install -p -o root -g root -m 644 $file /usr/src/
done
(cd /usr/src/
(cd /usr/src/
install -p -o root -g root -m 644 .config /usr/src/
echo 2.6.29.
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86@g' \
test -d /usr/src/
for file in ChangeLog Control Control.bin86 config templates.in rules control changelog; do \
cp -f ./debian/$file /usr/src/
done
for dir in Config docs examples ruleset scripts pkg po; do \
cp -af ./debian/$dir /usr/src/
done
test ! -d /usr/src/
if file -b $i | egrep -q "^ELF.*executable"; then \
strip --strip-all --remove-
fi; \
done
test ! -d /usr/src/
if file -b $i | egrep -q "^ELF.*shared object"; then \
strip --strip-unneeded --remove-
fi; \
done
====== making target debian/
This is kernel package version 11.015.
/usr/bin/make -f ./debian/rules debian/
make[2]: se ingresa al directorio `/usr/src/
====== making target debian/
This is kernel package version 11.015.
install -p -d -o root -g root -m 755 /usr/src/
sed -e 's/=V/2.6.29.1/g' -e 's/=IB//g' \
-e 's/=ST/linux/g' -e 's/=R//g' \
-e 's/=K/bzImage/g' -e 's/=L/lilo/g' \
-e 's/=I/YES/g' -e 's,=D,/boot,g' \
-e 's/=MD/
-e 's@=MK@
-e 's@=M@@g' -e 's/=OF//g' \
-e 's/=S//g' -e 's@=B@x86@g' \
./debian/
chmod 755 /usr/src/
cp -pf debian/control debian/control.dist
k=`find /usr/src/
if file -b $i | egrep -q "^ELF.*
j="$j $i"; \
fi; \
done; echo $j; )`; test -z "$k" || dpkg-shlibdeps $k; \
echo "Elf Files: $K" > /usr/src/
test -n "$k" || perl -pli~ -e 's/\$\{
dpkg-shlibdeps: aviso: dependency on libz.so.1 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXt.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libaudio.so.2 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libX11.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libjpeg.so.62 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXft.so.2 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXrender.so.1 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libfontconfig.so.1 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libncurses.so.5 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXext.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXi.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libSM.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXinerama.so.1 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXcursor.so.1 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libpng12.so.0 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libfreetype.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libICE.so.6 could be avoided if "/usr/src/
dpkg-shlibdeps: aviso: dependency on libXrandr.so.2 could be avoided if "/usr/src/
test ! -e debian/control~ || rm -f debian/control~
dpkg-gencontrol -isp -DArchitecture=
create_md5sums_fn () { cd $1 ; find . -type f ! -regex '.*/DEBIAN/.*' ! -regex './etc/.*' ! -regex '.*lib/
chown -R root:root /usr/src/
chmod -R og=rX /usr/src/
dpkg --build /usr/src/
dpkg-deb: construyendo el paquete `linux-
cp -pf debian/control.dist debian/control
make[2]: se sale del directorio `/usr/src/
make[1]: se sale del directorio `/usr/src/
for module in ; do \
if test -d $module; then \
(cd $module; \
if ./debian/rules KVERS="2.6.29.1" KSRC="/
else \
read ans; \
fi; \
); \
else \
echo "Module $module does not exist"; \
echo "Hit return to Continue?"; \
fi; \
done
818.07user 177.56system 16:30.53elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
10040inputs+
Revision history for this message
|
#2 |
well, actually, every time I try to install something, apt or synaptic return the error code 2. Even if I've booted the system from an official kernel (DKMS I suppose).
Revision history for this message
|
#3 |
ok I found the solution right now, starting from Hardy has changed the way to compile / link the kernel.
Sorry for this.
Cheers
Revision history for this message
|
#4 |
Sorry but the problem is still alive.
I found this guide https:/
I' ve downloaded the source packages from repos, 2.6.28 this time, I used the "old fashion way" because the autobuild was not working for me (no debian/rules dir present in the source)
Configuring linux-image-
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-2.6.28.9
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /memtest86+.bin
Replacing config file /var/run/
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
post-installation script returned exit code error 2
Errors found processing:
linux-
luca@luca-
what I' m missing?
Is it DKMS the problem?
Revision history for this message
|
#5 |
Just to add more info. I have an EEEpc running Intrepid, kernel 2.6.27, I tried to compile the kernel on it, with the same method. No errors at all, the kernel compiled and is perfectly functional.
On the eeepc there are no restricted drivers, so there is no DKMS.
I suspect that DKMS or the restricted drivers are the problem on my desktop.
Anyone can help me?
Revision history for this message
|
#6 |
there is an opened bug for this problem.
I'll close this question.