I'm trying to install gcc on openwrt with the following command:
opkg install gcc
But it gives me the following error:
/bin/ash: gcc: not found
root#OpenWrt:/mp1# opkg install gcc
Unknown package 'gcc'.
Collected errors:
* opkg_install_cmd: Cannot install package gcc.
I tried updating opkg using opkg update, but I get the following:
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
How do I fix this?
I am fairly sure you do not have an internet connection or your DNS is somehow messed up and does not resolve 'downloads.openwrt.org' to an IP address.
You could try to ping 8.8.8.8 and see whether you have a working internet connection. Then attempt to ping google.com (or host downloads.openwrt.org) to see whether your DNS is working properly.
Alternatively, I am fairly sure you can build an OpenWRT image with GCC yourself. Here's a good tutorial on how you can do it: https://openwrt.org/docs/guide-developer/quickstart-build-images
Related
when cargo install cargo-generate get an error error: failed to fetch https://github.com/rust-lang/crates.io-index%60
during carry out this command,i get a warning :warning: spurious network error (2 tries remaining): [28] Timeout was reached (Connection timeout after 30004 ms); class=Net (12)
then give a error:
cargo install micro-http
Updating crates.io index
warning: spurious network error (2 tries remaining): [28] Timeout was reached (Connection timeout after 30004 ms); class=Net (12)
warning: spurious network error (1 tries remaining): [28] Timeout was reached (Connection timeout after 30001 ms); class=Net (12)
error: failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
[28] Timeout was reached (Connection timeout after 30004 ms); class=Net (12)
i can visit github.com ,and i refix my rustup to the newest version;but all these methods do not work, who can help me fix this;
i can use my M1 mac to fix cargo-generate, who can tell me which aspect i meet,thank you very much
I have solve my problem
git config --list
lookup my git config ,i find i have set a proxy for git,like this:
proxy='xxxx.xxx'
i carry out git config unset proxy to cancel my proxy
then i fix my problem
I am building a docker image where I have unpacked sbt 1.8.2. However I am getting this kind of error:
[info] [launcher] getting org.scala-sbt sbt 1.8.2 (this may take some time)...
15:36:27 # [error] [launcher] xsbt.boot.internal.shaded.coursier.error.ResolutionError$CantDownloadModule: Error downloading org.scala-sbt:sbt:1.8.2
15:36:27 # not found: /root/.ivy2/local/org.scala-sbt/sbt/1.8.2/ivys/ivy.xml
15:36:27 # download error: Caught java.net.ConnectException (Connection timed out) while downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.8.2/sbt-1.8.2.pom
15:36:27 # download error: Caught java.net.ConnectException (Connection timed out) while downloading https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.8.2/sbt-1.8.2.pom
15:36:27 # download error: Caught java.net.ConnectException (Connection timed out) while downloading https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.8.2/sbt-1.8.2.pom
15:36:27 # download error: Caught java.net.ConnectException (Connection timed out) while downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.8.2/ivys/ivy.xml
15:36:27 # download error: Caught java.net.ConnectException (Connection timed out) while downloading https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/1.8.2/ivys/ivy.xml
15:36:27 # [error] [launcher] could not retrieve sbt 1.8.2
15:36:27 not ok 20 sbt version
I have already my openjdk 17 installed in my docker image.
I'm trying to install Rancher in AKS, but unfortunately I'm not able to reach the rancher pod.
When I check the pod logs, I see the following error messages:
2023/01/28 20:22:50 [ERROR] error parsing azure-group-cache-size, skipping update strconv.Atoi: parsing "": invalid syntax
...
/01/28 20:22:50 [ERROR] failed to cleanup orphan catalog bindings
..
failed to sync cache for rke-machine-config.cattle.io/v1, Kind=VmwarevsphereConfig E0128 20:22:51.712910 34 reflector.go:139] pkg/mod/github.com/rancher/client-go#v1.24.0-rancher1/tools/cache/reflector.go:168: Failed to watch *unstructured.Unstructured: Get "https://10.0.0.1:443/apis/rke-machine-config.cattle.io/v1/vmwarevsphereconfigs?allowWatchBookmarks=true&resourceVersion=112947&timeout=9m58s&timeoutSeconds=598&watch=true": context canceled
2023/01/28 20:22:51 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=Cluster
2023/01/28 20:22:51 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineSet
2023/01/28 20:22:51 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineHealthCheck
....
2023/01/28 20:23:05 [ERROR] error syncing 'cattle-fleet-system/helm-operation-l496h': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-l496h), requeuing
I've followed these instructions:
https://ranchermanager.docs.rancher.com/v2.5/getting-started/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster/rancher-on-aks
https://ranchermanager.docs.rancher.com/v2.5/pages-for-subheaders/install-upgrade-on-a-kubernetes-cluster#install-the-rancher-helm-chart
Any idea what could be the issue? Many thanks in advance for your help
I did the setup of the Cosmos DB emulator on the local machine, and started with the following parameters:
/port=443 /AllowNetworkAccess /Key=<CosmosPrimaryKey>
And currently, it is accessible via https://<LocalMachineIP>/
When I tried to make a curl request from the docker Redhat container (using docker image: confluentinc/cp-kafka-connect) it throws the below error:
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
And when trying to crate cosmos DB source connector it throws the below error:
[20 10:37:45,018] ERROR Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java (com.azure.cosmos.implementation.RxDocumentClientImpl)
[2022-05-20 10:37:45,079] ERROR unexpected failure in initializing client. (com.azure.cosmos.implementation.RxDocumentClientImpl)
java.lang.RuntimeException: Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java
at com.azure.cosmos.implementation.RxDocumentClientImpl.initializeGatewayConfigurationReader(RxDocumentClientImpl.java:401)
.......
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
[2022-05-20 10:37:45,095] WARN [8e2a220b, L:/172.25.0.6:57076 ! R:/192.168.154.131:443] The connection observed an error (reactor.netty.http.client.HttpClientConnect)
shaded.io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:477)
..........
at shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
.........
at shaded.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1283)
at shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507)
at shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446)
... 17 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)
.....................
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1335)
... 31 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)
... 37 more
I have exported the cosmos emulator .cer file using this article.
How to install it in the Docker container "kafka-connect"?
Can you post your curl request?
You need to use the -k flag to denote that it’s insecure.
curl -k https://{emulatoripaddr}:8081/_explorer/emulator.pem > emulatorcert.crt
It needs to be .crt
Then copy it to
/usr/local/share/ca-certificates/
Then install it
update-ca-certificates
Additionally you can mount a volume to the cosmos folder and save the .pem manually… /tmp/cosmos/appdata
I tried to install Cocoapods Facebook-iOS-SDK but i am getting the following error
Installing Facebook-iOS-SDK (3.12.0)
[!] Pod::Executable remote update
Fetching origin
fatal: unable to access 'https://github.com/facebook/facebook-ios-sdk.git/': Failed connect to github.com:3128; Operation timed out
error: Could not fetch origin
thanks