use of deprecated update-modules command in postinst/postrm

Bug #179497 reported by Andreas Wenning
34
This bug affects 3 people
Affects Status Importance Assigned to Milestone
irda-utils (Ubuntu)
Fix Released
Undecided
Unassigned
nvidia-kernel-common (Debian)
Fix Released
Unknown
nvidia-kernel-common (Ubuntu)
Fix Released
Medium
Unassigned
setserial (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: nvidia-kernel-common

Upgrading to nvidia-kernel-common 20051028+1ubuntu7 generates the terminal output at the bottom.

Looks like the prerm / postinst scripts uses a deprecated function.
---
Preparing to replace nvidia-kernel-common 20051028+1ubuntu7 (using .../nvidia-kernel-common_20051028+1ubuntu8_all.deb) ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Unpacking replacement nvidia-kernel-common ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Preparing to replace xserver-xorg-input-wacom 1:0.7.7.7-0ubuntu2 (using .../xserver-xorg-input-wacom_1%3a0.7.9.3-2ubuntu1_i386.deb) ...
Unpacking replacement xserver-xorg-input-wacom ...
Setting up nvidia-kernel-common (20051028+1ubuntu8) ...
Installing new version of config file /etc/modprobe.d/nvidia-kernel-nkc ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Daniel Hahler (blueyed)
Changed in nvidia-kernel-common:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Sebastien Senechal (altagir) wrote :

Has been a month i have this broken package
Will this bug will be assigned one day ?
thanks

Setting up nvidia-kernel-common (20051028+1ubuntu8) ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force
dpkg: error processing nvidia-kernel-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.24-7-generic:
 linux-restricted-modules-2.6.24-7-generic depends on nvidia-kernel-common; however:
  Package nvidia-kernel-common is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.24-7-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-generic:
 linux-restricted-modules-generic depends on linux-restricted-modules-2.6.24-7-generic; however:
  Package linux-restricted-modules-2.6.24-7-generic is not configured yet.
dpkg: error processing linux-restricted-modules-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules:
 linux-restricted-modules depends on linux-restricted-modules-generic (= 2.6.24.7.7); however:
  Package linux-restricted-modules-generic is not configured yet.
dpkg: error processing linux-restricted-modules (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.24-5-generic:
 linux-restricted-modules-2.6.24-5-generic depends on nvidia-kernel-common; however:
  Package nvidia-kernel-common is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.24-5-generic (--configure):
 dependency problems - leaving unconfigured

Revision history for this message
Alex Ruddick (alexrudd0) wrote :

The original bug still exists in fully up-to-date (4/6) Hardy.

I do not experience Sebastian's problem but the terminal warning is still there.

Revision history for this message
matthieu verstraete (mjv500) wrote :

Hi,

I had a slightly different error message with the same package, mentioning there was a missing quote in /etc/init.d/nvidia-kernel

<<<<<<<<<<<<<<<

root@bloom:~# apt-get upgrade nvidia-kernel-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  nvidia-kernel-common
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0B/5478B of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 266409 files and directories currently installed.)
Preparing to replace nvidia-kernel-common 20051028+1ubuntu7 (using .../nvidia-kernel-common_20051028+1ubuntu8_all.deb) ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

/etc/init.d/nvidia-kernel: command substitution: line 8: unexpected EOF while looking for matching `''
/etc/init.d/nvidia-kernel: command substitution: line 9: syntax error: unexpected end of file
Unpacking replacement nvidia-kernel-common ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Setting up gstreamer0.10-plugins-good (0.10.7-3ubuntu0.1) ...

Setting up nvidia-kernel-common (20051028+1ubuntu8) ...
Installing new version of config file /etc/modprobe.d/nvidia-kernel-nkc ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

/etc/init.d/nvidia-kernel: command substitution: line 8: unexpected EOF while looking for matching `''
/etc/init.d/nvidia-kernel: command substitution: line 9: syntax error: unexpected end of file

Setting up vorbis-tools (1.1.1-15ubuntu0.1) ...

>>>>>>>>>>>>>>>>

Adding a quote to line 8 of the /etc/init.d/nvidia-kernel script (at the end of the awk command) made the apt-get run smoothly. Line 8 becomes:

NVIDIA_CARDS=`/usr/bin/lspci | awk '/nVidia/{print 1}' `

I'm not sure everything is fixed, but at least the adept-manager and apt-get don't die on me anymore. This package had even made my upgrade to Hardy fail. Bloody pain, had to finish it off by hand.

Cheers,

Matthieu

Revision history for this message
James Westby (james-w) wrote :

Hi Matthieu,

That looks like a different, and more serious, problem. Could
you please file another bug about that? You can reference this
bug for the deprecation warnings part, but the syntax error
should be fixed.

Thanks,

James

Revision history for this message
Xamusk (ronanpaixao) wrote :

This deprecated usage also happens in irda-utils and setserial.
From aptitude output:

Preconfiguring packages ...
Selecting previously deselected package irda-utils.
(Reading database ... 262970 files and directories currently installed.)
Unpacking irda-utils (from .../irda-utils_0.9.18-7ubuntu2_i386.deb) ...
Selecting previously deselected package openobex-apps.
Unpacking openobex-apps (from .../openobex-apps_1.3-3ubuntu1_i386.deb) ...
Selecting previously deselected package setserial.
Unpacking setserial (from .../setserial_2.17-44_i386.deb) ...
Setting up irda-utils (0.9.18-7ubuntu2) ...
udev active, devices will be created in /dev/.static/dev/
udev active, devices will be created in /dev/.static/dev/

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Setting up openobex-apps (1.3-3ubuntu1) ...
Setting up setserial (2.17-44) ...
removing the old setserial entry in the rcn.d directories
Update complete.
Saving state of known serial devices... backing up /var/lib/setserial/autoserial.conf done.

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Press return to continue.

Changed in nvidia-kernel-common:
status: Unknown → Fix Released
Changed in irda-utils:
status: New → Confirmed
Revision history for this message
internetter (internetter) wrote :

This bug has been fixed in Debian since July of 2008. What the hell is going on?

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

The version from debian fixing it is already merged to ubuntu.

Changed in nvidia-kernel-common:
status: Confirmed → Fix Released
Revision history for this message
internetter (internetter) wrote :

It doesn't seem to be working, though.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@karmaflux
Do you have an example output with the wrong output from nvidia-kernel-common in intrepid/jaunty?

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I see this is marked as fix released for nvidia-kernel-common.

Anything left to be done for setserial and irda-utils?

Changed in setserial:
assignee: nobody → r0lf
status: New → Incomplete
Changed in irda-utils:
assignee: nobody → r0lf
status: Confirmed → Incomplete
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

nvidia-kernel-common was fixed in debian. Might be worth checking the changelog for setserial/irda-utils back to the version in hardy.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Instead of digging through changelogs, I'd just want to know if there still is any problem that needs to be solved.

Revision history for this message
internetter (internetter) wrote :

It doesn't work in Hardy, which is an LTS release. The xen kernel depends on the restricted-modules package, which depends on nvidia-kernel-common, which is still displaying this behavior.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

karmaflux, thank you for your reply. You are saying that the hardy nvidia-kernel-common package still displays this behaviour? That doesn't answer my question, but is valuable information nonetheless.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Just checked the versions in jaunty of setserial and irda-utils. Both of them do still contain the calls to update-modules in the postinst.

Revision history for this message
Daniele Napolitano (dnax88) wrote :

I confirm this for irda-utils. Patch for debian/postinst and debian/postrm is available on bug #340873.

Changed in irda-utils (Ubuntu):
status: Incomplete → Confirmed
Rolf Leggewie (r0lf)
Changed in irda-utils (Ubuntu):
assignee: Rolf Leggewie (r0lf) → nobody
Changed in setserial (Ubuntu):
assignee: Rolf Leggewie (r0lf) → nobody
summary: - [hardy] using deprecated update-modules command
+ use of deprecated update-modules command in postinst/postrm
Revision history for this message
SKAL (sir-kalot) wrote :

I found the same problem on my box... any chance to fix it?

root:~$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
root:~$apt-get purge irda-utils
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno RIMOSSI:
  irda-utils*
0 aggiornati, 0 installati, 1 da rimuovere e 0 non aggiornati.
1 non completamente installati o rimossi.
Dopo quest'operazione, verranno liberati 336kB di spazio su disco.
Continuare [S/n]?
(Lettura del database ... 207990 file e directory attualmente installati.)
Rimuovo irda-utils ...
Stopping IrDA service: irattach.
Elimino i file di configurazione di irda-utils ...
Processing triggers for man-db ...
root:~$apt-get install irda-utils
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Lettura informazioni sullo stato... Fatto
Pacchetti suggeriti:
  libgsmme1c102 liblinc1
I seguenti pacchetti NUOVI (NEW) saranno installati:
  irda-utils
0 aggiornati, 1 installati, 0 da rimuovere e 0 non aggiornati.
È necessario prendere 0B/89,7kB di archivi.
Dopo quest'operazione, verranno occupati 336kB di spazio su disco.
Preconfigurazione dei pacchetti in corso
Selezionato il pacchetto irda-utils, che non lo era.
(Lettura del database ... 207962 file e directory attualmente installati.)
Spacchetto irda-utils (da .../irda-utils_0.9.18-8.1ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Configuro irda-utils (0.9.18-8.1ubuntu1) ...
.udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
.udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
/var/lib/dpkg/info/irda-utils.postinst: line 92: update-modules: comando non trovato
dpkg: errore processando irda-utils (--configure):
 il sottoprocesso post-installation script ha restituito un codice di errore 127
Sono occorsi degli errori processando:
 irda-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Ilya Barygin (randomaction) wrote :

Fixed in Karmic, see bug 340718.

Changed in irda-utils (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
SKAL (sir-kalot) wrote :

will it be back ported to jaunty?

Revision history for this message
bier (k-launchpadbier-trash-mail-com) wrote :

Still not fixed in hardy yet:

# apt-get install nvidia-glx nvidia-kernel-common
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Vorgeschlagene Pakete:
  nvidia-kernel-source
Die folgenden NEUEN Pakete werden installiert:
  nvidia-glx nvidia-kernel-common
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 7339kB Archive geholt werden.
After this operation, 22,5MB of additional disk space will be used.
Hole:1 http://de.archive.ubuntu.com hardy-updates/restricted nvidia-glx 1:96.43.05+2.6.24.18-24.1 [7333kB]
Hole:2 http://de.archive.ubuntu.com hardy/restricted nvidia-kernel-common 20051028+1ubuntu8 [5478B]
Es wurden 7339kB in 30s geholt (237kB/s)
Wähle vormals abgewähltes Paket nvidia-glx.
(Lese Datenbank ... 208425 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke nvidia-glx (aus .../nvidia-glx_1%3a96.43.05+2.6.24.18-24.1_amd64.deb) ...
Wähle vormals abgewähltes Paket nvidia-kernel-common.
Entpacke nvidia-kernel-common (aus .../nvidia-kernel-common_20051028+1ubuntu8_all.deb) ...
Richte nvidia-glx ein (1:96.43.05+2.6.24.18-24.1) ...

Richte nvidia-kernel-common ein (20051028+1ubuntu8) ...

************************************************************************
*
* The update-modules command is deprecated and should not be used!
*
************************************************************************

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

Revision history for this message
bier (k-launchpadbier-trash-mail-com) wrote :

not fixed in hardy

Changed in nvidia-kernel-common (Ubuntu):
status: Fix Released → Incomplete
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

"Fix released" means that it is fixed in the current development release.

Changed in nvidia-kernel-common (Ubuntu):
status: Incomplete → Won't Fix
status: Won't Fix → Fix Released
Revision history for this message
Chuck Short (zulcss) wrote :

Sitt an issue in karmic.

Regards
chuck

Changed in setserial (Ubuntu):
status: Incomplete → Confirmed
Changed in setserial (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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