On 08/05/17 16:11, Christopher Horrell wrote:
> Hi Jesús,
> 
> It looks like you are hitting something similar to this:
> 
> https://github.com/joyent/smartos-live/issues/596
> 
> See the last comment for a workaround

Symptoms sound familiar, but suggested workaround doesn't work. After
creating an "exit 0" script as "/var/lib/dpkg/info/udev.postinst" (there
is nothing there if I don't create it first, I get this:

"""
root@XXX:~# ls -la /var/lib/dpkg/info/udev.postinst
-rwxr-xr-x 1 root root 17 May  9 01:27 /var/lib/dpkg/info/udev.postinst

root@XXX:~# cat /var/lib/dpkg/info/udev.postinst
#!/bin/sh
exit 0

root@XXX:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  systemd
0 upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 26262 files and directories currently installed.)
Removing systemd (215-17+deb8u6) ...
systemd is the active init system, please switch to another before
removing systemd.
dpkg: error processing package systemd (--remove):
 subprocess installed pre-removal script returned error exit status 1
Failed to stop lib-init-rw.mount: Unit lib-init-rw.mount not loaded.
addgroup: The group `systemd-journal' already exists as a system group.
Exiting.
unable to set CAP_SETFCAP effective capability: Operation not permitted
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
"""

I am running the image that supposedly took care of this as described in
<https://github.com/joyent/smartos-live/issues/596#issuecomment-279782712>.
No luck.

I suppose that anybody trying to "apt-get upgrade" this image should hit
the same issue, so this should be trivial to reproduce :-?

Thanks for your time.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
[email protected] - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:[email protected]  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz

Attachment: signature.asc
Description: OpenPGP digital signature




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to