run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to removed package with lingering files in /etc ]

Bug #480055 reported by fabio
230
This bug affects 31 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: dkms

apt-get update; apt-get upgrade

    I seguenti pacchetti sono stati mantenuti alla versione attuale:
    linux-generic linux-headers-generic linux-image-generic

sudo apt-get install linux-generic linux-headers-generic linux-image-generic

update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /memtest86+.bin
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms
run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
 il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2

ProblemType: Package
Architecture: amd64
Date: Tue Nov 10 16:04:01 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: linux-image-2.6.31-15-generic 2.6.31-15.49
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: dkms
Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Uname: Linux 2.6.31-14-generic x86_64

Related branches

Revision history for this message
fabio (meneghetti-fabio) wrote :
Revision history for this message
Mario Limonciello (superm1) wrote :

Can someone with this problem please post their /etc/kernel/postinst.d/dkms file and the permissions on it (ls -alh /etc/kernel/postinst.d).

It looks like there may have been some corruption during installation.

Changed in dkms (Ubuntu):
status: New → Incomplete
Revision history for this message
quarK (marioquark-yahoo) wrote :

here i am:
same behaviuor...

my /etc/kernel/postinst.d/dkms file exists but is EMPTY
and its permissions are
-rwxr-xr-x 1 root root 0 2009-07-29 23:29 dkms

this bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/417495 seems similar even if it's related to nvidia-common package...

Revision history for this message
Mario Limonciello (superm1) wrote :

@mvo:

Would you mind taking a look at this? I'm really not sure why this situation has happened. I've seen a few similar bugs like it happening though.

Revision history for this message
Lawrence Seguin (lseguin) wrote :

dkms file is empty

Revision history for this message
Rajinder Sandhu (sandy744) wrote :

Hi Mario,
Please find the requested output in the following para:

rajinder@rajinder-desktop:~$ cat /etc/kernel/postinst.d/dkms
#!/bin/bash

# We're passed the version of the kernel being installed
inst_kern=$1

exec /usr/lib/dkms/dkms_autoinstaller start $inst_kern
rajinder@rajinder-desktop:~$ ls -alh /etc/kernel/postinst.d
total 20K
drwxr-xr-x 2 root root 4.0K 2009-12-18 12:27 .
drwxr-xr-x 5 root root 4.0K 2009-12-18 12:27 ..
-rwxr-xr-x 1 root root 139 2009-12-15 22:48 dkms
-rwxr-xr-x 1 root root 479 2009-07-28 13:38 nvidia-common
-rwxr-xr-x 1 root root 196 2009-12-06 17:31 pm-utils
rajinder@rajinder-desktop:~$

Thanks,
Rajinder Sandhu
having dup of the same bug 498651

Revision history for this message
StefanPotyra (sistpoty) wrote :

Just happened to me, too. The reason is a logic error:
If dkms is removed, but not purged, the conf-files will not get deleted from the system. As a result, the assumption that the package contents are available if the conf-file is available is wrong.

-> please add a check to /etc/kernel/postinst.d/dksm to ensure that /var/lib/dkms/dkms_autoinstaller is available before calling it.

Thanks,
   Stefan.

Changed in dkms (Ubuntu):
status: Incomplete → Confirmed
status: Confirmed → Triaged
Revision history for this message
StefanPotyra (sistpoty) wrote :

Oh, sorry, rereading all comments, this bug report seems to actually refer to two different bugs:
1) /etc/kernel/postinst.d/dkms is empty
-> no clue about that
2) /etc/kernel/postinst.d/dkms exists and is non-empty, but dkms is removed.
-> see comment 7.

Revision history for this message
Rajinder Sandhu (sandy744) wrote : Re: [Bug 480055] Re: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1

I could kill the issue and update the OS after installing dkms manually with
synaptic manager...hope it could give you some hint to add installation of
dkms line in the update program
Thanks
Rajinder
=============================
On Wed, Jan 6, 2010 at 10:48 PM, StefanPotyra <
<email address hidden>> wrote:

> Oh, sorry, rereading all comments, this bug report seems to actually refer
> to two different bugs:
> 1) /etc/kernel/postinst.d/dkms is empty
> -> no clue about that
> 2) /etc/kernel/postinst.d/dkms exists and is non-empty, but dkms is
> removed.
> -> see comment 7.
>
> --
> package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> https://bugs.launchpad.net/bugs/480055
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “dkms” package in Ubuntu: Triaged
>
> Bug description:
> Binary package hint: dkms
>
> apt-get update; apt-get upgrade
>
> I seguenti pacchetti sono stati mantenuti alla versione attuale:
> linux-generic linux-headers-generic linux-image-generic
>
> sudo apt-get install linux-generic linux-headers-generic
> linux-image-generic
>
> update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> Running postinst hook script /usr/sbin/update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.31-15-generic
> Found initrd image: /boot/initrd.img-2.6.31-15-generic
> Found linux image: /boot/vmlinuz-2.6.31-14-generic
> Found initrd image: /boot/initrd.img-2.6.31-14-generic
> Found memtest86+ image: /memtest86+.bin
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms
> run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> Failed to process /etc/kernel/postinst.d at
> /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> il sottoprocesso vecchio script di post-installation ha restituito lo
> stato di errore 2
>
> ProblemType: Package
> Architecture: amd64
> Date: Tue Nov 10 16:04:01 2009
> DistroRelease: Ubuntu 9.10
> ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: dkms
> Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> Uname: Linux 2.6.31-14-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/480055/+subscribe
>

--
Warm regards,

Rajinder Sandhu
Bangalore
India

Revision history for this message
Mario Limonciello (superm1) wrote : Re: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1

Stefan:

I think you are right that there are two separate bugs here, but the first I also have no clue about. I'm going to treat this as the second bug and fix that. With the new version, if we continue to see the first showing up, lets use a New bug for that.

Revision history for this message
Mario Limonciello (superm1) wrote :

Fixed in 6f7beb210eeb5ebb216e5d9444a4983eea6fab9b

Changed in dkms (Ubuntu):
status: Triaged → Fix Committed
summary: - package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
- install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with
- return code 1
+ run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due
+ to removed package with lingering files in /etc ]
Revision history for this message
Rajinder Sandhu (sandy744) wrote : Re: [Bug 480055] Re: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1

Dear Sir,
As mentioned previously, the dkms was installed so manually installed and
there after problem was solved. May be we need to add a line for
installation of dkms which may be missing or not installing dkms
Thanks,
Rajinder Sandhu
===================================

On Thu, Jan 14, 2010 at 1:17 AM, Mario Limonciello <email address hidden>wrote:

> Fixed in 6f7beb210eeb5ebb216e5d9444a4983eea6fab9b
>
> ** Changed in: dkms (Ubuntu)
> Status: Triaged => Fix Committed
>
> ** Summary changed:
>
> - package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> + run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> removed package with lingering files in /etc ]
>
> --
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> removed package with lingering files in /etc ]
> https://bugs.launchpad.net/bugs/480055
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “dkms” package in Ubuntu: Fix Committed
>
> Bug description:
> Binary package hint: dkms
>
> apt-get update; apt-get upgrade
>
> I seguenti pacchetti sono stati mantenuti alla versione attuale:
> linux-generic linux-headers-generic linux-image-generic
>
> sudo apt-get install linux-generic linux-headers-generic
> linux-image-generic
>
> update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> Running postinst hook script /usr/sbin/update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.31-15-generic
> Found initrd image: /boot/initrd.img-2.6.31-15-generic
> Found linux image: /boot/vmlinuz-2.6.31-14-generic
> Found initrd image: /boot/initrd.img-2.6.31-14-generic
> Found memtest86+ image: /memtest86+.bin
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms
> run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> Failed to process /etc/kernel/postinst.d at
> /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> il sottoprocesso vecchio script di post-installation ha restituito lo
> stato di errore 2
>
> ProblemType: Package
> Architecture: amd64
> Date: Tue Nov 10 16:04:01 2009
> DistroRelease: Ubuntu 9.10
> ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: dkms
> Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> Uname: Linux 2.6.31-14-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/480055/+subscribe
>

