package linux-image-2.6.38-10-generic 2.6.38-10.44 failed to install/upgrade: ErrorMessage: il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2

Bug #798980 reported by shark
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

this is the second time I try to upgrade the linux kernel from 2.6.38-8-generic to 2.6.38-10-generic... my distro is Ubuntu 11.04 here I'll past all the results of the upgrade...

Configurazione di linux-image-2.6.38-10-generic (2.6.38-10.44)...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.38-10-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
dkms: WARNING: linux headers are missing, which may explain the above failures.
      please install the linux-headers-2.6.38-10-generic package to fix this.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
Generating grub.cfg ...
/etc/grub.d/00_header: 39: Syntax error: "(" unexpected (expecting "fi")
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.38-10-generic.postinst line 1010.
dpkg: errore nell'elaborare linux-image-2.6.38-10-generic (--configure):
 il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
E: Sub-process /usr/bin/dpkg returned an error code (1)

P.S. I'm Italian and this is my first bug segnalation

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-10-generic 2.6.38-10.44
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: shark 1689 F.... pulseaudio
 /dev/snd/pcmC0D0p: shark 1689 F...m pulseaudio
CRDA: Error: [Errno 2] File o directory non esistente
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0xfb100000 irq 22'
   Mixer name : 'Realtek ALC883'
   Components : 'HDA:10ec0883,1458c601,00100002'
   Controls : 40
   Simple ctrls : 22
Date: Fri Jun 17 21:27:26 2011
ErrorMessage: ErrorMessage: il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. M61SME-S2
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=f0b94a20-ca42-40ad-87f6-a9abc0aee5f5 ro vga=795 quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic N/A
 linux-firmware 1.52.1
RfKill:

SourcePackage: linux
Title: package linux-image-2.6.38-10-generic 2.6.38-10.44 failed to install/upgrade: ErrorMessage: il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
UpgradeStatus: Upgraded to natty on 2011-06-17 (0 days ago)
dmi.bios.date: 07/15/2008
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F9
dmi.board.name: M61SME-S2
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF9:bd07/15/2008:svnGigabyteTechnologyCo.,Ltd.:pnM61SME-S2:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnM61SME-S2:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: M61SME-S2
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
shark (gae-roman-94) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Sergio S (srcsantos) wrote :

I had the same problem. To be able to install, i had to temporarily disable nvidia-common's kernel postinst triggers.
What i did was:
# sudo chmod a-x /etc/kernel/header_postinst.d/nvidia-common
# sudo chmod a-x /etc/kernel/postinst.d/nvidia-common
Upgraded kernel headers and image, and reversed the previous changes with:
# sudo chmod a+x /etc/kernel/header_postinst.d/nvidia-common
# sudo chmod a+x /etc/kernel/postinst.d/nvidia-common
After this i reinstalled "nvidia-current" just to make sure the driver was updated too, because i didn't notice if the module for the new kernel was generated, so i'm not sure if this was really needed... better safe than sorry.
This way i was able to upgrade the kernel, and i've already successfully rebooted without any issues, so it works. :)

tags: added: dist-upgrade
Revision history for this message
mtornos (mtornos) wrote :

Answer #2 worked OK for me, with the same bug.

Revision history for this message
Aliin (mirzaee1802) wrote :

It also worked for me too.
Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.