Ubuntu for official sources apt install nginx

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.