Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, a friend of mine installed something on the server (i dont know what). After that, commands stopped working, vim editor was gone. And i cant install anything thru apt-get. ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    1

    All commands not found, and Vim stopped working.

    Hi, a friend of mine installed something on the server (i dont know what). After that, commands stopped working, vim editor was gone. And i cant install anything thru apt-get. I can use the apt-get command but i always get error.

    Code:
    echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

    Code:
    apt-get -f install 
    
    mv: kan inte ta status på "/etc/alternatives/rename.dpkg-tmp": Filen eller katalogen finns inte
    update-alternatives: kunde inte installera /etc/alternatives/rename.dpkg-tmp som /etc/alternatives/rename: Filen eller katalogen finns inte
    dpkg: fel vid hantering av perl (--configure):
     underprocess post-installation script gav felkod 2
    
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Sorry for swedish error codes. Basicly the folder /etc/alternatives is gone!?

    Any help is appreciated!

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    I don't know about apt-get error - But what does ls -l /bin/ says ? Or even ls itself removed? Try running "/usr/bin/whereis <cmd>" to find out where the command
    resides and try invoking it using complete path name like /bin/ls
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •