ls: cannot access /usr/sbin/smartctl: No such file or directory
# yum install cvuqdisk-1.0.9-1.rpmLoaded plugins: fastestmirror
Setting up Install Process
Examining cvuqdisk-1.0.9-1.rpm: cvuqdisk-1.0.9-1.x86_64
Marking cvuqdisk-1.0.9-1.rpm to be installed
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package cvuqdisk.x86_64 0:1.0.9-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================
Installing:
cvuqdisk x86_64 1.0.9-1 /cvuqdisk-1.0.9-1 11 k
Transaction Summary
=============================================================================================================================================================================================
Install 1 Package(s)
Total size: 11 k
Installed size: 11 k
Is this ok : y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
ls: cannot access /usr/sbin/smartctl: No such file or directory
/usr/sbin/smartctl not found.
error: %pre(cvuqdisk-1.0.9-1.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package cvuqdisk-1.0.9-1.x86_64
error: install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1
Verifying: cvuqdisk-1.0.9-1.x86_64 1/1
Failed:
cvuqdisk.x86_64 0:1.0.9-1
Complete!
通过分析是由于缺少/usr/sbin/smartctl,而这个东西是由于smartmontools包里面的,对其进行按照,然后一切正常
# yum install smartmontools
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package smartmontools.x86_64 1:5.43-3.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================
Installing:
smartmontools x86_64 1:5.43-3.el6 base 512 k
Transaction Summary
=============================================================================================================================================================================================
Install 1 Package(s)
Total download size: 512 k
Installed size: 1.6 M
Is this ok : y
Downloading Packages:
smartmontools-5.43-3.el6.x86_64.rpm | 512 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:smartmontools-5.43-3.el6.x86_64 1/1
Verifying: 1:smartmontools-5.43-3.el6.x86_64 1/1
Installed:
smartmontools.x86_64 1:5.43-3.el6
Complete!
#
# yum install cvuqdisk-1.0.9-1.rpm
Loaded plugins: fastestmirror
Setting up Install Process
Examining cvuqdisk-1.0.9-1.rpm: cvuqdisk-1.0.9-1.x86_64
Marking cvuqdisk-1.0.9-1.rpm to be installed
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package cvuqdisk.x86_64 0:1.0.9-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================
Installing:
cvuqdisk x86_64 1.0.9-1 /cvuqdisk-1.0.9-1 11 k
Transaction Summary
=============================================================================================================================================================================================
Install 1 Package(s)
Total size: 11 k
Installed size: 11 k
Is this ok : y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : cvuqdisk-1.0.9-1.x86_64 1/1
Verifying: cvuqdisk-1.0.9-1.x86_64 1/1
Installed:
cvuqdisk.x86_64 0:1.0.9-1
Complete!
页:
[1]