无法卸载软件包,因为 dpkg 无法卸载该软件包

无法卸载软件包,因为 dpkg 无法卸载该软件包

我陷入了困境,我似乎无法再正确使用 apt-get,因为timidity-daemon每当我运行 apt-get 时,这个包都会“失败”。

timidity-daemon更糟糕的是,由于这个错误,我无法卸载,在我看来这完全是荒谬的。

$ sudo apt-get remove timidity-daemon
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  timidity-daemon
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 31.7 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 240280 files and directories currently installed.)
Removing timidity-daemon (2.13.2-40.3) ...
Failed to stop timidity.service: Unit timidity.service not loaded.
invoke-rc.d: initscript timidity, action "stop" failed.
dpkg: error processing package timidity-daemon (--remove):
 subprocess installed pre-removal script returned error exit status 5
Failed to stop timidity.service: Unit timidity.service not loaded.
invoke-rc.d: initscript timidity, action "stop" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 5
Errors were encountered while processing:
 timidity-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

有什么办法可以解决这个问题吗?我甚至不确定为什么要安装 timidity-daemon,但我认为我不需要它。

相关内容