[Pkg-virtualbox-devel] Bug#813888: virtualbox: preinst stops reliably in chroots (Unit vboxweb.service not loaded)

Rene Engelhard rene at debian.org
Sat Feb 6 11:27:06 UTC 2016


Package: virtualbox
Version: 5.0.14-dfsg-2
Severity: important

Hi,

on every dist-upgrade where virtualbox was involved the following happens in
my sid chroot:

1 (sid)root at frodo / # apt-get dist-upgrade                                   :(
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libbasicusageenvironment0 libgroupsock1 libgsoap7 libilmbase6v5
  liblivemedia23 libopenexr6v5 libsodium13 libusageenvironment1
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  virtualbox
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/14.0 MB of archives.
After this operation, 429 kB disk space will be freed.
Do you want to continue? [Y/n] 
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 403779 files and directories currently installed.)
Preparing to unpack .../virtualbox_5.0.14-dfsg-2+b1_amd64.deb ...
Failed to stop vboxweb.service: Unit vboxweb.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop vboxweb.service: Unit vboxweb.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/virtualbox_5.0.14-dfsg-2+b1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
vboxweb.service is a disabled or a static unit, not starting it.
Errors were encountered while processing:
 /var/cache/apt/archives/virtualbox_5.0.14-dfsg-2+b1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is a chroot (of a complete sid system).
So of course vboxweb is not running and never was active. When I boot that sid
system and do the dist-upgrade from there it works, but that is not the solution...

Maybe check whether the unit is loaded before trying to do something with it?

Regards,

Rene



More information about the Pkg-virtualbox-devel mailing list