I got this error after uninstalling libnss-resolver and trying to install again the new version for Ubuntu 14:
ᐅ sudo apt-get install libnss-resolver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libnss-resolver
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
5 not fully installed or removed.
Need to get 0 B/33,4 kB of archives.
After this operation, 69,6 kB of additional disk space will be used.
(Reading database ... 342718 files and directories currently installed.)
Preparing to unpack .../libnss-resolver_0.2.1_amd64.1-amd64 ...
Unpacking libnss-resolver (0.2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libnss-resolver_0.2.1_amd64.1-amd64 (--unpack):
trying to overwrite '/etc/resolver/default.dev', which is also in package ubuntu14-libnss-resolver 0.2.0
Checking NSS setup...
Removing resolver from /etc/nsswitch.conf
Errors were encountered while processing:
/var/cache/apt/archives/libnss-resolver_0.2.1_amd64.1-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
I got this error after uninstalling libnss-resolver and trying to install again the new version for Ubuntu 14: