美文网首页我爱编程
Kali Linux apt-get 更新出错

Kali Linux apt-get 更新出错

作者: Atamding | 来源:发表于2018-06-20 22:21 被阅读104次

apt-get upgrade 出现如下报错

root@bogon:/etc/apt#  apt-get update && apt-get upgrade && apt-get dist-upgrade


Ign:1http://mirrors.ustc.edu.cn/kalikali InReleaseIgn:2http://mirrors.ustc.edu.cn/kali-security kali/updates InReleaseErr:3http://mirrors.ustc.edu.cn/kalikali Release404Not Found [IP:218.104.71.17080]Err:4http://mirrors.ustc.edu.cn/kali-security kali/updates Release404Not Found [IP:218.104.71.17080]Reading package lists... DoneE:The repository'http://mirrors.ustc.edu.cn/kali kali Release'doesnothave a Release file.N:Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

E: The repository 'http://mirrors.ustc.edu.cn/kali-security kali/updates Release' does not have a Release file.

N: Updating from such a repository can't be done securely,andis therefore disabled by default.N:See apt-secure(8) manpageforrepository creationanduser configuration details.

![](http://i2.51cto.com/102?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

解决方案

vim /etc/apt/sources-list    #Edit apt-get source list file

输入以下官方源

debhttp://http.kali.org/kali kali-rolling main contrib non-free 

deb http://old.kali.org/kali sana main non-free contrib

或者浙江大学源

deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free

deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free

尝试再次更新 :

root@bogon:/etc/apt# apt-get update


Get:1http://mirrors.neusoft.edu.cn/kalikali-rolling InRelease [30.5kB]Get:2http://old.kali.org/kalisana InRelease [20.3kB]Get:3http://mirrors.neusoft.edu.cn/kalikali-rolling/main amd64 Packages [15.6MB]Get:4http://old.kali.org/kalisana/main amd64 Packages [12.8MB]Get:5http://mirrors.neusoft.edu.cn/kalikali-rolling/contrib amd64 Packages [112kB]Get:6http://mirrors.neusoft.edu.cn/kalikali-rolling/non-free amd64 Packages [165kB]Get:7http://old.kali.org/kalisana/non-free amd64 Packages [163kB]Get:8http://old.kali.org/kalisana/contrib amd64 Packages [87.7kB]                                                                                                                                                                                                        Fetched29.0MBin10min44s (45.0kB/s)                                                                                                                                                                                                                                    Reading package lists... Done

更新命令:

apt-get update && apt-get upgrade && apt-get dist-upgrade

问题二:

无法更新源第二种问题:

root@Sec:~#  apt-get update --fix-missing


Ign:1http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 InRelease  Hit:3http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 Release    Get:2http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease [30.5 kB]                           Hit:5http://old.kali.org/kali sana InRelease                                                            Err:2http://mirrors.neusoft.edu.cn/kali kali-rolling InReleaseThe following signatures were 

invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository Err:5http://old.kali.org/kali sana InReleaseThe following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository Fetched30.5kB in1s (19.9kB/s)Reading package lists... DoneW: An error occurred during the signature verification. The repository is not updatedandthe previous index files will be used. GPG error: http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository W: An error occurred during the signature verification. The repository is not updatedandthe previous index files will be used. GPG error: http://old.kali.org/kali sana InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository W: Failed to fetch http://old.kali.org/kali/dists/sana/InRelease  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository W: Some index files failed to download. They have been ignored,orold ones used instead.

经过百度发现是key过期了 需要重新添加,执行如下命令:

root@Sec:~# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

再次更新发现恢复正常

root@Sec:~# apt-get update --fix-missingIgn:1http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0InReleaseHit:2http://old.kali.org/kalisana InReleaseHit:4http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0ReleaseGet:3http://mirrors.neusoft.edu.cn/kalikali-rolling InRelease [30.5kB]Get:6http://mirrors.neusoft.edu.cn/kalikali-rolling/main amd64 Packages [16.0MB]Get:7http://mirrors.neusoft.edu.cn/kalikali-rolling/contrib amd64 Packages [101kB]Get:8http://mirrors.neusoft.edu.cn/kalikali-rolling/non-free amd64 Packages [166kB]                                                                      Fetched16.3MBin18s (884kB/s)                                                                                                                          Reading package lists... Done

相关文章

网友评论

    本文标题:Kali Linux apt-get 更新出错

    本文链接:https://www.haomeiwen.com/subject/hylfyftx.html