java.io.IOException: Cannot run program "lsb_release": error=2, No such file处理方法.250415
在欧拉系统运行x11界面时,kettle报错:java.io.IOException: Cannot run program "lsb_release": error=2, No such file
解决方案:
yum search到lsb的版本,然后安装即可。
[root@dev-a ~]# yum search lsb
Last metadata expiration check: 0:45:27 ago on Tue 15 Apr 2025 09:14:29 AM CST.
====================================================================================================== Name & Summary Matched: lsb ======================================================================================================
openeuler-lsb.x86_64 : LSB support for linux Standard Base specification
openeuler-lsb.src : LSB support for linux Standard Base specification
=========================================================================================================== Name Matched: lsb ===========================================================================================================
perl-List-UtilsBy.noarch : Higher-order list utility functions
perl-List-UtilsBy.src : Higher-order list utility functions
perl-List-UtilsBy-help.noarch : Higher-order list utility functions
========================================================================================================= Summary Matched: lsb ==========================================================================================================
perl-List-AllUtils-help.noarch : Combines List::Util, List::SomeUtils and List::UtilsBy in one bite-sized package
[root@dev-a ~]# yum -y install openeuler-lsb
Last metadata expiration check: 0:46:44 ago on Tue 15 Apr 2025 09:14:29 AM CST.
Dependencies resolved.
=========================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=========================================================================================================================================================================================================================================
Installing:
openeuler-lsb x86_64 5.0-1.oe2309 everything 14 k
Transaction Summary
=========================================================================================================================================================================================================================================
Install 1 Package
Total download size: 14 k
Installed size: 16 k
Downloading Packages:
openeuler-lsb-5.0-1.oe2309.x86_64.rpm 2.4 kB/s | 14 kB 00:05
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.3 kB/s | 14 kB 00:10
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : openeuler-lsb-5.0-1.oe2309.x86_64 1/1
Running scriptlet: openeuler-lsb-5.0-1.oe2309.x86_64 1/1
Verifying : openeuler-lsb-5.0-1.oe2309.x86_64 1/1
Installed:
openeuler-lsb-5.0-1.oe2309.x86_64
Complete!
[root@dev-a ~]# which lsb_release
/usr/bin/lsb_release
喜欢请赞赏一下啦^_^赞赏后请加wx:weyocul,相关文章提到的的安装包稍后给到哦!没有收到赞赏直接加我的,直接无视哈!

浙公网安备 33010602011771号