Error when try to go with Ansible Playbook

530 views
Skip to first unread message

Chetan Parekh

unread,
Jul 16, 2014, 8:54:50 AM7/16/14
to opene...@googlegroups.com
Hello All,

Got the below error when try to run the Ansible Playbook.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Error : 

failed: [localhost] => {"failed": true, "item": ""}
stderr: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

stdout: Reading package lists...
Building dependency tree...
Reading state information...
nginx is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 nginx : Depends: nginx-full but it is not going to be installed or
                  nginx-light but it is not going to be installed

msg: 'apt-get install 'nginx' ' failed: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/root/edx_sandbox.retry

localhost                  : ok=25   changed=0    unreachable=0    failed=1   

root@u17784008:/var/tmp/configuration/playbooks# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-image-3.11.0-19-generic linux-headers-3.11.0-19 linux-headers-3.11.0-19-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  nginx-common nginx-full
The following NEW packages will be installed:
  nginx-common nginx-full
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 0 B/396 kB of archives.
After this operation, 1,141 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 181172 files and directories currently installed.)
Unpacking nginx-common (from .../nginx-common_1.1.19-1ubuntu0.6_all.deb) ...
dpkg: error processing /var/cache/apt/archives/nginx-common_1.1.19-1ubuntu0.6_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/nginx.1.gz', which is also in package sw-nginx 1.6.0-1.14051516.ubuntu1204
Unpacking nginx-full (from .../nginx-full_1.1.19-1ubuntu0.6_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/nginx-full_1.1.19-1ubuntu0.6_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/nginx', which is also in package sw-nginx 1.6.0-1.14051516.ubuntu1204
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/nginx-common_1.1.19-1ubuntu0.6_all.deb
 /var/cache/apt/archives/nginx-full_1.1.19-1ubuntu0.6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Environment: 
OS : Ubuntu 12.04
Server : 1and1 dedicated server
Installed Plesk panel.

Let me know, if you required any more details.
Awaiting for your earliest reply.

Thanks in advance,
Chetan Parekh


Han Su Kim

unread,
Jul 21, 2014, 4:19:57 PM7/21/14
to opene...@googlegroups.com
I don't know if 1&1 does anything special from the standard Ubuntu 12.04 installation, and I do hear that Plesk and AppArmor *used for codejail* do not mix.  Plesk / 1&1 might also need to have detailed control over the web service hosting which might be why you are getting the error you are seeing.  I'd check with your provider and see if that's the case.
Reply all
Reply to author
Forward
0 new messages