zay*_*sev 26 apt dpkg nginx software-installation
软件最新选项会自动下载nginx. 但是在安装时它给了我以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nginx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/434 kB of archives.
After this operation, 977 kB of additional disk space will be used.
(Reading database ... 291344 files and directories currently installed.)
Unpacking nginx (from .../nginx_1.4.7-1~precise_amd64.deb) ...
----------------------------------------------------------------------
Thanks for using nginx!
Please find the official documentation for nginx here:
* http://nginx.org/en/docs/
Commercial subscriptions for nginx are available on:
* http://nginx.com/products/
----------------------------------------------------------------------
dpkg: error processing /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb (--unpack):
trying to overwrite '/etc/logrotate.d/nginx', which is also in package nginx-common 1.4.6-1+precise0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
实际上,/etc/logrotate.d/nginx该文件夹中不存在该文件。
Avi*_*Raj 44
在终端上运行以下命令,
sudo dpkg -P nginx-common
sudo apt-get install -f
Run Code Online (Sandbox Code Playgroud)
如果在卸载上述nginx-common包时显示任何依赖问题,则清除 nginx-common包及其依赖项。
sudo apt-get purge nginx*
Run Code Online (Sandbox Code Playgroud)
在运行上述命令之前,不要忘记检查将与 nginx 一起清除的依赖包。
sudo apt-get purge -s nginx*
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
104356 次 |
| 最近记录: |