Weblog entry #20 for Utumno

Problem with a broken package
Posted by Utumno on Sat 3 Feb 2007 at 08:58
Tags: none.
I've got a package whose pre-removal as well as post-installation scripts fail. Thus the package keeps bugging me after every upgrade and does not want to be removed cleanly:
tajwan:~/software# apt-get update
Get:1 http://ftp.us.debian.org sid Release.gpg [378B]
Hit http://ftp.us.debian.org sid Release
Get:2 http://ftp.us.debian.org sid/main Packages/DiffIndex [2038B]
Get:3 http://ftp.us.debian.org sid/contrib Packages [67.0kB]
Get:4 http://ftp.us.debian.org sid/non-free Packages [93.8kB]
Hit http://ftp.us.debian.org sid/main Packages
Fetched 163kB in 40s (3982B/s)
Reading package lists... Done
tajwan:~/software# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up virtualbox (1.3.2-17408_Debian_etch) ...

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one
Messages displayed during module compilation will be logged to /var/log/vbox-install.log
Compilation of kernel module failed, aborting installation
dpkg: error processing virtualbox (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox
E: Sub-process /usr/bin/dpkg returned an error code (1)

tajwan:~/software# dpkg -P virtualbox
(Reading database ... 17400 files and directories currently installed.)
Removing virtualbox ...
(Kernel module not found)...fail!
invoke-rc.d: initscript virtualbox, action "stop" failed.
dpkg: error processing virtualbox (--purge):
 subprocess pre-removal script returned error exit status 1

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one
Messages displayed during module compilation will be logged to
/var/log/vbox-install.log
Compilation of kernel module failed, aborting installation
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox


I suppose I could force the pre-removal script to return success, but generally speaking how does one cope with broken packages like this?

 

Comments on this Entry

Posted by mcphail (62.56.xx.xx) on Sat 3 Feb 2007 at 10:52
[ Send Message ]

[ Parent | Reply to this comment ]

Posted by Utumno (61.229.xx.xx) on Sat 3 Feb 2007 at 16:13
[ Send Message | View Utumno's Scratchpad | View Weblogs ]
ok, thanks, I managed to purge it.

[ Parent | Reply to this comment ]

Posted by Steve (62.30.xx.xx) on Sat 3 Feb 2007 at 15:29
[ Send Message | View Steve's Scratchpad | View Weblogs ]

Generally one does force it I think, since in this state you couldn't even upgrade it if there was a fixed package available ..

Steve

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search