zoukankan      html  css  js  c++  java
  • 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 来验证安装

  • 相关阅读:
    要坚持的好习惯
    Attribute与Property关系
    浅谈ES6中super关键字
    JS权威指南读书笔记(七)
    JS权威指南读书笔记(六)
    JS权威指南读书笔记(五)
    JS权威指南读书笔记(四)
    函数
    对象
    数值
  • 原文地址:https://www.cnblogs.com/ainima/p/6331455.html
Copyright © 2011-2022 走看看