【问题标题】:how to install debian package from unsigned repository如何从未签名的存储库安装 debian 软件包
【发布时间】:2018-03-15 17:24:53
【问题描述】:

尝试从未签名的存储库将 Debian 软件包安装到 Debian 9:

# apt-get --allow-unauthenticated update
Get:1 http://files.freeswitch.org/repo/deb/freeswitch-1.8 stretch InRelease [3,196 B]
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Ign:1 http://files.freeswitch.org/repo/deb/freeswitch-1.8 stretch InRelease
Ign:3 http://debianmirror.nkn.in/debian stretch InRelease
Hit:4 http://debianmirror.nkn.in/debian stretch Release
Fetched 3,196 B in 1s (1,940 B/s)
Reading package lists... Done
W: GPG error: http://files.freeswitch.org/repo/deb/freeswitch-1.8 stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BD3189F5A2B57698
W: The repository 'http://files.freeswitch.org/repo/deb/freeswitch-1.8 stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

但我需要它。我该怎么做?谢谢!

【问题讨论】:

    标签: debian apt deb


    【解决方案1】:

    在不可信存储库的 sources.list 条目中,您可以在条目的前两个元素之间添加“[trusted=yes]”(带方括号),如deb [trusted=yes] http://...

    这会将错误变成警告,因为它在过去的 Debian 版本中一直是默认设置,而无需完全禁用签名验证

    【讨论】:

    • 找不到sources.list的可以在/etc/apt/找到
    【解决方案2】:

    如果这对某人有帮助,您可以使用以下命令从命令行安装一个 deb 文件:

    sudo dpkg -i {filename}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-03
      • 2012-02-15
      • 2018-05-21
      • 2017-12-30
      • 1970-01-01
      • 2018-02-07
      • 2019-12-11
      相关资源
      最近更新 更多