What is the location of my Linux headers?

Ubuntu China ubuntu-user at ubuntu.org.cn
Fri Oct 28 02:50:36 UTC 2005

On 10/27/05, Dave M G <martin at autotelic.com> wrote:
> On Thu, 2005-10-27 at 17:36 +0200, Reinhard Tartler wrote:
> > sudo apt-get install linux-headers-$(uname -r)
> > now look in "/lib/modules/$(uname -r)/build"
> Thank you. That plus installing gcc-3.4 enabled me to build a deb
> package. But installing it got the following error:
> dave at ubuntu1:/usr/src/modules$ dpkg -i
> wacom-kernel-modules-2.6.12-9-386_0.6.6-8ubuntu6_i386.deb
> dpkg: requested operation requires superuser privilege
> dave at ubuntu1:/usr/src/modules$ sudo dpkg -i
> wacom-kernel-modules-2.6.12-9-386_0.6.6-8ubuntu6_i386.deb
> Selecting previously deselected package
> wacom-kernel-modules-2.6.12-9-386.
> (Reading database ... 98952 files and directories currently installed.)
> Unpacking wacom-kernel-modules-2.6.12-9-386 (from
> wacom-kernel-modules-2.6.12-9-386_0.6.6-8ubuntu6_i386.deb) ...
> dpkg: error processing
> wacom-kernel-modules-2.6.12-9-386_0.6.6-8ubuntu6_i386.deb (--install):
>  trying to overwrite
> `/lib/modules/2.6.12-9-386/kernel/drivers/usb/input/wacom.ko', which is
> also in package linux-image-2.6.12-9-386
> Errors were encountered while processing:
>  wacom-kernel-modules-2.6.12-9-386_0.6.6-8ubuntu6_i386.deb
> Any idea what I do about this? I have no idea what any of this means.

you may tell dpkg to overwrite the file since the kernel already
module wacom.ko. but make sure you know what your doing.

$ sudo dpkg --force-overwrite -i

Ryan Escarez
CEBB F1E4 1E39 EC48 F05D  6B72 9C11 DD88 5E39 E471
$ gpg --keyserver pgp.mit.edu --recv-keys 0x5E39E471
main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)
for(x=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))

ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com

More information about the ubuntu-users mailing list