为什么安装“parted”会尝试安装 nginx?

为什么安装“parted”会尝试安装 nginx?

我的parted安装似乎因依赖而失败nginx

$ sudo apt-get install parted
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libmpdec2
Use 'apt-get autoremove' to remove it.
Suggested packages:
  parted-doc
The following NEW packages will be installed:
  parted
0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
2 not fully installed or removed.
Need to get 44.2 kB of archives.
After this operation, 188 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main parted amd64 2.3-19ubuntu1.14.04.1 [44.2 kB]
Fetched 44.2 kB in 0s (1,151 kB/s)
Selecting previously unselected package parted.
(Reading database ... 32465 files and directories currently installed.)
Preparing to unpack .../parted_2.3-19ubuntu1.14.04.1_amd64.deb ...
Unpacking parted (2.3-19ubuntu1.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up nginx-core (1.4.6-1ubuntu3.5) ...
Starting nginx: invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-core (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不明白为什么nginx应该要求parted。有人能解释一下吗?

答案1

它没有分开,但是之前未完成的安装。

答案2

正如 nephilim 所说,它不是因为 parted 而被安装,而是因为您调用了 apt 而完成了之前未完成的安装。

如果您想修复此问题,我建议您删除 NGINX(如果您不需要它)(apt remove nginx-core --purge请注意,清除也将删除您的配置文件,因此只有当您愿意时才这样做)或手动修复它(尝试dpkg --configure nginx-core获取更多信息但似乎服务无法启动)。

相关内容