从源代码安装Python 3.1.2,如何解决sqlite3-dev依赖关系?

发布于 2024-09-06 02:10:44 字数 622 浏览 12 评论 0原文

运行 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 依赖项有什么想法吗?

Running ubuntu 9.04 "jaunty".

When I run make I get the following error:

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

So the easy solution is to just install the missing dependency using apt-get, "sudo apt-get -f install libsqlite3-dev" but I get the following error:

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

I tried uninstalling "libsqlite3-0" but synaptic said many things needed it (50+).

So now I am stuck. I can't install the missing dependency. And therefore I can not install python 3.1.2.

Any ideas on how to fix the missing libsqlite3-dev dependency?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紅太極 2024-09-13 02:10:44

该错误消息中的依赖项不匹配与官方 ubuntu 存储库 不一致。 (Jaunty 中 libsqlite3-dev 的官方版本取决于 libsqlite3-0 (= 3.6.10-1ubuntu0.2)。)也许您上次的 apt-get 更新 已完成而存储库仍在更新,并且只有一些最新的软件包可用。

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

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

The dependency mismatch in that error message doesn't agree with the official ubuntu repository. (The official version of libsqlite3-dev in Jaunty depends on libsqlite3-0 (= 3.6.10-1ubuntu0.2).) Perhaps your last apt-get update was done while the repo was still being updated and only some of the latest packages were available.

Try again after running sudo apt-get update, perhaps first switching to a different apt server. (You can do this in the Ubuntu GUI using the Software Sources system administration tool.)

Or, if you don't want to mess with building and installing Python manually, you could upgrade Ubuntu to the latest release. Lucid has Python 3.1.2 in the repositories already, as python3.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文