I'm trying to use apt-get to install imagick. Should be simple enough. This is my command.
apt-get install imagemagick libmagickcore-dev libmagickwand-dev
However instead of installing it keeps bouncing back with this error message
The following packages have unmet dependencies: nginx-full: Depends: nginx-common (= 1.0.4-1ppa1~lucid) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
No worries, so I try
apt-get -f install
Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: nginx-common The following NEW packages will be installed: nginx-common 0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded. 2 not fully installed or removed. Need to get 0B/59.4kB of archives. After this operation, 246kB of additional disk space will be used. Do you want to continue [Y/n]?
Yep let's continue
But then it gives me this:
(Reading database ... 23160 files and directories currently installed.) Unpacking nginx-common (from .../nginx-common_1.0.4-1ppa1~lucid_all.deb) ... dpkg: error processing /var/cache/apt/archives/nginx-common_1.0.4-1ppa1~lucid_all.deb (--unpack): trying to overwrite '/etc/ufw/applications.d/nginx', which is also in package nginx 0:1.0.0-0ppa1~lucid Processing triggers for man-db ... Processing triggers for ureadahead ... Errors were encountered while processing: /var/cache/apt/archives/nginx-common_1.0.4-1ppa1~lucid_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
I've tried stopping the nginx service. I did an apt-get update, but all to no avail :(
Any help would be greatly appreciated.