Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extras packages? #341

Closed
ee99ee opened this issue Jun 20, 2014 · 3 comments
Closed

Add extras packages? #341

ee99ee opened this issue Jun 20, 2014 · 3 comments

Comments

@ee99ee
Copy link

ee99ee commented Jun 20, 2014

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?

@3flex
Copy link
Contributor

3flex commented Jun 23, 2014

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.

@3flex
Copy link
Contributor

3flex commented Dec 8, 2014

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!

@3flex 3flex closed this as completed Dec 8, 2014
@ee99ee
Copy link
Author

ee99ee commented Dec 8, 2014

Sorry, I should have closed this. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants