LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linux(Ubuntu) encountered 'E: Unable to Locate packge ni-hwcfg-utilit' error. Help me.

Hi, I am trying to install LabVIEW and driver on Linux(Ubuntu).

 

When installing the driver, I tried to install it as instructed by the link below.

 

 

https://www.ni.com/en-us/support/documentation/supplemental/18/downloading-and-installing-ni-driver-... 

 

 

And, I finished the previous five courses and tried to enter the following command

 

------------------------------------------------------------------------------------------------------

 

6. Use your distribution’s package manager to download and install the desired driver packages.

 

Package names can be found in the NI Linux Device Drivers readme.

Some drivers require multiple packages so be sure to look in the readme for each driver you want to install. sudo apt install Example (NI-Scope requires two packages): sudo apt install ni-scope sudo apt install ni-scope-daqmx (Recommended) sudo apt install ni-hwcfg-utility

 

------------------------------------------------------------------------------------------------------

 

However, when I entered the command 'sudo apt install ni-hwcfg-utility', the following error occurred.

 

 

Reading package lisis... Done

Building dependency tree Reading state information... Done

E: Unable to locate package ni-hwcfg-utility

 

 

also, The same error was also printed when trying to install 'ni-visa' or 'ni-daqmx'.

 

 

What's the problem? I can't solve it by myself.

 

Thank you.

0 Kudos
Message 1 of 8
(2,925 Views)
Hi, I am trying to install LabVIEW and driver on Linux(Ubuntu). When installing the driver, I tried to install it as instructed by the link below. https://www.ni.com/en-us/support/documentation/supplemental/18/downloading-and-installing-ni-driver-... And, I finished the previous five courses and tried to enter the following command ------------------------------------------------------------------------------------------------------ 6. Use your distribution’s package manager to download and install the desired driver packages. Package names can be found in the NI Linux Device Drivers readme. Some drivers require multiple packages so be sure to look in the readme for each driver you want to install. sudo apt install Example (NI-Scope requires two packages): sudo apt install ni-scope sudo apt install ni-scope-daqmx (Recommended) sudo apt install ni-hwcfg-utility ------------------------------------------------------------------------------------------------------ However, when I entered the command 'sudo apt install ni-hwcfg-utility', the following error occurred. Reading package lisis... Done Building dependency tree Reading state information... Done E: Unable to locate package ni-hwcfg-utility also, The same error was also printed when trying to install 'ni-visa' or 'ni-daqmx'. What's the problem? I can't solve it by myself. Thank you.
0 Kudos
Message 2 of 8
(2,913 Views)

Hi, I am trying to install LabVIEW and driver on Linux(Ubuntu).

 

When installing the driver, I tried to install it as instructed by the link below.

 

 

https://www.ni.com/en-us/support/documentation/supplemental/18/downloading-and-installing-ni-driver-... 

 

 

And, I finished the previous five courses and tried to enter the following command

 

------------------------------------------------------------------------------------------------------

 

6. Use your distribution’s package manager to download and install the desired driver packages.

 

Package names can be found in the NI Linux Device Drivers readme.

Some drivers require multiple packages so be sure to look in the readme for each driver you want to install. sudo apt install Example (NI-Scope requires two packages): sudo apt install ni-scope sudo apt install ni-scope-daqmx (Recommended) sudo apt install ni-hwcfg-utility

 

------------------------------------------------------------------------------------------------------

 

However, when I entered the command 'sudo apt install ni-hwcfg-utility', the following error occurred.

 

 

Reading package lisis... Done

Building dependency tree Reading state information... Done

E: Unable to locate package ni-hwcfg-utility

 

 

also, The same error was also printed when trying to install 'ni-visa' or 'ni-daqmx'.

 

 

What's the problem? I can't solve it by myself.

 

Thank you.

0 Kudos
Message 3 of 8
(2,927 Views)

The post was duplicated due to a homepage error.

 

Please reply from the link below.

 

https://forums.ni.com/t5/LabVIEW/Linux-Ubuntu-encountered-E-Unable-to-Locate-packge-ni-hwcfg/m-p/425... 

 

