OPKG Package Manager Update Command Fails in NI Linux Real-Time

Updated Jun 14, 2021

Reported In

Software

  • SystemLink

Operating System

  • NI Linux Real-Time

Issue Details

When running the opkg update command on NI hardware running NI Linux Real-Time, one of the following error messages are displayed:

  • When accessing download.ni.com feeds

Downloading http://download.ni.com/ni-linux-rt/feeds/<location of feed>/Packages.gz
Collected errors: 
* opkg_download_backend: Failed to download http://download.ni.com/ni-linux-rt/feeds/<location of feed>/Packages.gz, wget returned 1.

OPKG Update failure - no network connection

  • When accessing locally hosted feeds: 

Downloading http://<Local Feed address>/nirepo/vl/files/feeds/uri-all-0/Packages.gz
Collected errors:
* opkg_validate_cached_file: Failed to download http://<Local Feed address>/nirepo/vl/files/feeds/uri-all-0/Packages.gz headers: Timeout was reached.

OPKGUpdateFailed-SystemLinkOfflineReplicated Feeds

Solution

The error message suggests potential network issues. To solve the problem, try some of these steps:

  • Verify your NI Linux Real-Time controller is connected to the network and has internet access. Run the ping download.ni.com command on the controller to test the connection with the download site.
    • If this step fails, check the Network Settings of the controller in NI MAX to make sure the controller is able to connect to download.ni.com.
  • Format the controller with the latest version of the NI Linux RT base image.
  • As workaround, run an offline installation of the software.
  • If using SystemLink and a replicated offline feed, review the settings in NI Web Server Configuration are correct. In particular, if using a Public Network, enable Also accept connections from public networks or change the connection in Windows to a different profile e.g. Private, Work or Home. NI Web Server Configuration - Allow Public Networks