求助:编译内核最后部分出错,有什么解决办法?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
jamesfang
帖子: 11
注册时间: 2005-06-08 8:17

求助:编译内核最后部分出错,有什么解决办法?

#1

帖子 jamesfang » 2005-06-11 14:14

编译内核最后部分出错,高手看看什么原因?有什么解决办法,可把编译好的包装上?

下面是出错信息:

if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux-source-2.6.11-2.6.11/debian/build/install-686/debian/tmp-image -r 2.6.11-1-686; fi
make[3]: Leaving directory `/usr/src/linux-source-2.6.11-2.6.11/debian/build/install-686'
test ! -e debian/tmp-image/lib/modules/2.6.11-1-686/source || \
mv debian/tmp-image/lib/modules/2.6.11-1-686/source ./debian/source-link
test ! -e debian/tmp-image/lib/modules/2.6.11-1-686/build || \
mv droot@MediaCenter:/usr/src/linux-source-2.6.11-2.6.11/debian/build # ls
build-686 linux-headers-2.6.11-1-686_2.6.11-0.2_i386.deb linux-source-2.6.11
linux-headers-2.6.11-1_2.6.11-0.2_i386.deb linux-image-2.6.11-1-686_2.6.11-0.2_i386.debebian/tmp-image/lib/modules/2.6.11-1-686/build ./debian/build-link
depmod -q -FSystem.map -b debian/tmp-image 2.6.11-1-686;
test ! -e ./debian/source-link || \
mv ./debian/source-link debian/tmp-image/lib/modules/2.6.11-1-686/source
test ! -e ./debian/build-link || \
mv ./debian/build-link debian/tmp-image/lib/modules/2.6.11-1-686/build
cp arch/i386/boot/bzImage debian/tmp-image/boot/vmlinuz-2.6.11-1-686
chmod 644 debian/tmp-image/boot/vmlinuz-2.6.11-1-686;
if test -d /usr/src/linux-source-2.6.11-2.6.11/debian/build/install-686/debian/image.d ; then \
IMAGE_TOP=debian/tmp-image version=2.6.11-1-686 \
run-parts --verbose /usr/src/linux-source-2.6.11-2.6.11/debian/build/install-686/debian/image.d ; \
fi
if [ -x debian/post-install ]; then \
IMAGE_TOP=debian/tmp-image STEM=linux version=2.6.11-1-686 \
debian/post-install; \
fi
dpkg-deb:正在新建软件包“linux-headers-2.6.11-1-686”,包文件为“../linux-headers-2.6.11-1-686_2.6.11-0.2_i386.deb”。
test ! -s applied_patches || cp applied_patches \
debian/tmp-image/boot/patches-2.6.11-1-686
test ! -s applied_patches || chmod 644 \
debian/tmp-image/boot/patches-2.6.11-1-686
test ! -f System.map || cp System.map \
debian/tmp-image/boot/System.map-2.6.11-1-686;
test ! -f System.map || chmod 644 \
debian/tmp-image/boot/System.map-2.6.11-1-686;
# For LKCD enabled kernels
test ! -f Kerntypes || cp Kerntypes \
debian/tmp-image/boot/Kerntypes-2.6.11-1-686
test ! -f Kerntypes || chmod 644 \
debian/tmp-image/boot/Kerntypes-2.6.11-1-686
rm -f debian/tmp-image/lib/modules/2.6.11-1-686/build
dpkg-gencontrol -DArchitecture=i386 -isp \
-plinux-image-2.6.11-1-686 -Pdebian/tmp-image/
chmod -R og=rX debian/tmp-image
chown -R root:root debian/tmp-image
dpkg --build debian/tmp-image ..
dpkg-deb:正在新建软件包“linux-image-2.6.11-1-686”,包文件为“../linux-image-2.6.11-1-686_2.6.11-0.2_i386.deb”。
rm -f -r debian/tmp-image
echo done > stamp-image
make[2]: Leaving directory `/usr/src/linux-source-2.6.11-2.6.11/debian/build/install-686'
make[1]: Leaving directory `/usr/src/linux-source-2.6.11-2.6.11/debian/build/install-686'
dh_testdir
dh_testroot
# unpack the kernels into a temporary directory
mkdir -p debian/d-i-i386
# XXX: this stuff finds the kernels that need upacking according to
# kernel-versions and unpack them into the temp dir.
imagelist=$(cat kernel-versions | grep ^i386 | awk '{print $4}') && \
for i in $imagelist; do \
dpkg -x $(ls debian/build/linux-image-$i\_*i386.deb) debian/d-i-i386; \
done
ls: debian/build/linux-image-2.6.11-1-386_*i386.deb: 没有那个文件或目录
dpkg-deb: --extract 需要一个目录作为目标目录。
或许您应该使用 dpkg --install?
make: *** [unpack-kernels] 错误 2

root@MediaCenter:/usr/src # ls
rpm
linux-source-2.6.11-2.6.11
linux-doc-2.6.11_2.6.11-0.2_all.deb linux-source-2.6.11_2.6.11-0.2_all.deb
linux-source-2.6.11_2.6.11-0.2.dsc linux-tree-2.6.11_2.6.11-0.2_all.deb
linux-patch-ubuntu-2.6.11_2.6.11-0.2_all.deb

root@MediaCenter:/usr/src/linux-source-2.6.11-2.6.11/debian/build # ls
build-686 linux-headers-2.6.11-1-686_2.6.11-0.2_i386.deb linux-source-2.6.11
linux-headers-2.6.11-1_2.6.11-0.2_i386.deb linux-image-2.6.11-1-686_2.6.11-0.2_i386.deb
回复