I'm trying to install the python3-bsddb3 package, but I continually receive this error message. Any help would be greatly appreciated. I'm running Ubuntu 16.10.
$ sudo apt-get -f install
[sudo] password for richard:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/98.2 kB of archives.
After this operation, 580 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 412146 files and directories currently installed.)
Preparing to unpack .../python3-bsddb3_6.1.0-1build2_amd64.deb ...
Unpacking python3-bsddb3 (6.1.0-1build2) ...
dpkg: error processing archive /var/cache/apt/archives/python3-bsddb3_6.1.0-1build2_amd64.deb (--unpack):
trying to overwrite '/usr/include/python3.5', which is also in package libpython3.5-dev:amd64 3.5.2-6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt remove python3
/usr/include/python3.5_backup and then continued with the installation without problems. Since then, I have not noticed any problems with writing or running Python3 code or using other Python3 modules. If problems arise, I'll revert to the backup version of the file.