--
Warm regards,

Rajinder Sandhu
Bangalore
India

Revision history for this message
Lawrence Seguin (lseguin) wrote : Re: [Bug 480055] Re: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Download full text (5.6 KiB)

I can confirm that going to synaptic package manager and reinstalling
dkms solved the problem for me as well.

On Thu, 2010-01-14 at 01:29 +0000, Rajinder Sandhu wrote:
> Dear Sir,
> As mentioned previously, the dkms was installed so manually installed and
> there after problem was solved. May be we need to add a line for
> installation of dkms which may be missing or not installing dkms
> Thanks,
> Rajinder Sandhu
> ===================================
>
> On Thu, Jan 14, 2010 at 1:17 AM, Mario Limonciello
> <email address hidden>wrote:
>
> > Fixed in 6f7beb210eeb5ebb216e5d9444a4983eea6fab9b
> >
> > ** Changed in: dkms (Ubuntu)
> > Status: Triaged => Fix Committed
> >
> > ** Summary changed:
> >
> > - package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> > install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> > code 1
> > + run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> > removed package with lingering files in /etc ]
> >
> > --
> > run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> > removed package with lingering files in /etc ]
> > https://bugs.launchpad.net/bugs/480055
> > You received this bug notification because you are a direct subscriber
> > of a duplicate bug.
> >
> > Status in “dkms” package in Ubuntu: Fix Committed
> >
> > Bug description:
> > Binary package hint: dkms
> >
> > apt-get update; apt-get upgrade
> >
> > I seguenti pacchetti sono stati mantenuti alla versione attuale:
> > linux-generic linux-headers-generic linux-image-generic
> >
> > sudo apt-get install linux-generic linux-headers-generic
> > linux-image-generic
> >
> > update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> > Running postinst hook script /usr/sbin/update-grub.
> > Generating grub.cfg ...
> > Found linux image: /boot/vmlinuz-2.6.31-15-generic
> > Found initrd image: /boot/initrd.img-2.6.31-15-generic
> > Found linux image: /boot/vmlinuz-2.6.31-14-generic
> > Found initrd image: /boot/initrd.img-2.6.31-14-generic
> > Found memtest86+ image: /memtest86+.bin
> > done
> > Examining /etc/kernel/postinst.d.
> > run-parts: executing /etc/kernel/postinst.d/dkms
> > run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> > run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> > Failed to process /etc/kernel/postinst.d at
> > /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> > dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> > il sottoprocesso vecchio script di post-installation ha restituito lo
> > stato di errore 2
> >
> > ProblemType: Package
> > Architecture: amd64
> > Date: Tue Nov 10 16:04:01 2009
> > DistroRelease: Ubuntu 9.10
> > ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> > code 1
> > InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> > Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> > ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> > SourcePackage: dkms
> > Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> > install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
>...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dkms - 2.1.1.1-0ubuntu1

