Results 1 to 3 of 3

Thread: deleted /bin/touch by mistake and now can't install anything

  1. #1
    Join Date
    2015-May
    Posts
    1

    Question deleted /bin/touch by mistake and now can't install anything

    After updating GNOME to 3.20.2 I had some problems with my touchpad so in that confusion I mistakenly deleted /usr/bin/touch and after that I even became more stupider and deleted /bin/touch.

    Now after this I can't seem to install any of the programs.
    Here's the error generated in installing a program..
    Code:
    user1@pqrx:~$ sudo apt-get install gir1.2-gtop-2.0
    [sudo] password for user1: 
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      gir1.2-gtop-2.0
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 0 B/54.6 kB of archives.
    After this operation, 104 kB of additional disk space will be used.
    Selecting previously unselected package gir1.2-gtop-2.0:amd64.
    (Reading database ... 351267 files and directories currently installed.)
    Preparing to unpack .../gir1.2-gtop-2.0_2.34.0-1_amd64.deb ...
    Unpacking gir1.2-gtop-2.0:amd64 (2.34.0-1) ...
    Setting up gir1.2-gtop-2.0:amd64 (2.34.0-1) ...
    sh: 1: touch: not found
    update-kali-menu: error: Can't open /var/lock/kali-menu: No such file or directory
    E: Problem executing scripts DPkg::Post-Invoke '[ ! -x /usr/share/kali-menu/update-kali-menu ] || /usr/share/kali-menu/update-kali-menu wait_dpkg'
    E: Sub-process returned an error code

    Any help will be much appreciated.
    Last edited by anonghost; 2016-07-26 at 19:30.

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    While annoying, I suggest just reinstalling Kali from scratch.

  3. #3
    Try to copy paste touch in your directory "bin"
    Make sure to make it executable with chmod +X and give it permissions to very users chmod 777
    this is mine, it that can help...
    http://www59.zippyshare.com/v/hWvWAxke/file.html

Similar Threads

  1. Replies: 13
    Last Post: 2016-03-16, 13:24
  2. Network Manager interface deleted by mistake
    By Narender24 in forum General Archive
    Replies: 2
    Last Post: 2015-07-25, 19:01
  3. Replies: 2
    Last Post: 2015-03-16, 16:38

Tags for this Thread

Posting Permissions

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