博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
kali 更新源 sources.list以及apt-get 相关命令说明
阅读量:5907 次
发布时间:2019-06-19

本文共 3252 字,大约阅读时间需要 10 分钟。

hot3.png

一、设置更新源

网上给出的更新源,只有新加坡的更新源是可以更新到源文件的。其他国内源可以作为补充,不过新加坡的源速度也不是很快。

更多环境配置内容,可以参考在线视频:

#官方源

deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free 
#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
#新加坡kali源
deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
deb-src http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
#debian_wheezy国内源

deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib

deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib 
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib 
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib 
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib 
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib 
deb http://mirrors.163.com/debian wheezy main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy main non-free contrib 
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib 
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib 
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib

二、更新

对软件进行一次整体更新:

apt-get update 

apt-get upgrade

apt-get dist-upgrade 

apt-get clean

三、关于apt-get相关命令说明

070755_6xB3_2308739.png

四、update upgrade dist-upgrade区别与联系

update是第一步找出哪些需要升级

upgrade:系统将现有的Package升级,如果有相依性的问题,而此相依性需要安装其它新的

Package或影响到其它Package的相依性时,此Package就不会被升级,会保留下来. 

dist-upgrade:可以聪明的解决相依性的问题,如果有相依性问题,需要安装/移除新的Package,

就会试着去安装/移除它. 

(所以通常这个会被认为是有点风险的升级) 

 

apt-get upgrade 和 apt-get dist-upgrade 本质上是没有什么不同的。

 

只不过,dist-upgrade 

会识别出当依赖关系改变的情形并作出处理,而upgrade对此情形不处理。

upgrade: 

upgrade is used to install the newest versions of all packages currently installed on the 

system from the sources enumerated in /etc/apt/sources.list. Packages currently 

installed with new versions available are retrieved and upgraded; under no 

circumstances are currently installed packages removed, or packages not already 

installed retrieved and installed. New versions of currently installed packages 

that cannot be upgraded without changing the install status of another package 

will be left at their current version. 

An update must be performed first so that 

apt-get knows that new versions of packages are available. 

dist-upgrade: dist-upgrade in addition to performing 

the function of upgrade, also intelligently handles changing dependencies with 

new versions of packages; apt-get has a "smart" conflict resolution system, and 

it will attempt to upgrade the most important packages at the expense of less

转载于:https://my.oschina.net/u/2308739/blog/548769

你可能感兴趣的文章
2463: [中山市选2009]谁能赢呢?
查看>>
走进JavaScript之this篇
查看>>
一堂课弄懂区块链、比特币和ICO|刘润老师直播笔记整理
查看>>
vue写一个公用弹出框
查看>>
浅谈synchronized、Lock、ThreadLocal和semaphore
查看>>
Day1 - 前端高频面试题之基础版
查看>>
分布式系统面试题:分布式事务解决方案?
查看>>
SonarQube的安装、配置与使用(windows)
查看>>
String的可改变性
查看>>
UIButton详解
查看>>
Oracle中创建触发器示例及注意事项
查看>>
cogs 1962. [HAOI2015]树上染色
查看>>
前端css编写规范
查看>>
带通配符的字符串匹配
查看>>
java.util.ArrayList源码分析
查看>>
包裹系统编写以及过程中发现的错误
查看>>
nc-sim (irun)和verdi ncverilog,
查看>>
1169: 零起点学算法76——绝对公正的裁判
查看>>
UITableViewController
查看>>
docker
查看>>