由于依赖于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的一个要求。有人能解释一下吗?
发布于 2016-11-13 09:17:57
它不是分开的,而是一个以前不完整的装置。
发布于 2016-11-13 23:17:53
正如nephilim所说,它不是因为分离而安装的,而是因为调用apt而完成了以前不完整的安装。
如果您想解决这个问题,我建议在您不需要NGINX的情况下删除它(apt remove nginx-core --purge,注意清除,也会删除它的配置文件,所以只有在您喜欢的情况下才会删除),或者手动修复它(尝试dpkg --configure nginx-core获取更多信息,但是服务似乎无法启动)。
https://askubuntu.com/questions/848850
复制相似问题