无法找到软件包 openvas - Kali Linux

无法找到软件包 openvas - Kali Linux

我一直在尝试在 Kali Linux 上安装 OpenVas

我沒有幸運。

我尝试用谷歌搜索,找到了这个链接

https://iamjagjeetubhi.wordpress.com/2017/04/10/fix-unable-to-locate-package-error-in-kali-linux/

我打开它sources.list,并按照建议添加这些。

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali sana main non-free contrib
# deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
deb http://old.kali.org/kali moto main non-free contrib
# For source package access, uncomment the following line
# deb-src http://old.kali.org/kali moto main non-free contrib

我运行了更新,发现有很多错误

root@kali:/etc/apt# apt-get update
Err:1 http://old.kali.org/kali moto InRelease
  503  Service Unavailable [IP: 54.39.49.227 80]
Err:2 http://security.kali.org/kali-security sana/updates InRelease
  503  Service Unavailable [IP: 192.99.200.113 80]
Err:3 http://http.kali.org/kali kali-rolling InRelease                                                                      
  503  Service Unavailable [IP: 192.99.200.113 80]                                                                          
Err:4 http://http.kali.org/kali sana InRelease                                                                              
  503  Service Unavailable [IP: 192.99.200.113 80]                                                                          
Reading package lists... Done                                                                                               
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  503  Service Unavailable [IP: 192.99.200.113 80] 
W: Failed to fetch http://http.kali.org/kali/dists/sana/InRelease  503  Service Unavailable [IP: 192.99.200.113 80]         
W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/InRelease  503  Service Unavailable [IP: 192.99.200.113 80]                                                                                                                
W: Failed to fetch http://old.kali.org/kali/dists/moto/InRelease  503  Service Unavailable [IP: 54.39.49.227 80]            
W: Some index files failed to download. They have been ignored, or old ones used instead.                                   
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17                                                                                                                    
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17                                                                                                                      
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17                                                                                                               
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17                                                                                                                  
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:17

有人可以帮忙吗?

答案1

您收到几条警告消息,指出软件包在/etc/apt/sources.list

  1. sudoedit在 Kali Linux 中默认在终端中打开 nano 编辑器。/etc/apt/sources.list在 nano 编辑器中打开进行编辑:

    sudoedit /etc/apt/sources.list  
    
  2. 通过在每 4 条新行前面添加一个字符来注释掉您添加到 sources.list 中的 4 条新行#

    deb http://http.kali.org/kali kali-rolling main contrib non-free  
    deb http://http.kali.org/kali sana main non-free contrib  
    deb http://security.kali.org/kali-security sana/updates main contrib non-free  
    deb http://old.kali.org/kali moto main non-free contrib   
    
  3. 找到所有剩余的重复行,并通过在每个重复行前面添加一个字符来注释掉它们#。不要注释掉两个重复行,只需注释掉两个重复行中的一行即可删除警告消息。

  4. 使用键盘组合键Ctrl+ O,然后按下Enter将 sources.list 文件保存到当前位置。使用键盘组合键Ctrl+X退出 nano。

  5. 通过更新可用软件列表来启用 sources.list 中的更改。

    sudo apt update 
    

openvas是一个元软件包,它会随自身一起安装一些 Debian 软件包。要安装所有这些软件包,请打开终端并输入:

sudo apt install greenbone-security-assistant openvas-cli openvas-manager openvas-scanner rsync sqlite3 xsltproc

相关内容