OpenWrt opkg 更新签名校验失败

OpenWrt opkg 更新签名校验失败

我有一台 TP-Link 路由器。TL-WDR4300。我已经在其中设置了 OpenWrt 环境。

版本详细信息如下:

Linux 版本 4.4.14 (alex@AlexPC) (gcc 版本 5.3.0 (OpenWrt GCC 5.3.0 50108) )

我使用了以下命令

 root@OpenWrt:~# opkg update


Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/Packages.gz.
Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/Packages.sig.
 Signature check failed.
Remove wrong Signature file.
Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/kernel/Packages.gz.
Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/kernel/Packages.sig.
Signature check failed.
 Remove wrong Signature file.
 Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/Packages.gz.
Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management/Packages.gz.
  Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management/Packages.sig.
Signature check failed.
  Remove wrong Signature file.
 Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/Packages.gz.
 Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/Packages.sig.
 Signature check failed.
 Remove wrong Signature file.
 Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing/Packages.gz.
 Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing/Packages.sig.
 Signature check failed.
  Remove wrong Signature file.
  Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony/Packages.gz.
  Downloading "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony/Packages.sig.
  Signature check failed.
  Remove wrong Signature file.




   Collected errors:
      * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/Packages.gz, wget returned 8.
   * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/Packages.sig, wget returned 8.
    * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/kernel/Packages.gz, wget returned 8.
       * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/kernel/Packages.sig, wget returned 8.
    * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/Packages.gz, wget returned 8.
    * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/Packages.sig, wget returned 8.
     * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management/Packages.gz, wget returned 8.
    * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management/Packages.sig, wget returned 8.
    * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/Packages.gz, wget returned 8.
   * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/Packages.sig, wget returned 8.
   * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing/Packages.gz, wget returned 8.
   * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing/Packages.sig, wget returned 8.
   * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony/Packages.gz, wget returned 8.
   * opkg_download: Failed to download "http"://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony/Packages.sig, wget returned 8.

有人能解决这个问题吗

答案1

这是我在 Orbi 上实现此功能的方法:

sed -i -re 's/^(option check_signature.*)/#\1/g' /etc/opkg.conf
mv /usr/bin/wget /usr/bin/wget.bin

然后创建在 /usr/bin/wget 中内容如下:

#!/bin/sh
/usr/bin/wget.bin --no-check-certificate "$@"

最后chmod + x /usr/bin/wget

root@SRR60:/etc/ssl/certs# opkg update
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.

相关内容