成功建立了 SABnzb、Sickbeard 和 Couch Potato,并且一切运行良好
我的 Ubuntu 12.04 服务器有问题。尝试升级或安装任何软件包时会出现错误并失败,如下所示
Now updating apache2-utils ..
Installing package(s) with command apt-get -y install apache2-utils ..
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
openmediavault-omvextrasorg
The following packages will be upgraded:
apache2-utils
1 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
1 not fully installed or removed.
Need to get 0 B/91.4 kB of archives.
After this operation, 337 kB disk space will be freed.
(Reading database ... 120507 files and directories currently installed.)
Removing openmediavault-omvextrasorg ...
/var/lib/dpkg/info/openmediavault-omvextrasorg.postrm: 23: .: Can't open /etc/default/openmediavault
dpkg: error processing openmediavault-omvextrasorg (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
openmediavault-omvextrasorg
E: Sub-process /usr/bin/dpkg returned an error code (1)
.. install failed!
No packages were installed. Check the messages above for the cause of the error.
<- Return to package list
(这是来自 Webmin,但如果使用 Putty 或直接在机器上使用,结果相同)
我有一台带有 8Gig RAM 的 HP Microserver N54L
答案1
以下是一些选项:
精确修复:
touch /etc/default/openmediavault
然后重试。可能还有其他问题需要解决。从轨道上用核武器攻击它:
rm /var/lib/dpkg/info/openmediavault-omvextrasorg.postrm
我发现有许多 .deb 前/后脚本是根据可能不正确的假设编写的。我最喜欢的一个是 prerm 脚本,它假设守护进程仍在运行,并在没有运行时导致 apt-get 失败。
编辑:看着https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-omvextrasorg/blob/master/debian/postrm我猜(1)会失败。使用 (2) 您可能需要运行以下命令:
/bin/rm -f /etc/apt/preferences.d/99omv-extras-org*
/bin/rm -f /etc/apt/sources.list.d/omv-extras-org-*.list
答案2
我也被服务了,我也被服务了,只需要把软件包 apt-get --force-yes 删除 openmediavault-omvextrasorg 就可以了