---------------
dkms (2.1.1.1-0ubuntu1) lucid; urgency=low

  [ Mario Limonciello ]
  * dkms_common.postinst: Add some missing quotes around strings used in comparisons
    to make sure that this is safe on more shells.
  * Makefile, debian/rules: Only copy the init script in for redhat targets.
  * kernel_postinst.d: Make sure that dkms_autoinstaller is executable (LP: #480055)
  * Move the architecture mapping logic out of the DKMS template and into
    common.postinst for Ubuntu only. (LP: #497149)
  * template-dkms-mkdeb/debian/control: Build-depends on dkms (LP: #506959)

  [ Thomas Chenault ]
  * Fix parsing in find_external_dependencies(). The existing code behaves improperly
    when a driver disk module has more than two dependencies.
 -- Mario Limonciello <email address hidden> Mon, 25 Jan 2010 17:42:40 -0600

Changed in dkms (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
jlbridge (jlbridge09) wrote :

How would I go about purging the dkms? I'm still new to Linux, so I'm not entirely sure of the commands yet.

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 480055] Re: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to removed package with lingering files in /etc ]

Open synaptic, find dkms. Right click it and hit completely remove.

On 02/17/2010, jlbridge <email address hidden> wrote:
> How would I go about purging the dkms? I'm still new to Linux, so I'm
> not entirely sure of the commands yet.
>
> --
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> removed package with lingering files in /etc ]
> https://bugs.launchpad.net/bugs/480055
> You received this bug notification because you are subscribed to dkms in
> ubuntu.
>

--
Sent from my mobile device

Mario Limonciello
<email address hidden>

Revision history for this message
Rajinder Sandhu (sandy744) wrote :

purging means removing the package along with its configuration files....
instead now you need to install the package dkms..open synaptic package manager
System>Administration>Synaptic Package Manager type dkms in search box and you will be taken directly to dkms now right click on this and tick nstall then there is apply Icon click that it will install then you can close the synaptic package manager

Revision history for this message
jlbridge (jlbridge09) wrote :

I did that, but the bcmwl kernel source is associated with it (its the
Broadcom wireless driver) doesn't want to uninstall. It says there's an
error in it. Can I still just uninstall the dkms and reinstall it? Or will
this create a problem with it if I do?

On Wed, Feb 17, 2010 at 6:58 PM, Rajinder Sandhu <email address hidden> wrote:

> purging means removing the package along with its configuration files....
> instead now you need to install the package dkms..open synaptic package
> manager
> System>Administration>Synaptic Package Manager type dkms in search box and
> you will be taken directly to dkms now right click on this and tick nstall
> then there is apply Icon click that it will install then you can close the
> synaptic package manager
>
> --
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> removed package with lingering files in /etc ]
> https://bugs.launchpad.net/bugs/480055
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “dkms” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: dkms
>
> apt-get update; apt-get upgrade
>
> I seguenti pacchetti sono stati mantenuti alla versione attuale:
> linux-generic linux-headers-generic linux-image-generic
>
> sudo apt-get install linux-generic linux-headers-generic
> linux-image-generic
>
> update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> Running postinst hook script /usr/sbin/update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.31-15-generic
> Found initrd image: /boot/initrd.img-2.6.31-15-generic
> Found linux image: /boot/vmlinuz-2.6.31-14-generic
> Found initrd image: /boot/initrd.img-2.6.31-14-generic
> Found memtest86+ image: /memtest86+.bin
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms
> run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> Failed to process /etc/kernel/postinst.d at
> /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> il sottoprocesso vecchio script di post-installation ha restituito lo
> stato di errore 2
>
> ProblemType: Package
> Architecture: amd64
> Date: Tue Nov 10 16:04:01 2009
> DistroRelease: Ubuntu 9.10
> ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: dkms
> Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> Uname: Linux 2.6.31-14-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/480055/+subscribe
>

Revision history for this message
Bhagya (mayankbhagya) wrote :
Download full text (5.5 KiB)

Dude...
Open terminal and type the following:

sudo apt-get purge dkms

After that, reinstall dkms by typing the following cmd...

sudo apt-get install dkms

On Thu, Feb 18, 2010 at 7:07 AM, jlbridge <email address hidden> wrote:

