Recent Plex Media Server update contains erroneous script which brings package management on some systems to non-working state. On my system the original issue looks like this:
sudo dpkg -i ./Downloads/plexmediaserver_0.9.12.0.1071-7b11cfc_amd64.deb
Selecting previously unselected package plexmediaserver.
(Reading database ... 196657 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_0.9.12.0.1071-7b11cfc_amd64.deb ...
Unpacking plexmediaserver (0.9.12.0.1071-7b11cfc) ...
Setting up plexmediaserver (0.9.12.0.1071-7b11cfc) ...
/var/lib/dpkg/info/plexmediaserver.postinst: 33: /var/lib/dpkg/info/plexmediaserver.postinst: systemctl: not found
dpkg: error processing package plexmediaserver (--install):
subprocess installed post-installation script returned error exit status 127
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Errors were encountered while processing:
The update leaves Plex Media Server in a working state since previous installations did the job this one can’t. The added bonus though is that package managers like
dpkg cease to fullfil their duties and it’s something not generally desirable.
The issue is relevant to Linux Mint 15+ and may also be relevant to Ubuntu 15.04 but I haven’t tested the latter specifically. The fix involves removing erroneous package, fixing it’s contents and reinstalling to get Plex and package managers to working state again. Continue Reading →