I have removed some that are very important for me. They are not just images but text files and some other types of files. Based on my research I think the only way to recover most of them is to use extundelete. However, extundelete is a bit out-dated and cannot install it through apt-get. I am trying to compile the library manually but I keep getting errors for the lacking packages and am not able to find/install those packages easily. Can anyone help me install extundelete?

  • If you want to retrieve deleted files you shouldn't be working in the same drive. – user692175 Sep 6 '17 at 17:48
  • I know. I'm trying to do it from another hard drive – Amir Sep 6 '17 at 17:51
  • 2
    Testdisk and Photorec (installed and used in a live session or other installed system) come to mind as alternatives. But I don't know how to use either. Perhaps you can follow the tutorials: cgsecurity.org/wiki/TestDisk_Step_By_Step and cgsecurity.org/wiki/PhotoRec_Step_By_Step – user692175 Sep 6 '17 at 18:13
  • @MichaelBay I am trying to install extundelete. Thanks for the links though ... – Amir Sep 6 '17 at 18:15
  • 1
    Please check this: extundelete.sourceforge.net – mook765 Sep 6 '17 at 20:16

I also encountered this problem as you described when I installed extundelete on ubuntu 16.04, like the following:

sudo apt-get install package_name
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package package_name

Later I found that is because the installation manner you chosen is out of date and not suitable for Ubuntu 16.04. Here you may refer to this tutorial Troubleshooting “E: Unable to locate package” Error on Ubuntu. Actually, it is so easy to install extundelete with apt-get on Ubuntu 16.04.

You just need:

sudo apt-get update
sudo apt-get install extundelete

Please refer to the website extundelete_0.2.4-1ubuntu1_amd64.deb and get more details. Last but not least, it is necessary to install the utility extundelete before you write data on your computer. Then the extundelete can help you recover your important data.

| improve this answer | |

In Ubuntu 16.04.7 LTS, extundelete is installed successfully.

sudo sh -c 'apt update && apt install extundelete'

Ubuntu says 'v0.2.4-1' is installed.

Please check your distribution version and package update.

ps: please do not install extundelete on same partition which deleted file was in. Boot with other media like live cd. I'm afraid new package list cache, list, extundelete related files may overwrite your deleted files.

| improve this answer | |

Solution :

Install extundelete Installing extundelete package on Ubuntu 16.04 (Xenial Xerus) is as easy as running the following command on terminal:

sudo apt-get update 
sudo apt-get install extundelete

Solution 2 :

sudo apt-get update -y

sudo apt-get install -y extundelete

Leave A Like, Or Comment.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.