How to install gddrescue on Ubuntu 20.04?

6,950

Solution 1

To install GNU ddrescue command-line tool in all currently supported versions of Ubuntu open the terminal and type:

sudo apt update  
sudo apt install gddrescue

The gddrescue tool copies data from one file or block device (hard disk, CD-ROM, etc.) to another, trying hard to rescue data in case of read errors.

Solution 2

Found this guide for Ubuntu 18.04, but it also works for Ubuntu 20.04 version as well.

sudo add-apt-repository ppa:hamishmb/myppa
sudo apt update
sudo apt install ddrescue-gui
Share:
6,950
wst
Author by

wst

Updated on September 18, 2022

Comments

  • wst
    wst over 1 year

    How can I install ddrescue for Ubuntu 20.04?

    • guiverc
      guiverc almost 4 years
      Ubuntu releases use a year.month format, and there is no 20th month, so please clarify your release of Ubuntu.
  • Pixelated Fish
    Pixelated Fish over 3 years
    I know the OP has probably already dealt with this problem, but note that if it doesn't install you have to add universe to your source list. This can be done through the "Software & Updates' application on the first tab.
  • Poikilos
    Poikilos over 3 years
    Out of the box it will not work because the package is in universe (packages.ubuntu.com/focal/gddrescue). You have to enable universe first if you haven't done that: sudo add-apt-repository universe (linuxconfig.org/…) otherwise you will get an error such as "Package 'gddrescue' has no installation candidate" (or "Depends: gddrescue but it is not installable " for ddrescue-gui). After enabling universe, installing gddrecue (or installing ddrescue-gui after adding the ppa in wst's answer) works.
  • jacobq
    jacobq over 3 years
    Would you mind sharing more information about how to obtain this package without using apt? i.e. I have no network connectivity so want to find the .deb and run dpkg -i gddrescue.deb or something like that.
  • jacobq
    jacobq over 3 years
  • karel
    karel over 3 years
    @jacobq To install gddrescue_1.23-2build1_amd64.deb and its dependencies, open the terminal, change directories with cd to the directory containing ddrescue_1.23-2build1_amd64.deb and run sudo apt install ./gddrescue_1.23-2build1_amd64.deb
  • jacobq
    jacobq over 3 years
    @karel Yes, once you have the package that works (as does dpkg -i ... as I mentioned). I was looking for where to find the package (then edited comment once I found it).
  • karel
    karel over 3 years
    @jacobq gddrescue is a command-line tool. It is started from the terminal with the command gddrescue.
  • jacobq
    jacobq over 3 years
    @karel I am well acquainted with the tool. I was asking about where to manually download the .deb file for offline installation (on a system that does not have gddrescue installed and does not have network connectivity to the Internet). You can disregard. I found the URL I was looking for and posted above.