卸载 Phusion Passenger 并修复包数据库

卸载 Phusion Passenger 并修复包数据库

前段时间我用这些安装了 Phusion Passenger指示。我的sources.list 中还有debdeb.org 存储库。

我现在想要删除 Passenger 并从 dobdeb.org 安装一个干净的 nginx 包。删除passenger模块不是问题。但是如果我尝试删除nginx-extrasnginx-common包我会得到以下结果

$ sudo apt-get remove nginx-common nginx-extras
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  php5-apc
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
The following packages will be REMOVED:
  nginx-common nginx-extras
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap
0 upgraded, 9 newly installed, 2 to remove and 5 not upgraded.
Need to get 1477 kB of archives.
After this operation, 2705 kB of additional disk space will be used.

看来我的包数据库在某种程度上被破坏了,我想知道为什么如果我删除 nginx-extras 就会安装 apache2。

如何删除 nginx-extras 和 nginx-common 而无需安装 apache2 并随后安装“干净”版本?

答案1

我假设你安装的东西有一个依赖项,可以通过安装 nginx 或 apache2 来满足。

尝试使用aptitude why apache2和/或aptitude why nginx-common查看任何潜在的关系。

相关内容