> I did that, but the bcmwl kernel source is associated with it (its the
> Broadcom wireless driver) doesn't want to uninstall. It says there's an
> error in it. Can I still just uninstall the dkms and reinstall it? Or
> will
> this create a problem with it if I do?
>
> On Wed, Feb 17, 2010 at 6:58 PM, Rajinder Sandhu <email address hidden>
> wrote:
>
> > purging means removing the package along with its configuration files....
> > instead now you need to install the package dkms..open synaptic package
> > manager
> > System>Administration>Synaptic Package Manager type dkms in search box
> and
> > you will be taken directly to dkms now right click on this and tick
> nstall
> > then there is apply Icon click that it will install then you can close
> the
> > synaptic package manager
> >
> > --
> > run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> > removed package with lingering files in /etc ]
> > https://bugs.launchpad.net/bugs/480055
> > You received this bug notification because you are a direct subscriber
> > of a duplicate bug.
> >
> > Status in “dkms” package in Ubuntu: Fix Released
> >
> > Bug description:
> > Binary package hint: dkms
> >
> > apt-get update; apt-get upgrade
> >
> > I seguenti pacchetti sono stati mantenuti alla versione attuale:
> > linux-generic linux-headers-generic linux-image-generic
> >
> > sudo apt-get install linux-generic linux-headers-generic
> > linux-image-generic
> >
> > update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> > Running postinst hook script /usr/sbin/update-grub.
> > Generating grub.cfg ...
> > Found linux image: /boot/vmlinuz-2.6.31-15-generic
> > Found initrd image: /boot/initrd.img-2.6.31-15-generic
> > Found linux image: /boot/vmlinuz-2.6.31-14-generic
> > Found initrd image: /boot/initrd.img-2.6.31-14-generic
> > Found memtest86+ image: /memtest86+.bin
> > done
> > Examining /etc/kernel/postinst.d.
> > run-parts: executing /etc/kernel/postinst.d/dkms
> > run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> > run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> > Failed to process /etc/kernel/postinst.d at
> > /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> > dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> > il sottoprocesso vecchio script di post-installation ha restituito lo
> > stato di errore 2
> >
> > ProblemType: Package
> > Architecture: amd64
> > Date: Tue Nov 10 16:04:01 2009
> > DistroRelease: Ubuntu 9.10
> > ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> > code 1
> > InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> > Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> > ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> > SourcePackage: dkms
> > Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> > install/upgrade: run-parts: /etc/kernel/postinst.d...

Read more...

Revision history for this message
jlbridge (jlbridge09) wrote :
Download full text (8.6 KiB)

Its says that it can't configure the bcmwl kernel source. Even when I type

sudo dpkg --configure bcmwl-kernel-source

It says the following:

Setting up bcmwl-kernel-source (5.10.91.9+bdcom-0ubuntu4) ...
dpkg (subprocess): unable to execute installed post-installation script:
Exec format error
dpkg: error processing bcmwl-kernel-source (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 bcmwl-kernel-source

On Wed, Feb 17, 2010 at 10:36 PM, Bhagya <email address hidden> wrote:

> Dude...
> Open terminal and type the following:
>
> sudo apt-get purge dkms
>
> After that, reinstall dkms by typing the following cmd...
>
> sudo apt-get install dkms
>
>
> On Thu, Feb 18, 2010 at 7:07 AM, jlbridge <email address hidden> wrote:
>
> > I did that, but the bcmwl kernel source is associated with it (its the
> > Broadcom wireless driver) doesn't want to uninstall. It says there's an
> > error in it. Can I still just uninstall the dkms and reinstall it? Or
> > will
> > this create a problem with it if I do?
> >
> > On Wed, Feb 17, 2010 at 6:58 PM, Rajinder Sandhu <email address hidden>
> > wrote:
> >
> > > purging means removing the package along with its configuration
> files....
> > > instead now you need to install the package dkms..open synaptic package
> > > manager
> > > System>Administration>Synaptic Package Manager type dkms in search box
> > and
> > > you will be taken directly to dkms now right click on this and tick
> > nstall
> > > then there is apply Icon click that it will install then you can close
> > the
> > > synaptic package manager
> > >
> > > --
> > > run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due
> to
> > > removed package with lingering files in /etc ]
> > > https://bugs.launchpad.net/bugs/480055
> > > You received this bug notification because you are a direct subscriber
> > > of a duplicate bug.
> > >
> > > Status in “dkms” package in Ubuntu: Fix Released
> > >
> > > Bug description:
> > > Binary package hint: dkms
> > >
> > > apt-get update; apt-get upgrade
> > >
> > > I seguenti pacchetti sono stati mantenuti alla versione attuale:
> > > linux-generic linux-headers-generic linux-image-generic
> > >
> > > sudo apt-get install linux-generic linux-headers-generic
> > > linux-image-generic
> > >
> > > update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> > > Running postinst hook script /usr/sbin/update-grub.
> > > Generating grub.cfg ...
> > > Found linux image: /boot/vmlinuz-2.6.31-15-generic
> > > Found initrd image: /boot/initrd.img-2.6.31-15-generic
> > > Found linux image: /boot/vmlinuz-2.6.31-14-generic
> > > Found initrd image: /boot/initrd.img-2.6.31-14-generic
> > > Found memtest86+ image: /memtest86+.bin
> > > done
> > > Examining /etc/kernel/postinst.d.
> > > run-parts: executing /etc/kernel/postinst.d/dkms
> > > run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format
> error
> > > run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> > > Failed to process /etc/kernel/postinst.d at
> > > /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> > > dpkg: err...

