The following is outputted after typing apt-get upgrade.
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
manpages
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/795 kB of archives.
After this operation, 284 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 24372 files and directories currently installed.)
Preparing to replace manpages 3.27-1 (using .../manpages_3.44-1_all.deb) ...
Unpacking replacement manpages ...
dpkg: error processing /var/cache/apt/archives/manpages_3.44-1_all.deb (--unpack):
trying to overwrite '/usr/share/man/man1/getent.1.gz', which is also in package libc-bin 2.15-0ubuntu10.11
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/manpages_3.44-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm trying to make the upgrade from squeeze to wheezy, which I think I did successfully, except upgrading causes this error. What could be the problem?
Looks like you mucked around with your system package sources in ways that you shouldn't have and now things are in a very inconsistent state.
While it may be possible with much work to recover from this, you'll never be certain about the ongoing stability of your system. As such, just install a fresh OS and restore your applications and data there.
It looks like you (or a previous sysadmin) mixed in some packages from ubuntu and it has a file conflict with a package you are installing as part of the upgrade.
You can override the error with.
dpkg -i --force-overwrite /var/cache/apt/archives/manpages_3.44-1_all.deb
This is usually a reasonablly safe thing to do. Especially with something unimportant like a manpage.
This fixed it:
aptitude remove libc-bin
caused this to happen:
And now everything is fixed enough where I can make a backup and reinstall the OS