在 ubuntu 9.04 中安装 subversion 时出错

在 ubuntu 9.04 中安装 subversion 时出错
sudo apt-get install subversion
[sudo] password for hwsui:
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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  subversion: Depends: libsvn1 (= 1.6.5dfsg-1ubuntu1~jaunty1~andersk1) but it is                                                                                         not going to be installed
              Depends: libapr1 but it is not installable
              Depends: libaprutil1 but it is not installable
              Depends: libmysqlclient15off (>= 5.0.27-1) but it is not installab                                                                                        le
              Depends: libneon27-gnutls (>= 0.28.2) but it is not installable
              Depends: libpq5 (>= 8.3~beta1) but it is not installable
E: Broken packages

答案1

Ubuntu 9.04 存储库已从主 Ubuntu 镜像中刻录 - 您在尝试安装任何东西时都会遇到同样的问题。

要安装任何软件包或升级到较新的版本(您确实需要这样做 - 您运行的操作系统近一年半没有得到安全更新),您必须使用旧版本的镜像。

修改您的/etc/apt/sources.list以使用这些行代替现有的行:

deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

然后apt-get update。真的——升级

答案2

正如评论中所说,Ubuntu 9.04 不再受支持,因此您真的应该考虑升级。

至于您当前的问题:

  • 确保apt-get update在安装包之前运行;
  • 您正在使用 PPA(很有可能,因为libsvn1它尝试安装的版本)。删除它并重试。

相关内容