Hi Godfrey. Yes, i did compile the kernel myself. I did this after many failed attempted with the kernel that was shipped with distro and the source from apt repository.
Error is same in both cases, however.
Code:
root@bt:/usr/src# rm -rf *
root@bt:/usr/src# ls
root@bt:/usr/src# apt-get install linux-source-2.6.38
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-source-2.6.38 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@bt:/usr/src# apt-get remove linux-source-2.6.38
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-source linux-source-2.6.38 source-linux-source
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
After this operation, 76.6MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 293100 files and directories currently installed.)
Removing linux-source ...
Removing source-linux-source ...
Removing linux-source-2.6.38 ...
root@bt:/usr/src#
root@bt:/usr/src#
root@bt:/usr/src#
root@bt:/usr/src# apt-get install linux-source-2.6.38
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
xmlto libdb3-dev docbook-utils ksymoops
The following NEW packages will be installed:
linux-source-2.6.38
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/76.4MB of archives.
After this operation, 76.6MB of additional disk space will be used.
Selecting previously deselected package linux-source-2.6.38.
(Reading database ... 293083 files and directories currently installed.)
Unpacking linux-source-2.6.38 (from .../linux-source-2.6.38_2.6.38-10.00.Custom_all.deb) ...
Setting up linux-source-2.6.38 (2.6.38-10.00.Custom) ...
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
Examining /etc/kernel/src_postinst.d.
root@bt:/usr/src# ls
linux-source-2.6.38.tar.bz2
root@bt:/usr/src# prepare-kernel-sources [*] apt-getting linux-source...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
linux-source
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/826B of archives.
After this operation, 0B of additional disk space will be used.
Selecting previously deselected package linux-source.
(Reading database ... 293097 files and directories currently installed.)
Unpacking linux-source (from .../linux-source_1.1-bt1_all.deb) ...
Setting up linux-source (1.1-bt1) ...[*] extracting sources, please wait[*] doing stuff...
cp: missing destination file operand after `/boot/' <-- Any idea what this is supposed to be?
Try `cp --help' for more information.
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
HOSTCC scripts/recordmcount
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
ln: creating symbolic link `/lib/modules/2.6.38/build/linux': File exists[*] tada!
root@bt:/usr/src# cd linux
root@bt:/usr/src/linux# cp -rf include/generated/* include/linux/
root@bt:~/Downloads/fglrx# dpkg -i *.deb
(Reading database ... 293097 files and directories currently installed.)
Preparing to replace fglrx 2:8.861-0ubuntu1 (using fglrx_8.861-0ubuntu1_amd64.deb) ...
Removing all DKMS Modules
Done.
Unpacking replacement fglrx ...
Preparing to replace fglrx-amdcccle 2:8.861-0ubuntu1 (using fglrx-amdcccle_8.861-0ubuntu1_amd64.deb) ...
Unpacking replacement fglrx-amdcccle ...
Preparing to replace fglrx-dev 2:8.861-0ubuntu1 (using fglrx-dev_8.861-0ubuntu1_amd64.deb) ...
Unpacking replacement fglrx-dev ...
Preparing to replace fglrx-modaliases 2:8.861-0ubuntu1 (using fglrx-modaliases_8.861-0ubuntu1_amd64.deb) ...
Unpacking replacement fglrx-modaliases ...
Setting up fglrx (2:8.861-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Loading new fglrx-8.861 DKMS files...
Building only for 2.6.38
Building for architecture x86_64
Module build for the currently running kernel was skipped since the <-- Same Error
kernel source for this kernel does not seem to be installed.
update-initramfs: deferring update (trigger activated)
Setting up fglrx-modaliases (2:8.861-0ubuntu1) ...
Processing triggers for ureadahead ...
Setting up fglrx-amdcccle (2:8.861-0ubuntu1) ...
Setting up fglrx-dev (2:8.861-0ubuntu1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.38
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Originally Posted by
Godfrey
It seems that you compile the kernel yourself?
How about uninstalling package linux-source-2.6.38 purely,clearing the directory /usr/src/ and retrying another time?