ubuntu编译内核出现错误,求解

yanyun110119 2011-03-21 01:26:40
ubuntu版本是9.04,安装在虚拟机中准备升级内核到2.6.38
执行了如下命令开始编译:sudo make-kpkg -initrd --initrd --append-to-version=gould0.76 kernel_image kernel-headers
开始一切正常,但是最后显示错误:

make[1]:正在离开目录 `/usr/src/linux-2.6.38'
test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -e scripts/package/Makefile || test -f scripts/package/Makefile.kpkg-dist || (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && (echo "# Dummy file "; echo "help:") > scripts/package/Makefile)
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
grep LINUX_COMPILER include/linux/compile.h | \
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
grep: include/linux/compile.h: 没有那个文件或目录
echo applied kernel patches: >> debian/buildinfo
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules debian/stamp/binary/pre-linux-image-2.6.38gould0.76
make[1]: 正在进入目录 `/usr/src/linux-2.6.38'
====== making target debian/stamp/install/linux-image-2.6.38gould0.76 [new prereqs: ]======
This is kernel package version 11.015.
echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.38gould0.76\" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.38gould0.76"
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.38gould0.76] 错误 2
make[1]:正在离开目录 `/usr/src/linux-2.6.38'
make: *** [kernel_image] 错误 2

不知道是什么问题,希望高手能帮忙解答
...全文
241 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
freetstar 2011-03-21
  • 打赏
  • 举报
回复
没有的话自己创建一个就行了
freetstar 2011-03-21
  • 打赏
  • 举报
回复
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.38gould0.76"
Please correct this.

===================
你手动把2.6.38gould0.76写到include/linux/version.h这里试试

看来都在打传说中的鸡血内核
ww2000e 2011-03-21
  • 打赏
  • 举报
回复
grep: include/linux/compile.h: 没有那个文件或目录

echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.38gould0.76\" "; echo "Please correct this."; exit 2

-------------

还是
make menuconfig
make bzImage
make modules
...
一步一步来吧

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