LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   E: Sub-process /usr/bin/dpkg returned an error code (1) (http://www.linuxquestions.org/questions/linux-newbie-8/e-sub-process-usr-bin-dpkg-returned-an-error-code-1-a-933356/)

benjaminosis 03-08-2012 12:24 AM

E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Hi. I'm new to linux, I have backtrack on VMware running on XP, I am trying to do this:

https://help.ubuntu.com/community/Wi...ce/Tenda_W311M

When I got to step 4, I got this back:

root@bt:~/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO# make
make -C tools
make[1]: Entering directory `/root/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools'
/root/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /root/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile
make -C /lib/modules/3.2.6/build SUBDIRS=/root/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux modules
make: *** /lib/modules/3.2.6/build: No such file or directory. Stop.
make: *** [LINUX] Error 2

I have searched through several forums, several commands, I don't understand alot about this. I have tried apt-get upgrade:

root@bt:~/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up cpad-kernel-source (0.10-6ubuntu1) ...
Warning: kernel headers don't match running Linux version.
Building cpad module for Linux _CODE 19712 (this may take a few minutes)...dpkg: error processing cpad-kernel-source (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
cpad-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)

also:

root@bt:~# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up cpad-kernel-source (0.10-6ubuntu1) ...
Warning: kernel headers don't match running Linux version.
Building cpad module for Linux 2.6.39.4 (this may take a few minutes)...dpkg: error processing cpad-kernel-source (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
cpad-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried this due to this I see in forums similar error msg on google.

Please help. Thank you

benjaminosis 03-09-2012 07:21 PM

Ok, i could not solve this, dont know what caused it, however I did solve my original issue, w311m usb wireless adapter is now detected after installinb backtrack5 r2, however it falls after a few minutes. will work on that today, opinions on this are welcome. sorry if this is the wrong place to post,
thank you anyway for reading!


All times are GMT -5. The time now is 07:17 AM.