运行 sudo apt-get upgrade 时出错

运行 sudo apt-get upgrade 时出错

我在无头服务器上运行 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

相关内容