如果 SVN 存储库对于 Subversion 客户端而言太新(而 Subversion 客户端本身是“最新的”),该怎么办?

如果 SVN 存储库对于 Subversion 客户端而言太新(而 Subversion 客户端本身是“最新的”),该怎么办?

发生了一些意想不到的事情...我最近升级了一些 SVN 存储库。现在,当我在 Ubuntu 上尝试更新它们时,我收到以下信息:

max@ASUSN73S:~/d/some/repos$ svn up
svn: The path '.' appears to be part of a Subversion 1.7 or greater
working copy.  Please upgrade your Subversion client to use this
working copy.

是的,因此我不得不在 Windows 上更新 Tortoise,所以我更新了 Tortoise,它成功了。不,我尝试在 Ubuntu 上更新 Subversion 以使其跟上速度,但我得到的结果如下:

max@ASUSN73S:~/d/some/repos$ sudo apt-get install subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
subversion is already the newest version.
The following packages were automatically installed and are no longer required:
  libatk1.0-0:i386 libxcomposite1:i386 nspluginwrapper libnspr4-0d:i386 libcairo2:i386 libdatrie1:i386 libgdk-pixbuf2.0-0:i386 libpixman-1-0:i386 libxinerama1:i386 nspluginviewer:i386 libxft2:i386 libthai0:i386 libjasper1:i386
  libpango1.0-0:i386 libxcb-render0:i386 libxcursor1:i386 libxcb-shm0:i386 libxrandr2:i386 libnss3-1d:i386 libgtk2.0-0:i386
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

subversion 已经更新了吗?没有!:

max@ASUSN73S:~/d/some/repos$ svn --version --quiet
1.6.12

我已经运行了apt-get update命令。

我不记得sources.list在这次安装中更改过文件,但我可能错了。如果相关的话,这里是:

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
deb-src http://extras.ubuntu.com/ubuntu oneiric main

版本:

max@ASUSN73S:/etc/apt$ cat /proc/version
Linux version 3.0.0-22-generic (buildd@komainu) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #36-Ubuntu SMP Tue Jun 12 17:37:42 UTC 2012

非常感谢您的帮助!谢谢!

答案1

Ubuntu 存储库并不总是包含任何软件的最新版本。有人需要测试新版本来解决依赖项等问题。因此,给定版本的 Ubuntu 将具有某个版本的应用程序,而较新版本的 Ubuntu 可能具有较新版本的应用程序。

如果你确实需要比现有版本更新的版本,有时你可以简单地添加一个包含新版本的存储库(如果有)。有一个主题这里来自一个旧的 askUbuntu 问题,可能会帮助您做到这一点。

当您在存储库中找不到它时,有时您可以下载.deb文件自行安装,甚至编译源代码。

相关内容