天天看点

如何得到UBUNTU源代码

<a href="http://www.pleaseguide.me/367/how-to-get-the-source-code-of-ubuntu">http://www.pleaseguide.me/367/how-to-get-the-source-code-of-ubuntu</a>

在按书作测试,有难点一一解决。

and to access kernel source code:

1. make sure you have the source code repository enabled. to do this, go to system&gt;administration&gt;software sources and check the source code repository. reload the package information.

如何得到UBUNTU源代码

2. open a terminal window and type

sudo apt-get install linux-source-2.x.xx

replace 2.x.xx with the kernel version. if you don't know what your kernel version is, use the following command:

uname -r

the output will be something like this "2.6.27-9-generic"

in this case you will have to replace 2.x.xx with 2.6.27

如何得到UBUNTU源代码