Error 1 Returned by OPKG Package Manager Install Command on Linux

Updated Oct 30, 2023

Reported In

Operating System

  • Linux

Other

  • OPKG Package Manager

Issue Details

  • When using the OPKG install command on my cRIO-9045, the command returned 1. How can I fix this?
  • I created a cRIO image using the Replication and Deployment (RAD) Utility and need to install it via OPKG. Usually, this works, but on some cRIOs, I receive the error below. How do I resolve this?
  • I am trying to install a package on my Linux target using the OPKG Package Manager command install. However, the shell keeps returning the following error message:
* pkg_run_script: package “<appname>” postinst script returned status 1
* opkg_configure: <appname>.postinst returned 1

Solution

OPKG Package Manager can return a value of 1 for a number of reasons. Follow the troubleshooting steps below to resolve this issue:
  1. Increase the OPKG Verbosity level to 3 or 4 to obtain a detailed debug log of the command.
  2. After, repeat the install command and investigate the debug log to determine which stage of the installation fails.
    • If the debug log fails at a particular package, verify whether that package is compatible with the real-time target.
  3. Verify that all software packages are compatible with the target.