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

时间:2016-11-27 20:21:25

标签: python linux python-3.x ubuntu apt

我正在尝试安装python3-bsddb3包,但我不断收到此错误消息。任何帮助将不胜感激。我正在运行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)

一些背景故事:我正在运行Ubuntu 16.04。我在配置Eclipse以加载Python 3模块时遇到了问题,因此我(愚蠢地)认为我应该尝试卸载Python 3(sudo apt remove python3)然后重新安装它,所以看看是否会清除我可能创建的任何问题在我的系统上的过去。叹。这为Ubuntu吹掉了大部分用户体验,留给我一个引导到我的壁纸的系统,但没有使用Unity或其他GUI工具......只是一个移动的鼠标光标。我学会了如何使用Ctrl-Alt-F1来访问终端。从那个终端,我从16.04升级到16.10,希望能重新安装Gnome GUI功能。叹。这给我留下了黑屏和鼠标光标。有趣的是移动鼠标,但没有什么用处。然后我倾向于说我需要安装桌面环境。现在我的系统似乎恢复正常,只是我在安装GRAMPS时遇到了麻烦,GRAMPS是一个需要python3-bsddb3包的系谱包。对于我的其他用途,Python3似乎运行正常,包括在Eclipse中使用PyDev。

我对错误消息的阅读是文件/usr/include/python3.5存在问题。我已经检查过它确实存在。鉴于我之前的冒险经历吹走了Python3,我害怕删除它或在没有建议的情况下改变它。

抱歉是一个无意中自我毁灭的Linux白痴。

1 个答案:

答案 0 :(得分:1)

我将/usr/include/python3.5重命名为/usr/include/python3.5_backup,然后继续安装而没有任何问题。从那时起,我没有注意到编写或运行Python3代码或使用其他Python3模块的任何问题。如果出现问题,我将恢复为该文件的备份版本。