Ubuntu for official sources apt install nginx add trusted key: touch ~ /Nginx_signing.key1sudo vi ~ /Nginx_signing.key to add the officially provided key. Here is the key url 1 sudo apt-key add ~ /Nginx_signing.key Step 2/etc/apt/sources. add the official source RHEL/CentOS: Version5.x6 at the end of list file. xDebian: Version Codename6.x squeeze7.x wheezyUbuntu: Version Codename10.04 lucid11.10 oneiric12.04 precise12.10 quantal13.04 raring is 12. 04 so choose precisedeb http://nginx.org/packages/ubuntu/ precise nginxdeb-src http://nginx.org/packages/ubuntu/ precise nginx Step 4 apt-get updateapt-get install nginx but it appears when I install Version conflict error. 01 decompressing nginx (from ../nginx_1.4.3-1 ~ Precise_i386.deb)... 02--------------------------------------------------------------------------03 04 Thanks for using nginx! 05 06 Please find the official documentation for nginx here: 07 * http://nginx.org/en/docs/08 09 too cial subscriptions for nginx are available on: 10 * http://nginx.com/products/11 12 limit 13 dpkg: processing/var/cache/apt/archives/nginx_1.4.3-1 ~ Precise_i386.deb (-- unpack) error: 14 is attempting to overwrite/usr/sbin/nginx. It is also included in the software package nginx-full 1.1.19-1ubuntu0. 215 as MaxReports restrictions have been reached, no apport report is written. 16 dpkg-deb: error: subprocess paste was killed by signal (disconnected pipe) 17 error occurred during processing: 18/var/cache/apt/archives/nginx_1.4.3-1 ~ Precise_i386.deb19E: Sub-process/usr/bin/dpkg returned an error code (1) Think carefully that I have installed version 1.1.19 before I changed the source, before uninstalling, I directly uninstalled apt-get remote nginx and nginx-common and nginx-full without uninstalling sudo apt-get remote nginx-full sudo apt-get autoremove. started to install sudo apt-get install nginx