Opened 9 years ago

Closed 9 years ago

#795 closed defect (invalid)

nginx 1.9.5-1 with deb package can't be install on ubuntu with error

Reported by: ye.mikez@… Owned by:
Priority: minor Milestone:
Component: nginx-package Version: 1.9.x
Keywords: Cc:
uname -a: Linux michael-pc 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/LinuxLinux
nginx -V: nginx version: nginx/1.9.4
built with OpenSSL 1.0.1 14 Mar 2012 (running with OpenSSL 1.0.1c 10 May 2012)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-threads --add-module=/build/nginx-2lMT4c/nginx-1.9.4/debian/modules/nginx-auth-pam --add-module=/build/nginx-2lMT4c/nginx-1.9.4/debian/modules/nginx-dav-ext-module --add-module=/build/nginx-2lMT4c/nginx-1.9.4/debian/modules/nginx-echo --add-module=/build/nginx-2lMT4c/nginx-1.9.4/debian/modules/nginx-upstream-fair --add-module=/build/nginx-2lMT4c/nginx-1.9.4/debian/modules/ngx_http_substitutions_filter_module

Description

# wget http://nginx.org/packages/mainline/ubuntu/pool/nginx/n/nginx/nginx_1.9.5-1~precise_amd64.deb

# uname  -a
Linux michael-pc 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


# dpkg -i nginx_1.9.5-1~precise_amd64.deb 
(Reading database ... 283703 files and directories currently installed.)
Preparing to replace nginx 1.9.4-1+precise0 (using nginx_1.9.5-1~precise_amd64.deb) ...
Unpacking replacement nginx ...
dpkg: error processing nginx_1.9.5-1~precise_amd64.deb (--install):
 trying to overwrite '/usr/sbin/nginx', which is also in package nginx-full 1.9.4-1+precise0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 nginx_1.9.5-1~precise_amd64.deb


Change History (2)

comment:1 by Ilyas Bakirov, 9 years ago

You have already installed nginx-full-1.9.4-1+precise0 from Ubuntu repo and you are trying manually install nginx_1.9.5-1~precise_amd64.deb from nginx repo. I think, you should uninstall nginx-full-1.9.4-1+precise0 first and then install nginx_1.9.5-1~precise_amd64.deb if you are willing to do so.

comment:2 by Maxim Dounin, 9 years ago

Component: nginx-corenginx-package
Resolution: invalid
Status: newclosed

As suggested, removing conflicting packages should help.

Note: See TracTickets for help on using tickets.