LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Strange file access restrictions in kernel-headers directory (http://www.linuxquestions.org/questions/debian-26/strange-file-access-restrictions-in-kernel-headers-directory-176177/)

zero79 04-29-2004 11:26 PM

Strange file access restrictions in kernel-headers directory
 
Hi all,

I installed the kernel headers using "apt-get install kernel-headers-2.4.25-1-386" so that i will be able to install the proprietary nvidia drivers. it seems however that the file attributes in that kernel headers directory structure are messed up. if i go to the "/usr/src/kernel-headers-2.4.25-1-386/include/linux" directory and type "ls kernel.h", i see that kernel.h is indeed a file in that directory. however, if i type "more kernel.h", i get a message that says "kernel.h: No such file or directory." note that i am doing all of this as root, so i should have the proper permissions, right? i also tried a "chmod 777 kernel.h" and got the error "chmod: failed to get attributes of 'kernel'h': No such file or directory." what is going on here, and what can i do to rectify it? thanks for any help in advance.

now, if i do "ls -l | cut -b 57-" i find that all of the files in that directory are soft links to themselves. for example, kernel.h is "kernel.h -> ../../../kernel-headers-2.4.25-1-386/include/linux/kernel.h." what's going on?

peace.

ac1980 04-30-2004 08:20 AM

Imho this is a packaging error, the creator of the .deb had symlinks in kernel-headers to kernel-header-2.4.25-1-386 and packaged them without option to follow symlinks. Report this to package mantainer.

ac1980 04-30-2004 08:26 AM

I looked at the incriminated package... are you sure you installed kernel-headers-2.4.25-1 (without -i386) before? Was the donwload 5M or 300K? Maybe it's a dependancy problem.

zero79 04-30-2004 11:17 PM

yep ac1980, that was it. i needed to apt-get the headers without the -386 before hand. thanks for all the help.

peace.


All times are GMT -5. The time now is 05:41 PM.