在 ubuntu 9.04 上安装 libapache2-svn 时出现以下错误。
root@....:~/install_scripts# apt-get install libapache2-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libapache2-svn
root@......:~/install_scripts#
这是我的 /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
/etc/lsb-release 的内容
root@....:~/install_scripts# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"
我尝试在 /etc/apt/sources.list 中用“jaunty”替换“hardy”,但没有成功(我对 ubuntu 中的 karma/hardy/jaunty/kaola 等感到困惑)。
如果您知道的话,请告诉我解决方法。
谢谢
J.P
注意:subversion和许多其他软件安装良好:
root@....:~/install_scripts# apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
subversion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
答案1
解决了:
/etc/apt/sources.list 中的“hardy”肯定需要“jaunty”。另外,我必须这样做
apt-get update;
apt-get upgrade;
以使更改受到影响。