I'm sorry.

0 Kudos
Message 4 of 8
(2,917 Views)

Hello  MIKA2743

Did yo try to update your Package Manager? NI Package Manager can encounter issues with locating dependencies. This can be circumvented by installing the full offline installer from ni.com.

If the offline installer does not solve the problem, update NI Package Manager to the latest version available.

 

 

___________________________

Best regards Lyudvig Hovsepyan

0 Kudos
Message 5 of 8
(2,854 Views)

Is there a NI Package Manager in LabVIEW installed by Ubuntu?

0 Kudos
Message 6 of 8
(2,827 Views)

Actually no, I have checked that after your replay. You can check it from here "Supported OS".

It might be connected with NI Linux Device Drivers, if you don't have that install it, if you have that driver uninstall and reinstall it and only after that try download NI drivers from link that you have attached in your post.

I am attaching the link for downloading NI Linux Device Drivers.

0 Kudos
Message 7 of 8
(2,798 Views)

Hi, I got this message  when I ran:

sudo apt install ni-hwcfg-utility in a linux ubuntu 22.04 LTS.

 could somebody help me?

DKMS make.log for ni-sync-pxi6683-24.3 for kernel 6.8.0-50-generic (x86_64)
do 2 jan 2025 14:57:28 CET
make -C /lib/modules/6.8.0-50-generic/build M=/var/lib/dkms/ni-sync-pxi6683/24.3/build/src MODNAME=nisync modules NISYNC_COMPAT_ERRORS=1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-50-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_main.o
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.o
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:79:6: warning: no previous prototype for ‘_nisync_hardware_clock_get_time’ [-Wmissing-prototypes]
79 | void _nisync_hardware_clock_get_time(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:97:5: warning: no previous prototype for ‘nisync_hardware_clock_get_time’ [-Wmissing-prototypes]
97 | int nisync_hardware_clock_get_time(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:112:5: warning: no previous prototype for ‘_nisync_hardware_clock_reset_time’ [-Wmissing-prototypes]
112 | int _nisync_hardware_clock_reset_time(struct nisync_hardware_clock *clk)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:135:5: warning: no previous prototype for ‘_nisync_hardware_clock_adjust_time’ [-Wmissing-prototypes]
135 | int _nisync_hardware_clock_adjust_time(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:165:5: warning: no previous prototype for ‘_nisync_hardware_clock_set_time’ [-Wmissing-prototypes]
165 | int _nisync_hardware_clock_set_time(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:179:5: warning: no previous prototype for ‘nisync_hardware_clock_set_time’ [-Wmissing-prototypes]
179 | int nisync_hardware_clock_set_time(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:195:5: warning: no previous prototype for ‘nisync_hardware_clock_adjust_time’ [-Wmissing-prototypes]
195 | int nisync_hardware_clock_adjust_time(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:290:5: warning: no previous prototype for ‘nisync_hardware_clock_get_adj_rate’ [-Wmissing-prototypes]
290 | int nisync_hardware_clock_get_adj_rate(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:306:5: warning: no previous prototype for ‘nisync_hardware_clock_get_max_adj_rate’ [-Wmissing-prototypes]
306 | s32 nisync_hardware_clock_get_max_adj_rate(struct nisync_hardware_clock *clk)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:311:5: warning: no previous prototype for ‘nisync_hardware_clock_get_min_adj_rate’ [-Wmissing-prototypes]
311 | s32 nisync_hardware_clock_get_min_adj_rate(struct nisync_hardware_clock *clk)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:316:5: warning: no previous prototype for ‘_nisync_hardware_clock_set_adj_rate’ [-Wmissing-prototypes]
316 | int _nisync_hardware_clock_set_adj_rate(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:364:5: warning: no previous prototype for ‘nisync_hardware_clock_set_adj_rate’ [-Wmissing-prototypes]
364 | int nisync_hardware_clock_set_adj_rate(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:395:5: warning: no previous prototype for ‘nisync_hardware_clock_get_frequency’ [-Wmissing-prototypes]
395 | int nisync_hardware_clock_get_frequency(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:411:5: warning: no previous prototype for ‘nisync_hardware_clock_set_frequency’ [-Wmissing-prototypes]
411 | int nisync_hardware_clock_set_frequency(struct nisync_hardware_clock *clk,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:440:5: warning: no previous prototype for ‘nisync_hardware_clock_set_oscillator_voltage’ [-Wmissing-prototypes]
440 | int nisync_hardware_clock_set_oscillator_voltage(struct nisync_hardware_clock *clk, u64 voltage)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_hardware_clock_impl.c:464:6: warning: no previous prototype for ‘nisync_hardware_clock_get_oscillator_voltage’ [-Wmissing-prototypes]
464 | void nisync_hardware_clock_get_oscillator_voltage(struct nisync_hardware_clock *clk, u64 *voltage)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LD [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync.o
MODPOST /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/Module.symvers
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync.mod.o
LD [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync.ko
BTF [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync.ko
Skipping BTF generation for /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-50-generic'
make -C /lib/modules/6.8.0-50-generic/build M=/var/lib/dkms/ni-sync-pxi6683/24.3/build/src MODNAME=nisync_tns modules NISYNC_COMPAT_ERRORS=1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-50-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_tns_main.o
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/fte_fifo.o
LD [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_tns.o
MODPOST /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/Module.symvers
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_tns.mod.o
LD [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_tns.ko
BTF [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_tns.ko
Skipping BTF generation for /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_tns.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-50-generic'
make -C /lib/modules/6.8.0-50-generic/build M=/var/lib/dkms/ni-sync-pxi6683/24.3/build/src MODNAME=nisync_enet modules NISYNC_COMPAT_ERRORS=1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-50-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_enet.o
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_enet.c: In function ‘nisync_napi_poll’:
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_enet.c:862:25: error: implicit declaration of function ‘napi_reschedule’; did you mean ‘napi_schedule’? [-Werror=implicit-function-declaration]
862 | napi_reschedule(napi);
| ^~~~~~~~~~~~~~~
| napi_schedule
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_enet.c: In function ‘nisync_ethtool_get_drvinfo’:
/var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_enet.c:1404:9: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
1404 | strlcpy(info->driver, "PXI-668X Ethernet", sizeof(info->driver));
| ^~~~~~~
| strscpy
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/ni-sync-pxi6683/24.3/build/src/nisync_enet.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-50-generic/Makefile:1925: /var/lib/dkms/ni-sync-pxi6683/24.3/build/src] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-50-generic'
make: *** [Makefile:18: nisync_enet] Error 2

 

as a consequence  I got this errors in the terminal:

Building initial module for 6.8.0-50-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/ni-sync-pxi6683-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-50-generic (x86_64)
Consult /var/lib/dkms/ni-sync-pxi6683/24.3/build/make.log for more information.
dpkg: error processing package ni-sync-pxi6683-dkms (--configure):
installed ni-sync-pxi6683-dkms package post-installation script subprocess retu
rned error exit status 10
dpkg: dependency problems prevent configuration of ni-sync-pxi6683-hwsupport:
ni-sync-pxi6683-hwsupport depends on ni-sync-pxi6683-dkms (>= 24.3.0); however:
Package ni-sync-pxi6683-dkms is not configured yet.

dpkg: error processing package ni-sync-pxi6683-hwsupport (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ni-sync:
ni-sync depends on ni-sync-pxi6683-hwsupport (>= 24.3); however:
Package ni-sync-pxi6683-hwsupport is not configured yet.

dpkg: error processing package ni-sync (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
No apport report written because the error message ind
icates its a followup error from a previous failure.
Errors were encountered whil
e processing:
ni-sync-pxi6683-dkms
ni-sync-pxi6683-hwsupport
ni-sync
E: Sub-process /usr/bin/dpkg returned an error code (1)

0 Kudos
Message 8 of 8
(279 Views)