Errors were encountered while processing: nvidia-kernel-common

Asked by WaltTryller

Video driver nvidia-kernel-common failed to install during upgrade to 10.04 (lucid). Want it working so I can watch hulu videos. Have tried 6 weeks with synaptic and apt-get. Troubling messages are (1) 1 not fully installed or removed. (2) subprocess installed post-installation script returned error exit status 1, (3) E: Sub-process /usr/bin/dpkg returned an error code (1), and (4) update-rc.d: warning: nvidia-kernel stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)

It seems the scripts, pre- and post-installation, are not LSB compliant. Got it working only once by:
apt-get update
apt-get upgrade
but it would not get fixed again the same way. Messages displayed are all similar. This is latest run:

# apt-get install --reinstall nvidia-kernel-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of nvidia-kernel-common is not possible, it cannot be downloaded.
The following packages were automatically installed and are no longer required:
  nvidia-kernel-common
Use 'apt-get autoremove' to remove them.
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 nvidia-kernel-common (20051028+1ubuntu8) ...
update-rc.d: warning: nvidia-kernel start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: nvidia-kernel stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
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] [...] .
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
  -n: not really
  -f: force

The disable|enable API is not stable and might change in the future.
dpkg: error processing nvidia-kernel-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nvidia-kernel-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wtryller-laptop:~# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  nvidia-kernel-common
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 115kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 196745 files and directories currently installed.)
Removing nvidia-kernel-common ...
/var/lib/dpkg/info/nvidia-kernel-common.prerm: 7: update-modules: not found
dpkg: error processing nvidia-kernel-common (--remove):
 subprocess installed pre-removal script returned error exit status 127
update-rc.d: warning: nvidia-kernel start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: nvidia-kernel stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
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] [...] .
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
  -n: not really
  -f: force

The disable|enable API is not stable and might change in the future.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nvidia-kernel-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
#

+++++
I think there should be a way to get past the "neither fully installed nor removed" issue. Plus a package that didn't fault would probably be essential. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nvidia-kernel-common Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

lsb_release -a; uname -a

Thanks

Revision history for this message
WaltTryller (wtnsp) said :
#2

wtryller@wtryller-laptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
wtryller@wtryller-laptop:~$ uname -a
Linux wtryller-laptop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 GNU/Linux
wtryller@wtryller-laptop:~$

Thanks

Revision history for this message
WaltTryller (wtnsp) said :
#3

It seems others have run into the "not fully installed or removed" messages, with other software. But I have been unable to find any resolution in numerous searches. Did they all just give up ??

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#4

please try from terminal type:

cd /var/lib/dpkg/info
sudo cp nvidia-kernel-common.prerm nvidia-kernel-common.prerm.old
echo -en "exit 0" | sudo tee nvidia-kernel-common.prerm

sudo apt-get update
sudo apt-get upgrade

Revision history for this message
WaltTryller (wtnsp) said :
#5

Thanks for suggestions, Marco. Short story is this got me to a new place, which is now focused on adobe flash version.

First, cp of ....perm to ....perm.old succeeded, and "new" ...perm was changed to "exit 0". Next did the update and upgrade and (except that some other packages updated) the resulting messages *seemed* identical, except the "1 not completely installed or removed" did not appear. dpkg still reported error.

Streaming (flash) video from PBS Newshour, was working before and is still working. Hulu was giving a blank video area before, now gives notice: Express Install is not supported on this operating system. To upgrade, please visit _Flash Player Download Center_ (linking to http://get.adobe.com/flashplayer/). Incidentally, this surprised me on two levels: (1) my impressiom was that hulu did not use flash, and (2) thought my flash player was current.

Checking Firefox Plugins reported I was using version Shockwave Flash 10.0 r12, while current is 10.1.153. Attempting to upgrade I was offered a YUM package for 8.04 or a .deb package for 9.04, while I am on 10.04. Tentatively clicking around, I somehow managed to download a 10.1 .deb package, which promptly offered to install itself with an installer with which I was not familiar (GDebi 0.6.0ubuntu1), and which installer promptly reported: Error: A later version is already installed. Grr.

With files and GUI's still open, I will now slowly shutdown and restart, and recheck current status. Failing immediate success, I will re-examine actions and possibly try a manual install of the newer flash (if it lets me get it), and report back here. This will take me some time. Hopefully, I will not then need to ask "any other suggestions?" Please give me an hour or day or two.

And thanks especially for showing me how to get rid of the "1 not completely installed or removed".

Revision history for this message
WaltTryller (wtnsp) said :
#6

Yes, all working now. I first went to page on mozilla addressing this question:

http://support.mozilla.com/en-US/forum/1/690585?s=adobe+flash+plugin+linux+reports+wrong+version&as=s

Followed instructions there. When this still did not help, I removed an old firefox profile (moved it to unrelated folder).

Working fine now with no contradictions. Thanks for putting me on the right track. I would not have found this without first getting rid of the "not fully installed or removed" error.

Revision history for this message
WaltTryller (wtnsp) said :
#7

Thanks marcobra (Marco Braida), that solved my question.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

As last suggestion please:

Open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
WaltTryller (wtnsp) said :
#9

Your suggestions have been very helpful, and indispensable in resolving these issues.

Thank you, Marco.