Solved

Linux: how to install perl-IO-Compress & zlib without YUM?!

Posted on 2011-02-23
8
718 Views
Last Modified: 2012-06-27
While trying to fix a "yum update" dependency error, I removed "perl-IO-compress" and "zlib"...and can no longer execute commands.

I get errors like this:

     [root@114070-www1 ~]# ls
     -bash: /bin/ls: No such file or directory

     [root@114070-www1 yum]# mkdir test
     -bash: mkdir: command not found

I tried re-installing the pacakages with yum but (predictably) get this error:

     -bash: /usr/bin/yum: No such file or directory

...how do I resolve this? Help!



ux: how to install perl-IO-Compress & zlib without YUM?!
0
Comment
Question by:bearclaws75
  • 5
  • 3
8 Comments
 

Author Comment

by:bearclaws75
ID: 34960651
FYI - these are my PATH and SHELL values:

# echo $SHELL
/bin/bash

# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34961061
Once reboot your system and then check. Sometimes system do like this.
After reboot If you still face the same issue then we will fix your issue.
0
 

Author Comment

by:bearclaws75
ID: 34961154
Ugh. I can't even reboot!

     #  /sbin/reboot
     -bash: /sbin/reboot: No such file or directory

     # sudo reboot
     -bash: sudo: command not found
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 12

Expert Comment

by:upanwar
ID: 34961174
try to execute init 6
0
 

Author Comment

by:bearclaws75
ID: 34961318
same error:
 
    # init 6
    -bash: init: command not found
0
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
ID: 34961348
Use the power button and do a hardboot with your system.

0
 

Author Comment

by:bearclaws75
ID: 34963953
This server is hosting remotely. I'll provide an update once the request to reboot has been completed.
0
 

Author Closing Comment

by:bearclaws75
ID: 34988614
This turned out to be a mess. I asked the hosting company to reboot the server and they found that the Hard Drive had been corrupted. This probably explains the original issues I was troubleshooting. Anyways, they had to swap out the drive and restore a system backup and now everything is working.

upanwar - thanks for the reboot tip. If they hadn't rebooted and found the hard drive error, I would have spent hours pulling my hair out trying to resolve things from the command line.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question