Read more...

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

@jlbridge, you're probably hit by bug 512096. Have a look at it.

Revision history for this message
jlbridge (jlbridge09) wrote :

Ok, did that but now when I go to activate the driver, it comes up with this
error in jockey.log:

WARNING: /sys/module/wl/drivers does not exist, cannot rebind wl driver

On Fri, Feb 19, 2010 at 6:39 PM, Jean-Baptiste Lallement <
<email address hidden>> wrote:

> @jlbridge, you're probably hit by bug 512096. Have a look at it.
>
> --
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> removed package with lingering files in /etc ]
> https://bugs.launchpad.net/bugs/480055
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “dkms” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: dkms
>
> apt-get update; apt-get upgrade
>
> I seguenti pacchetti sono stati mantenuti alla versione attuale:
> linux-generic linux-headers-generic linux-image-generic
>
> sudo apt-get install linux-generic linux-headers-generic
> linux-image-generic
>
> update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> Running postinst hook script /usr/sbin/update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.31-15-generic
> Found initrd image: /boot/initrd.img-2.6.31-15-generic
> Found linux image: /boot/vmlinuz-2.6.31-14-generic
> Found initrd image: /boot/initrd.img-2.6.31-14-generic
> Found memtest86+ image: /memtest86+.bin
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms
> run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> Failed to process /etc/kernel/postinst.d at
> /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> il sottoprocesso vecchio script di post-installation ha restituito lo
> stato di errore 2
>
> ProblemType: Package
> Architecture: amd64
> Date: Tue Nov 10 16:04:01 2009
> DistroRelease: Ubuntu 9.10
> ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: dkms
> Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> Uname: Linux 2.6.31-14-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/480055/+subscribe
>

Revision history for this message
rebo2255 (rebo2255) wrote :

I use Ubuntu 9.10, kernel 2.6.31.57
I have the same problem (run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error). My dkms( /etc/kernel/postinst.d) is not empty(317 k) nevertheless i could not open it. If i try with gedit this is the result: 圃∂?吘䌀Ő뀦瀁ʒᕴװ鉲⸄Ȃ$큄攀樀є끤딀뤄˳&̓ӓQ逞甇Ա끮挂ǐ߱ݗ㬟ǐԑታ㤉ᔂ耄⨀〕匂ܐ뉬?儀࿑E큤挀0듳渀ʢ倖焂瀆İㄕआಐၴ氏⬀邫℀⌂Ȑ偐月௒㍋夈嘂Ѳ4ȵԦϐ渂 瀀Ðá遧清ΰ̹䄢̰??逗䔅Ԁৱ㑭爂ऀ匀傭瀗аଓ鉓甇ð楚ரちㄆऴ兲ᜐi끳猗ᛘⴲǐ偁넄琎ưr߰Ꮥ??뀳爊さ漂ৰ琅ǐ굲ࠐ㙯넄嘒Ɛ셲吆─ʰ㉂爂P甠࠰끥栍૲.
My version of dkms is 2.1.0.1-0ubuntu1. If i attempt to uninstall it from synaptic i have this error:
E: dkms: el subproceso script pre-removal instalado devolvió el código de salida de error 2
If i attempt using a terminal it more of the same.
The language is spanish, something like: the installed script pre-removal subprocess returned the code error 2.
I have downloaded the 2.1.1.1 version but dkms_autoinstaller not even runs, it shows an error on the first executable line: on a function declaration [unexpected "("]. It means to me that nothing its going well that way.
I downloaded the 2.1.0.1 packet from Mario Limonciello when i invoke the autoinstaller script it returns:
dkms_autoinstaller' start
 * Running DKMS auto installation service for kernel 2.6.31-20-generic
 * vboxdrv (3.1.4)... [fail]
 * vboxnetadp (3.1.4)... [fail]
 * vboxnetflt (3.1.4)... [fail]

