root@ubuntus:~# apt-get remove nginx-light Reading package lists... Done Building dependency tree Reading state information... Done Package nginx-light is not installed, so not removed You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: nginx-full: Depends: nginx-common (= 1.0.5-1ppa2~lucid) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
How to solve it?
root@tftc:~# 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 41 not upgraded. 2 not fully installed or removed. Need to get 0B/60.6kB of archives. After this operation, 246kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 62634 files and directories currently installed.) Unpacking nginx-common (from .../nginx-common_1.0.5-1ppa2~lucid_all.deb) ... dpkg: error processing /var/cache/apt/archives/nginx-common_1.0.5-1ppa2~lucid_all.deb (--unpack): trying to overwrite '/etc/ufw/applications.d/nginx', which is also in package nginx 0:1.0.5-1ppa2~lucid Processing triggers for man-db ... Processing triggers for ureadahead ... Processing triggers for ufw ... Errors were encountered while processing: /var/cache/apt/archives/nginx-common_1.0.5-1ppa2~lucid_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)