Linux.com

Continued:

Posted by: Anonymous Coward on September 03, 2006 06:49 AM
 mv kernel-headers-2.6.8-3-k7 linux-2.6.8-3-k7

 tar cf kernel-headers-2.6.8-3-k7.tar linux-2.6.8-3-k7

 rm -fr linux-2.6.8-3-k7



(the move ensures the tar archive will unpack into linux-2.6.8-3-k7)

(creates tar archive named kernel-headers-2.6.8-3-k7.tar)

(removes unneeded directory and contents)



 tar xjf kernel-source-2.6.8.tar.bz2

 mv kernel-source-2.6.8 linux-2.6.8-k7



(unpacks main kernel source)

(move main kernel source to linux-2.6.8-k7)



 tar xf kernel-headers-2.6.8-3.tar

 tar xf kernel-headers-2.6.8-3-k7.tar



(unpack kernel-headers-2.6.8-3.tar into linux-2.6.8-k7)

(unpack kernel-headers-2.6.8-3-k7.tar into linux-2.6.8-k7)



In summary, the directories of header files are repacked so that they will unpack into linux-2.6.8-3-k7. The kernel-source-2.6.8.tar.bz2 package is unpacked and moved to linux-2.6.8-3-k7. The tarred kernel-header directories, also unpack into linux-2.6.8-3-k7 and the sources are reintegrated.



By the way, the name linux-2.6.8-3-k7 was chosen simply because the command uname -r returned 2.6.8-3-k7.



Well, fine and good, so far. But the nightmare is not quite over.



The Debian packagers have "accidentally" forgotten a necessary link and have another pointing to some random place. To fix these "oversights" do the following:




 cd<nobr> <wbr></nobr>/lib/modules/2.6.8-2-k7

 rm -fr boot source

 ln -s<nobr> <wbr></nobr>/usr/src/linux-2.6.8-2-k7 boot

 ln -s<nobr> <wbr></nobr>/usr/src/linux-2.6.8-2-k7 source



Now you can continue with the ATI driver installation as above (tested on Debian Sarge).



Of course, you will have to adjust the kernel versions in the above to reflect your situation. You may also ask some Debian person for the name of the script (assuming it exists) that reassembles the unnecessarily split kernel sources. Of course, this script should be automatically run, when the kernel sources are installed.



Remember, that with SuSE or Mandriva, the kernel-sources can be installed with one or two clicks.



You may wish to speculate, as to the reasons the Debian packagers are deliberately making things difficult for you.



From <a href="http://m.domaindlx.com/LinuxHelp/ati/ati.htm" title="domaindlx.com">http://m.domaindlx.com/LinuxHelp/ati/ati.htm</a domaindlx.com>

#

Return to Maintainer's resignation highlights problems in Debian project