我遇到了一个重复的错误
Setting up plexmediaserver (1.0.0.2261-a17e99e) ...
OK
Created symlink from /etc/systemd/system/multi-user.target.wants/plexmediaserver.service to /lib/systemd/system/plexmediaserver.service.
Job for plexmediaserver.service failed because the control process exited with error code. See "systemctl status plexmediaserver.service" and "journalctl -xe" for details.
dpkg: error processing package plexmediaserver (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
然后systemctl status plexmediaserver.service
给出
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─overide.conf
Active: inactive (dead) (Result: exit-code) since Wed 2016-07-20 17:49:09 HKT; 2min 36s ago
Process: 5531 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/m
Jul 20 17:49:04 homeserver systemd[1]: plexmediaserver.service: Unit entered failed state.
Jul 20 17:49:04 homeserver systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jul 20 17:49:09 homeserver systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jul 20 17:49:09 homeserver systemd[1]: Stopped Plex Media Server for Linux.
Jul 20 17:49:09 homeserver systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Jul 20 17:49:09 homeserver systemd[1]: Failed to start Plex Media Server for Linux.
我已经尝试了不同的方法来清除以前的安装,但都不起作用。有关信息,引导我到这里的路线:- 在 plex web 应用程序上看到有可用的更新,通过 SSH 连接到我的服务器,wget deb 文件,然后 dpkg-i => 失败 - 然后我决定最终进行 ubuntu 16.04 升级。- 升级后,仍然无法升级 - 尝试卸载,然后重新安装,没有运气,再次尝试清除,仍然没有运气。
答案1
最终是一个权限问题。因此
sudo chmod 0777 -R /var/lib/plexmediaserver
sudo chown plex:plex -R /var/lib/plexmediaserver
sudo service plexmediaserver restart
解决了这个问题
看来它并sudo apt-get remove --purge plexmediaserver
不能清洁所有的东西。