ubuntu 12.04 安装nginx 开始使用默认的apt-get源进行安装 安装版本的1.1.9
后来想更新nginx的版本,直接apt -get remove nginx 然后继续安装报错,如下:
1 2 3 4 5 6 7 | ---------------------------------------------------------------------- dpkg: error processing /var/cache/apt/archives/nginx_1 .8.1-1~precise_amd64.deb (--unpack): trying to overwrite '/etc/default/nginx' , which is also in package nginx-common 1.1.19-1ubuntu0.8 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/nginx_1 .8.1-1~precise_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) |
后来又卸载了一下依赖包,
1 | apt-get autoremove nginx |
继续安装问题得到解决
本文转自 xinsir999 51CTO博客,原文链接:http://blog.51cto.com/xinsir/1759817,如需转载请自行联系原作者