![运行 sudo apt-get upgrade 时出错](https://linux22.com/image/1147933/%E8%BF%90%E8%A1%8C%20sudo%20apt-get%20upgrade%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我在无头服务器上运行 Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-78-generic x86_64)。每次运行软件包更新时都会出现问题plexmediaserver
。以下是终端的输出。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up plexmediaserver (1.5.6.3790-4613ce077) ...
OK
Failed to execute operation: File exists
dpkg: error processing package plexmediaserver (--configure): subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing: plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
我该如何解决这个问题?
更新:
运行 sudo dpkg --configure -a 的结果
Setting up plexmediaserver (1.5.6.3790-4613ce077) ...
OK
Failed to execute operation: File exists
dpkg: error processing package plexmediaserver (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing: plexmediaserver
运行 sudo apt install -f 的结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up plexmediaserver (1.5.6.3790-4613ce077) ...
OK
Failed to execute operation: File exists
dpkg: error processing package plexmediaserver (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
运行 sudo apt install --reinstall plexmediaserver 的结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of plexmediaserver is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up plexmediaserver (1.5.6.3790-4613ce077)...
OK
Failed to execute operation: File exists
dpkg: error processing package plexmediaserver (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
正如您所看到的,我每次都会收到几乎相同的错误消息。
我使用 Atomic Toolkit 安装了 plexmedia 服务器。(https://github.com/htpcBeginner/AtoMiC-ToolKit)