Transmission-daemon - 悬空符号链接和 dpkg 错误

Transmission-daemon - 悬空符号链接和 dpkg 错误

尝试安装 Transmission 几次后,我无法让 WebUI 正常工作。这让我想通过删除所有 transmission 文件来重新开始。我在 Ubuntu 14.10 服务器上遇到以下问题。

chris@homeserver:~$ sudo apt-get remove transmission-daemon                      
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libnatpmp1
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  transmission-daemon
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 606 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 142422 files and directories currently installed.)
Removing transmission-daemon (2.84-0ubuntu0.14.10.1) ...
invoke-rc.d: dangling symlink: /etc/rc2.d/S01transmission-daemon
dpkg: error processing package transmission-daemon (--remove):
 subprocess installed pre-removal script returned error exit status 102
invoke-rc.d: dangling symlink: /etc/rc2.d/S01transmission-daemon
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 102
Errors were encountered while processing:
 transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

即使我想重新安装或强制安装 transmission-daemon,同样的错误仍然会弹出。

我对 Ubuntu 和 Linux 的了解非常有限,我是初学者。有人能解释一下发生了什么以及如何解决这个问题吗?

答案1

可能是软件包的某个先前版本已损坏。我建议删除该文件...

sudo rm /etc/rc2.d/S01transmission-daemon

相关内容