LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   rpm isnt working (https://www.linuxquestions.org/questions/linux-server-73/rpm-isnt-working-653356/)

jancat 07-03-2008 09:49 AM

rpm isnt working
 
[root@server ~]# rpm
-bash: /bin/rpm: cannot execute binary file
[root@server ~]#

how can I solve it ? Thank you for your help.

jancat 07-03-2008 09:54 AM

[root@server ~]# yum install rpm*
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for rpm-devel to pack into transaction set.
rpm-devel-4.3.3-23_nonptl 100% |=========================| 85 kB 00:00
---> Package rpm-devel.i386 0:4.3.3-23_nonptl set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
rpm-devel i386 4.3.3-23_nonptl base 3.2 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): rpm-devel-4.3.3-23 100% |=========================| 3.2 MB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: rpm-devel ######################### [1/1]

Installed: rpm-devel.i386 0:4.3.3-23_nonptl
Complete!
[root@server ~]# rpm
-bash: /bin/rpm: cannot execute binary file
[root@server ~]#

datopdog 07-03-2008 09:56 AM

Some thing has broken on your system what is the output of

Code:

ldd /bin/rpm

jancat 07-03-2008 10:48 AM

[root@server ~]# ldd /bin/rpm
not a dynamic executable
[root@server ~]#

datopdog 07-03-2008 11:00 AM

Then your rpm file has been replace by something else check using
Code:

file /bin/rpm
If this machine is on the internet then you could have been hacked and your files modified.

jancat 07-03-2008 12:09 PM

[root@server ~]# file /bin/rpm
/bin/rpm: RPM v3 bin i386 floodkoruma-2.0-1
[root@server ~]#

server has internet connection


All times are GMT -5. The time now is 07:16 AM.