Hi everyone! I’m trying to prepare a live iso with a USB stick including the additional rescuezilla package (or, alternatively, additional packages for a live rescuezilla .iso). Sadly rescuezilla does not support encryption, and so I’d like to be able to create/encrypt an image on one single live iso, not having to do a double iso boot just for this. I’m trying to do this in a manner that I won’t need internet once I need to use this USB stick. And hence…I found the most quoted command as:

apt-get download $(apt-rdepends |grep -v "^ ")

But this seems to work ONLY if your package is also part of the repo. If it’s an external .deb such as rescuezilla_2.4.2-1_all.deb is, then the command just fails with:

Reading state information... Done
W: Unable to locate package ./rescuezilla_2.4.2-1_all.deb
E: Handler silently failed

So…what can I do to download the many dependencies of rescuezilla onto a USB stick? Thanks!

  • Ghostbusterinthemach@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    I’m not at a computer to verify, but dpkg -I package.deb will list dependencies of a deb file, so apt-get download $(dpkg -I rescuezilla_2.4.2-1_all.deb) might work.

    • iturnedintoanewt@lemm.eeOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      10 months ago

      apt-get download $(dpkg -I rescuezilla_2.4.2-1_all.deb)

      Thanks a lot! While it wasn’t as simple as that, it did indeed point me onto the right direction. This command did the trick for me:

      apt download $(dpkg -I rescuezilla_2.4.2-1_all.deb | grep -oP '(?<=Depends: ).*' | tr -d ',')

      The grep goes there to list only what comes after “Depends:”. The -oP enables the python command to remove the string matching itself, so it leaves the whole list after the match… otherwise it also tries to download a package named “Depends:”. And the tr -d ‘,’ is to remove the commas separating each package, otherwise it fails to find them.

    • iturnedintoanewt@lemm.eeOP
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      The whole mechanism of working of Clonezilla is about the least intuitive I have ever found. So many chances for errors/mistakes, especially if you’re trying to do a network backup. Rescuezilla invokes clonezilla as a backup mechanism, but it saves you all the trouble with a way more intuitive UI. It’s been a revelation to me since I found about it, and refuse to use clonezilla alone.

      • MangoPenguin@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        Yeah that’s for sure, it’s pretty user hostile.

        It’s not open source but I absolutely love Veeam Agent, it will backup an online system with encryption, very easy to use, and they provide a bootable recovery image to restore from.

      • ipsirc@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        2
        ·
        edit-2
        10 months ago

        You missed the correct path.

        W: Unable to locate package ./rescuezilla_2.4.2-1_all.deb

        Use the correct path to your deb file.

        • iturnedintoanewt@lemm.eeOP
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          Still not correct. The path is perfectly correct. Even using full path. This method EXPECTS a repo package, not a file. I already figured the answer, it’s in this thread.

          • ipsirc@lemmy.ml
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            10 months ago

            I think you have confused the apt command with the apt-get command. apt-get doesn’t handle files, while apt has it since the very first version. This is one of the important differences between the two commands. This was one of the main reasons why I have been using only apt for years.

            • iturnedintoanewt@lemm.eeOP
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              10 months ago

              Again, incorrect. The answer is above. And still, you haven’t read the thread. This is NOT about getting rescuezilla to install in the current PC. This is to get it to install in a DIFFERENT PC, which happens to be OFFLINE. So apt by itself will FAIL when it tries to resolve dependencies.