我是Ubuntu的新手。我需要在nginx服务器上启用brotli压缩。
我试图从下面的链接与BROTLI安装NGINX。https://www.howtoforge.com/tutorial/how-to-install-nginx-with-brotli-compression-on-ubuntu-1804/
当我试图按照链接安装构建包时,我会出错。
root@sachin-virtual-machine:/usr/local/src# ls
nginx-1.14.2 nginx_1.14.2-1~bionic.dsc
nginx_1.14.2-1~bionic_amd64.buildinfo nginx_1.14.2.orig.tar.gz
nginx_1.14.2-1~bionic_amd64.changes nginx-dbg_1.14.2-1~bionic_amd64.deb
nginx_1.14.2-1~bionic_amd64.deb ngx_brotli
nginx_1.14.2-1~bionic.debian.tar.xz
root@sachin-virtual-machine:/usr/local/src# sudo dpkg -i *.deb
dpkg: regarding nginx_1.14.2-1~bionic_amd64.deb containing nginx:
nginx conflicts with nginx-common
nginx-common (version 1.14.0-0ubuntu1.2) is present and installed.
dpkg: error processing archive nginx_1.14.2-1~bionic_amd64.deb (--install):
conflicting packages - not installing nginx
(Reading database ... 175249 files and directories currently installed.)
Preparing to unpack nginx-dbg_1.14.2-1~bionic_amd64.deb ...
Unpacking nginx-dbg (1.14.2-1~bionic) over (1.14.2-1~bionic) ...
dpkg: dependency problems prevent configuration of nginx-dbg:
nginx-dbg depends on nginx (= 1.14.2-1~bionic); however:
Version of nginx on system is 1.14.0-0ubuntu1.2.
Version of nginx on system, provided by nginx-core:amd64, is <none>.
dpkg: error processing package nginx-dbg (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx_1.14.2-1~bionic_amd64.deb
nginx-dbg
root@sachin-virtual-machine:/usr/local/src#请用这个指引我。
发布于 2019-01-03 08:04:34
您已经安装了nginx,所以您必须删除该版本才能从源代码构建和安装。
1.14.2,用sudo dpkg remove nginx-1.14.2删除它,并确保使用正确的版本号。sudo apt update和sudo apt upgrade,以确保它们没有问题。sudo apt purge <nginx-1.14.0>sudo apt install -fhttps://askubuntu.com/questions/1106498
复制相似问题