我正在尝试使用以下命令在openwrt上安装gcc:
opkg install gcc
但它给出了以下错误:
/bin/ash: gcc: not found
root@OpenWrt:/mp1# opkg install gcc
Unknown package 'gcc'.
Collected errors:
* opkg_install_cmd: Cannot install package gcc.
我尝试使用opkg update
更新opkg,但得到以下结果:
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packagez
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packageo
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packaget
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/packages
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/b
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/0
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/c
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/u
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
* opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/1
我该如何解决这个问题?
发布于 2020-02-04 21:55:26
我非常确定你没有互联网连接,或者你的域名系统不知何故搞砸了,无法将“downloads.openwrt.org”解析为IP地址。
你可以尝试ping 8.8.8.8
,看看你是否有一个正常的互联网连接。然后尝试ping google.com
(或host downloads.openwrt.org
)查看您的DNS是否工作正常。
或者,我非常确定您可以自己使用GCC构建OpenWRT镜像。这里有一个很好的教程,教你如何做到这一点:https://openwrt.org/docs/guide-developer/quickstart-build-images
https://stackoverflow.com/questions/59922880
复制相似问题