I think that maybe StefanPotyra have my solution because of just like he said /var/lib/dkms/dkms_autoinstaller is not there and could be a purge problem, but he is not very specific and i am not and ubuntu expert user and besides my english sucks.
I hope that somebody could help. I am really desperate.

Revision history for this message
StefanPotyra (sistpoty) wrote :

reb2255: No, that's a different issue, since your dkms file got corrupted somehow.
Can you check if your hard disk is ok, and if so, please open a new bug against dkms, also stating what your file system of the partition containing /etc is (ext3, ext4, or anything else)?

(we'll probably reassign the bug to a different package, but I wouldn't know by heart what's the most appropriate package atm.).

Thanks!

Revision history for this message
Rajinder Sandhu (sandy744) wrote :

Dear friend,
open terminal and they reinstall dkms, in my case it was not there.
open terminal and then type
sudo apt-get install dkms
it will ask for password type your pw and then it will install dkms. Your
problem will be over by doing this much.
Thanks
Rajinder Sandhu

On Wed, Mar 10, 2010 at 3:53 AM, StefanPotyra <
<email address hidden>> wrote:

> reb2255: No, that's a different issue, since your dkms file got corrupted
> somehow.
> Can you check if your hard disk is ok, and if so, please open a new bug
> against dkms, also stating what your file system of the partition containing
> /etc is (ext3, ext4, or anything else)?
>
> (we'll probably reassign the bug to a different package, but I wouldn't
> know by heart what's the most appropriate package atm.).
>
> Thanks!
>
> --
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1 [ due to
> removed package with lingering files in /etc ]
> https://bugs.launchpad.net/bugs/480055
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “dkms” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: dkms
>
> apt-get update; apt-get upgrade
>
> I seguenti pacchetti sono stati mantenuti alla versione attuale:
> linux-generic linux-headers-generic linux-image-generic
>
> sudo apt-get install linux-generic linux-headers-generic
> linux-image-generic
>
> update-initramfs: Generating /boot/initrd.img-2.6.31-15-generic
> Running postinst hook script /usr/sbin/update-grub.
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.31-15-generic
> Found initrd image: /boot/initrd.img-2.6.31-15-generic
> Found linux image: /boot/vmlinuz-2.6.31-14-generic
> Found initrd image: /boot/initrd.img-2.6.31-14-generic
> Found memtest86+ image: /memtest86+.bin
> done
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms
> run-parts: failed to exec /etc/kernel/postinst.d/dkms: Exec format error
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
> Failed to process /etc/kernel/postinst.d at
> /var/lib/dpkg/info/linux-image-2.6.31-15-generic.postinst line 1002.
> dpkg: errore nell'elaborare linux-image-2.6.31-15-generic (--configure):
> il sottoprocesso vecchio script di post-installation ha restituito lo
> stato di errore 2
>
> ProblemType: Package
> Architecture: amd64
> Date: Tue Nov 10 16:04:01 2009
> DistroRelease: Ubuntu 9.10
> ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> Package: linux-image-2.6.31-15-generic 2.6.31-15.49
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: dkms
> Title: package linux-image-2.6.31-15-generic 2.6.31-15.49 failed to
> install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return
> code 1
> Uname: Linux 2.6.31-14-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/480055/+subscribe
>

--
Warm regards,

Rajinder Sandhu
Bangalore
India

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.