You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I add the nginx-extras package? I tried to add it as a package, but it throws the following error:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nginx-extras' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
nginx-common
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx-common nginx-extras
0 upgraded, 2 newly installed, 0 to remove and 23 not upgraded.
13 not fully installed or removed.
Need to get 0 B/513 kB of archives.
After this operation, 1720 kB of additional disk space will be used.
(Reading database ... 62834 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.4.6-1ubuntu3_all.deb ...
Unpacking nginx-common (1.4.6-1ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/nginx-common_1.4.6-1ubuntu3_all.deb (--unpack):
trying to overwrite '/usr/share/nginx/html/50x.html', which is also in package nginx 1.6.0-1~trusty
Preparing to unpack .../nginx-extras_1.4.6-1ubuntu3_amd64.deb ...
Unpacking nginx-extras (1.4.6-1ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/nginx-extras_1.4.6-1ubuntu3_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/nginx', which is also in package nginx 1.6.0-1~trusty
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/nginx-common_1.4.6-1ubuntu3_all.deb
/var/cache/apt/archives/nginx-extras_1.4.6-1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: /Stage[main]/Main/Node[web_node]/Package[nginx-extras]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nginx-extras' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
nginx-common
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
nginx-common nginx-extras
0 upgraded, 2 newly installed, 0 to remove and 23 not upgraded.
13 not fully installed or removed.
Need to get 0 B/513 kB of archives.
After this operation, 1720 kB of additional disk space will be used.
(Reading database ... 62834 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.4.6-1ubuntu3_all.deb ...
Unpacking nginx-common (1.4.6-1ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/nginx-common_1.4.6-1ubuntu3_all.deb (--unpack):
trying to overwrite '/usr/share/nginx/html/50x.html', which is also in package nginx 1.6.0-1~trusty
Preparing to unpack .../nginx-extras_1.4.6-1ubuntu3_amd64.deb ...
Unpacking nginx-extras (1.4.6-1ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/nginx-extras_1.4.6-1ubuntu3_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/nginx', which is also in package nginx 1.6.0-1~trusty
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/nginx-common_1.4.6-1ubuntu3_all.deb
/var/cache/apt/archives/nginx-extras_1.4.6-1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas?
The text was updated successfully, but these errors were encountered:
Looks like you've installed nginx from the official nginx repositories. The Ubuntu packages are setup different and there's a conflict between them and what you got from the nginx repo.
If you want nginx-extras from the Ubuntu repositories you'll have to uninstall the "nginx" package first. nginx-extras isn't something you can install in addition to another nginx package.
In short, don't mix nginx packages from multiple repositories.
Closing. If you're still having trouble please post a message and I'll reopen - we'll need some details on what you're trying to achieve, and what's in your manifests. Thanks!
How do I add the nginx-extras package? I tried to add it as a package, but it throws the following error:
Any ideas?
The text was updated successfully, but these errors were encountered: