Debian Package 管理问题

首先APT的使用参考:http://www.mayin.org/ajayshah/COMPUTING/debian-principles.html 

因为系统是使用DVD光盘安装的,所以每次使用apt-get update的时候都不会去网络上更新packages信息,导致的结果就是无法安装新的软件,安装的都是光盘上的比较旧的。

比如我要安装kerberos5,而光盘上的就是kerberos4。版本4是有明显的安全问题的。

如何解决呢?

$ cp /etc/apt/sources.list /etc/apt/sources.list.back
$ vim /etc/apt/sources.list

把之前的都删除,改为:

  # See sources.list(5) for more information
  deb http://http.us.debian.org/debian stable main contrib non-free
  deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
  deb http://security.debian.org stable/updates main contrib non-free

  deb http://http.us.debian.org/debian testing main contrib non-free
  deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
  deb http://security.debian.org testing/updates main contrib non-free

或许你的stable版本,那就用“Example - stable”

OK,现在就可以安装新版本了

$ apt-get update
$ apt-get krb5*

最后可以用 # dpkg -l 来验证安装

posted on 2007-12-29 02:16  爱你一万年123  阅读(298)  评论(0编辑  收藏  举报

导航