使用 apt-get 安装 Trac 时出现的问题 Ubuntu Jaunty

使用 apt-get 安装 Trac 时出现的问题 Ubuntu Jaunty

我在 Ubuntu Jaunty Box 上正确安装 trac 时遇到了一些问题。

使用命令“apt-get install tr​​ac”我得到以下输出:

root@myserver:~# apt-get install trac
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  trac: Depends: python-setuptools (> 0.5) but it is not installable
        Depends: python-pysqlite2 (>= 2.3.2) but it is not going to be

已安装 依赖:python-subversion 但无法安装 依赖:libjs-jquery 但无法安装 推荐:python-pygments (>= 0.6) 但无法安装或 enscript 但无法安装 推荐:python-tz 但无法安装 E:损坏的软件包

我已经在我的 karmic kola 台式机上成功使用了该命令,并且能够创建新项目等。

我以为我可以通过安装所有与 Python 相关的扩展来解决问题。这产生了非常相似的输出。

我已启用主、宇宙和多元宇宙存储库。它是一台远程机器,我无法访问 GUI。

希望有人能帮忙,谷歌搜索未能解决问题或找到解决方案!

谢谢,

答案1

这种依赖关系破坏毫无意义。错误消息抱怨的版本在 Jaunty 中可用(例如python-setuptools 版本 0.6c9)。

我会检查/etc/apt/sources.list/etc/apt/sources.list.d/*.list,并确保同一镜像为jaunty、jaunty-security和jaunty-updates获取主镜像、宇宙镜像和多元宇宙镜像。

答案2

你可以尝试做危险的事情

apt-get 更新;apt-get 升级

获取同一版本的所有软件包。

但也许从源代码安装会更安全:http://trac.edgewall.org/wiki/TracInstall

杰伦

答案3

您是否尝试过使用 easy_install?

查看文档http://trac.edgewall.org/wiki/TracInstall

答案4

您是否在此系统上安装了多个版本的 Python?我见过类似的问题报告,结果是安装了某个版本的 Python 所需的模块,而 Web 服务器使用的是另一个版本。这种情况可能发生在 32 位与 64 位之间,或者 2.4 与 2.5 之间,等等。

相关内容