简体   繁体   English

Ubuntu 16.10:需要帮助来安装python3-bsddb3

[英]Ubuntu 16.10: Need help installing python3-bsddb3

I'm trying to install the python3-bsddb3 package, but I continually receive this error message. 我正在尝试安装python3-bsddb3软件包,但我不断收到此错误消息。 Any help would be greatly appreciated. 任何帮助将不胜感激。 I'm running Ubuntu 16.10. 我正在运行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:
  python3-bsddb3
Suggested packages:
  python3-bsddb3-dbg
The following NEW packages will be installed:
  python3-bsddb3
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:
 /var/cache/apt/archives/python3-bsddb3_6.1.0-1build2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Some backstory: I was running Ubuntu 16.04. 一些背景故事:我正在运行Ubuntu 16.04。 I had problems configuring Eclipse to load a Python 3 module, so I (stupidly) thought I should try uninstalling Python 3 ( sudo apt remove python3 ) and then reinstalling it, so see if that would clean up any problems I may have created in the past on my system. 我在配置Eclipse来加载Python 3模块时遇到了问题,所以(愚蠢地)以为我应该尝试卸载Python 3( sudo apt remove python3 )然后重新安装它,所以看看是否可以解决我可能在python中创建的任何问题。过去在我的系统上。 Sigh. 叹。 That blew away most of the UX for Ubuntu, leaving me with a system that booted into my wallpaper, but with no Unity or other GUI tools to use... just a moving mouse cursor. 这使Ubuntu的大多数UX消失ble尽,只剩下一个可以启动进入我壁纸的系统,但是没有Unity或其他GUI工具可以使用...只是移动的鼠标光标。 I learned how to use Ctrl-Alt-F1 to gain access to the terminal. 我学习了如何使用Ctrl-Alt-F1来访问终端。 From that terminal, I upgraded from 16.04 to 16.10, hoping that would reinstall the Gnome GUI features. 从那个终端,我从16.04升级到16.10,希望能重新安装Gnome GUI功能。 Sigh. 叹。 That left me with a black screen and mouse cursor. 那给了我黑屏和鼠标光标。 Fun to move the mouse around, but of little use otherwise. 移动鼠标很有趣,但是很少使用。 Then I leaned that I needed to install the desktop environment. 然后,我了解到我需要安装桌面环境。 Now my system seems back to normal, only I'm having trouble installing GRAMPS, the genealogical package that requires the python3-bsddb3 package. 现在我的系统似乎恢复正常,只是我在安装GRAMPS时遇到了麻烦,GRAMPS是需要python3-bsddb3软件包的家谱软件包。 Python3 otherwise seems to run fine for my other uses, including in Eclipse with PyDev. 否则,Python3可以很好地用于我的其他用途,包括在带有PyDev的Eclipse中。

My reading of the error message is that there is a problem with the file /usr/include/python3.5 . 我对错误消息的了解是/usr/include/python3.5文件存在问题。 I've checked that it does in fact exist. 我检查了它是否确实存在。 I'm afraid to delete it or alter it now without advice, given my earlier adventure blowing away Python3. 考虑到我之前的冒险炸毁了Python3,我害怕立即删除它或在没有建议的情况下更改它。

Apologies for being an inadvertently self-destructive Linux idiot. 很抱歉成为无意间自我毁灭的Linux白痴。

I renamed /usr/include/python3.5 to /usr/include/python3.5_backup and then continued with the installation without problems. 我将/usr/include/python3.5重命名为/usr/include/python3.5_backup ,然后继续进行安装,没有出现问题。 Since then, I have not noticed any problems with writing or running Python3 code or using other Python3 modules. 从那时起,我没有注意到编写或运行Python3代码或使用其他Python3模块的任何问题。 If problems arise, I'll revert to the backup version of the file. 如果出现问题,我将恢复为该文件的备份版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM