APE 服务器安装错误

APE 服务器安装错误

我尝试从 ape-server 主页 (www.ape-project.org) 上的 .deb 文件安装 APE-Server,但遇到了错误,因此想尝试删除安装并重新安装。我执行了 sudo apt-get remove ape-server,成功运行,但在我的 /etc/ 和 /etc/init.d 位置留下了 ape-server 文件夹。我是个新手,刚接触 linux,所以决定手动删除这些文件夹。现在,当我重新安装 ape-server 时,这些文件夹不会重新创建,因此我无法发送

 /etc/init.d/ape-server [option] 

命令,因为找不到该文件夹​​。

当我尝试 sudo apt-get purge (或删除)ape-server 时,我收到以下信息

   sudo apt-get purge ape-server
   Reading package lists... Done
   Building dependency tree       
   Reading state information... Done
   The following packages will be REMOVED:
      ape-server*
   0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
   1 not fully installed or removed.
   After this operation, 1,753kB disk space will be freed.
   Do you want to continue [Y/n]? y
   (Reading database ... 43924 files and directories currently installed.) 
   Removing ape-server ...
   invoke-rc.d: unknown initscript, /etc/init.d/ape-server not found.
   dpkg: error processing ape-server (--purge): 
   subprocess installed pre-removal script returned error exit status 100
   update-rc.d: /etc/init.d/ape-server: file does not exist
   dpkg: error while cleaning up:
   subprocess installed post-installation script returned error exit status 1
   Errors were encountered while processing:
     ape-server 
   E: Sub-process /usr/bin/dpkg returned an error code (1)

我的问题是;如何删除所有已安装的 ape-server 安装包,以便可以从头开始重新安装?

答案1

因为我们知道它有效,所以我会回答你的问题:

创建一个空文件:

  • /etc/init.d/ape-server

现在把包装拆掉,一切就都清楚了。

相关内容