NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

'opkg update' failed on myrio-1900

Hi. I am encountering a problem when I run the 'opkg update' command through SSH on my MyRIO-1900.. The output is as follows. The software set installed on the MyRIO is Labview Real Time 19.0 - NI MyRIO 19.5 September 2019

 

admin@myrio1900oee:~# sudo opkg update
Downloading https://download.ni.com/ni-linux-rt/feeds/2019.1/arm/all/Packages.gz.
Downloading https://download.ni.com/ni-linux-rt/feeds/2019.1/arm/cortexa9-vfpv3/Packages.gz.
Downloading https://download.ni.com/ni-linux-rt/feeds/2019.1/arm/xilinx-zynq/Packages.gz.
Collected errors:
* opkg_validate_cached_file: Failed to download https://download.ni.com/ni-linux-rt/feeds/2019.1/arm/all/Packages.gz headers: Peer certificate cannot be authenticated with given CA certificates.
* opkg_validate_cached_file: Failed to download https://download.ni.com/ni-linux-rt/feeds/2019.1/arm/cortexa9-vfpv3/Packages.gz headers: Peer certificate cannot be authenticated with given CA certificates.
* opkg_validate_cached_file: Failed to download https://download.ni.com/ni-linux-rt/feeds/2019.1/arm/xilinx-zynq/Packages.gz headers: Peer certificate cannot be authenticated with given CA certificates.

 

I have limited knowledge in terms of Linux. If anyone can point me in the right direction, it will be very helpful. Thanks.

0 Kudos
Message 1 of 6
(569 Views)

These types of issues can be caused by the network configuration. If you are using a corporate/school network, the administrators may be blocking certain types of traffic. They do this for legitimate security reasons. Unfortunately it can cause some network operations to fail. If you have access to another network, it is worth connecting the computer and MyRIO to it and see if it works. A home internet connection is a good example.

David Corney
Message 2 of 6
(542 Views)

Hi AustinManinTown,

 

Thanks for the insight. I did try using my home network but the problem still occurs.

 

I tried removing the Real Time 2019 and installed Real Time 2017 software on the MyRIO. When I ran the 'opkg update' command, there was no error. Is there something different between the 2017 and 2019 version of Real Time software?

 

Thanks for all the help.

0 Kudos
Message 3 of 6
(521 Views)

Linux actually has a big community so you can find a lot of help, even unrelated to cRIO.

 

I suggest you checked this article, might be helpful: https://groups.google.com/g/opkg-devel/c/Q5aRt0nQRmk?pli=1

 

Or try to write to NI support.

0 Kudos
Message 4 of 6
(496 Views)

Hi Thomas444.

 

Thanks for the suggestion. I think I have found a temporary solution that works for me. I've downgraded the Real Time version on myRIO from 19.5 to 19.0 and I can run 'opkg update' without any problems.

 

Thanks for all the help. So glad this community is awesome and helpful.

 

Thanks.

0 Kudos
Message 5 of 6
(492 Views)

I had this same issue on several cRIO-9047's.  Turns out the problem was the date was so far off on the cRIO internal clock that the security certificates returned as expired (The internal date/time was somewhere in 2022 and the 2021 certificates were seen as expired).

Setting the correct date/time on the cRIO fixed the issue.

Wanted to reply with my solution in case this hit someone else down the road.

0 Kudos
Message 6 of 6
(120 Views)