我正在尝试使用安装在 Kali 虚拟机中的 iso 将 Kali Linux 从 2017.2 升级到 2018.2。
所以,我所做的是将我的sources.list文件编辑为:
deb file:///media/cdrom0 kali-rolling main contrib non-free
Run Code Online (Sandbox Code Playgroud)
并使用# 注释其他行。
现在,每当我尝试时apt-get update,我都会得到:
E: The repository 'file:/media/cdrom0 kali-rolling Release' is not signed.
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.
Run Code Online (Sandbox Code Playgroud)
Gia*_*968 47
根据Debian 手册页apt-get,您可以使用如下--allow-unauthenticated选项:
apt-get update --allow-unauthenticated
Run Code Online (Sandbox Code Playgroud)
正如手册页条目所--allow-unauthenticated解释的那样:
如果包无法通过身份验证,请忽略并且不提示。这在使用本地存储库时很有用,但如果用户本身无法以其他方式确保数据真实性,则会带来巨大的安全风险。对于sources.list(5) 条目使用Trusted 选项通常应该优先于这个全局覆盖。配置项:APT::Get::AllowUnauthenticated。
如果这不起作用,请尝试--allow-insecure-repositories像这样运行它:
apt-get update --allow-insecure-repositories
Run Code Online (Sandbox Code Playgroud)
小智 16
你应该告诉 apt 这是一个可信的来源:
deb [trusted=yes] file:/media/cdrom0 kali-rolling main contrib non-free
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
163147 次 |
| 最近记录: |