PDA

View Full Version : [ubuntu] Problem installing new kernel with dpkg



Aptana
August 25th, 2009, 11:30 PM
I have built and compiled the kernel based on instructions from the web, and now have a .deb file that's apparently ready for installing. When I type this command:


dpkg -i ../linux-image-2.6.24.6_custom.1.0_i386.deb

I get this:

root@ks23741:~/linux-source-2.6.24# dpkg -i ../linux-image-2.6.24.6_custom.1.0_i386.deb
couldn't open log `/var/log/dpkg.log': Permission denied
dpkg-deb: failed to create directory: Permission denied
dpkg: error processing ../linux-image-2.6.24.6_custom.1.0_i386.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
../linux-image-2.6.24.6_custom.1.0_i386.deb

I have tried Google'ing (this most of the time fixes my problems related to errors :P) but have found nothing suitable :(

Any help would be greatly appreciated. Thank you. :)

abansb
August 25th, 2009, 11:41 PM
did you try


sudo dpkg -i ../linux-image-2.6.24.6_custom.1.0_i386.debNot for sure if this will work but it looks like you need root privilege from the permission denied

If I am wrong I am a newbie to ubuntu :)

oldos2er
August 25th, 2009, 11:47 PM
S/he's already at a root prompt, as shown by the #.

abansb
August 25th, 2009, 11:55 PM
did not see that sorry

oldos2er
August 26th, 2009, 12:07 AM
No need to be sorry! None of us were born knowing these things.

Aptana
August 26th, 2009, 01:32 AM
Yeah, I used fakeroot to gain root privileges just for this task. :)

Problems still around though. :(