1

运行 ubuntu 9.04 “jaunty”。

当我运行 make 我得到以下错误:

Python build finished, but the necessary bits to build these modules were not found:
_sqlite3    

因此,简单的解决方案是使用 apt-get, "sudo apt-get -f install libsqlite3-dev" 安装缺少的依赖项,但我收到以下错误:

The following packages have unmet dependencies:
  libsqlite3-dev: Depends: libsqlite3-0 (= 3.6.10-1) but 3.6.10-1ubuntu0.2 is to be installed
E: Broken packages

我尝试卸载“libsqlite3-0”,但突触说很多东西都需要它(50+)。

所以现在我被卡住了。我无法安装缺少的依赖项。因此我无法安装 python 3.1.2。

关于如何修复缺少的 libsqlite3-dev 依赖项的任何想法?

4

1 回答 1

1

该错误消息中的依赖项不匹配与官方ubuntu 存储库不一致。(Jaunty 中 libsqlite3-dev 的官方版本依赖于libsqlite3-0 (= 3.6.10-1ubuntu0.2).)也许你的最后一个apt-get update是在 repo 仍在更新并且只有一些最新的包可用时完成的。

运行后重试sudo apt-get update,也许先切换到不同的 apt 服务器。(您可以使用 Software Sources 系统管理工具在 Ubuntu GUI 中执行此操作。)

或者,如果您不想手动构建和安装 Python,您可以将 Ubuntu 升级到最新版本。Lucid 在存储库中已经有 Python 3.1.2,如 python3。

于 2010-06-16T18:12:42.090 回答