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
posted @ 2025-04-15 10:06  中国的Amadeus  阅读(88)  评论(0)    收藏  举报