在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 

从主要的Ubuntu镜像中已经烧毁了Ubuntu 9.04版本库 – 您将尝试安装任何相同的版本。

要做任何软件包的安装或者升级到一个更新的版本(你真的需要做的 – 你正在运行的操作系统在近一年半时间内没有得到安全更新),你必须使用旧版本镜子。

修改你的/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 。 而且真的 – 升级 。

正如已经在评论中所说,Ubuntu 9.04不再支持,所以你应该真的想升级。

至于你目前的问题:

  • 确保在安装包之前运行apt-get update ;
  • 您正在使用PPA(很可能,考虑到它试图安装的libsvn1的版本)。 摆脱它,然后再试一次。