08-28-2022 07:35 AM
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.
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.
08-26-2022 07:55 AM
08-28-2022 07:31 AM
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.
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.
08-28-2022 09:32 AM
The post was duplicated due to a homepage error.
Please reply from the link below.
I'm sorry.
08-29-2022 05:25 AM
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
08-30-2022 06:11 AM
Is there a NI Package Manager in LabVIEW installed by Ubuntu?
09-06-2022 07:40 AM
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.
01-02-2025 08:12 AM
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)