![如何解决:dpkg:警告:子进程旧的预删除脚本返回错误退出状态 1](https://linux22.com/image/1126298/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9Adpkg%EF%BC%9A%E8%AD%A6%E5%91%8A%EF%BC%9A%E5%AD%90%E8%BF%9B%E7%A8%8B%E6%97%A7%E7%9A%84%E9%A2%84%E5%88%A0%E9%99%A4%E8%84%9A%E6%9C%AC%E8%BF%94%E5%9B%9E%E9%94%99%E8%AF%AF%E9%80%80%E5%87%BA%E7%8A%B6%E6%80%81%201.png)
如何解决:
The following packages will be upgraded:
plexmediaserver
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/127 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 252173 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_0.9.12.1.1079-b655370-debian_amd64.deb ...
Killing Plex Media Server: done
update-rc.d: /etc/init.d/plexmediaserver exists during rc.d purge (use -f to force)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Killing Plex Media Server: done
update-rc.d: /etc/init.d/plexmediaserver exists during rc.d purge (use -f to force)
dpkg: error processing archive /var/cache/apt/archives/plexmediaserver_0.9.12.1.1079-b655370-debian_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/plexmediaserver_0.9.12.1.1079-b655370-debian_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)