Unable to restore files with Deja Dup on Kubuntu 18.04





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I made a backup of my home folder on Kubuntu 16.04 to an external hard drive using Deja Dup and a passphrase.



I then installed Kubuntu 18.04, formatting my hard drive entirely. I didn't copy any gpg keys across since I thought the passphrase would be all that I need, and indeed from this wiki it seems that is correct:
https://wiki.gnome.org/Apps/DejaDup/HowItWorks#Encryption



However, now I'm getting the following error when trying to restore:



GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: AES encrypted data
gpg: gcry_kdf_derive failed: Invalid data
gpg: encrypted with 1 passphrase
gpg: decryption failed: No secret key
===== End GnuPG log =====


It seems the problem is No secret key, but I am not sure how that key would be generated or why it is needed, since I only used a passphrase?



I then went and decrypted the difftar files myself, and then tried to do a restore with those, but that ended up giving me the following error:



Invalid data - SHA1 hash mismatch for file:
duplicity-inc.{datetime}.to.{datetime}.vol1.difftar
Calculated hash: some_checksum
Manifest hash: a_different_checksum


So, why did my restore not just ask for the passphrase and successfully decrypt with that? Does it need the username, computer name or some other parameters to be the same or is this a bug with Deja Dup/duplicity?










share|improve this question































    0















    I made a backup of my home folder on Kubuntu 16.04 to an external hard drive using Deja Dup and a passphrase.



    I then installed Kubuntu 18.04, formatting my hard drive entirely. I didn't copy any gpg keys across since I thought the passphrase would be all that I need, and indeed from this wiki it seems that is correct:
    https://wiki.gnome.org/Apps/DejaDup/HowItWorks#Encryption



    However, now I'm getting the following error when trying to restore:



    GPGError: GPG Failed, see log below:
    ===== Begin GnuPG log =====
    gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
    gpg: AES encrypted data
    gpg: gcry_kdf_derive failed: Invalid data
    gpg: encrypted with 1 passphrase
    gpg: decryption failed: No secret key
    ===== End GnuPG log =====


    It seems the problem is No secret key, but I am not sure how that key would be generated or why it is needed, since I only used a passphrase?



    I then went and decrypted the difftar files myself, and then tried to do a restore with those, but that ended up giving me the following error:



    Invalid data - SHA1 hash mismatch for file:
    duplicity-inc.{datetime}.to.{datetime}.vol1.difftar
    Calculated hash: some_checksum
    Manifest hash: a_different_checksum


    So, why did my restore not just ask for the passphrase and successfully decrypt with that? Does it need the username, computer name or some other parameters to be the same or is this a bug with Deja Dup/duplicity?










    share|improve this question



























      0












      0








      0








      I made a backup of my home folder on Kubuntu 16.04 to an external hard drive using Deja Dup and a passphrase.



      I then installed Kubuntu 18.04, formatting my hard drive entirely. I didn't copy any gpg keys across since I thought the passphrase would be all that I need, and indeed from this wiki it seems that is correct:
      https://wiki.gnome.org/Apps/DejaDup/HowItWorks#Encryption



      However, now I'm getting the following error when trying to restore:



      GPGError: GPG Failed, see log below:
      ===== Begin GnuPG log =====
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
      gpg: AES encrypted data
      gpg: gcry_kdf_derive failed: Invalid data
      gpg: encrypted with 1 passphrase
      gpg: decryption failed: No secret key
      ===== End GnuPG log =====


      It seems the problem is No secret key, but I am not sure how that key would be generated or why it is needed, since I only used a passphrase?



      I then went and decrypted the difftar files myself, and then tried to do a restore with those, but that ended up giving me the following error:



      Invalid data - SHA1 hash mismatch for file:
      duplicity-inc.{datetime}.to.{datetime}.vol1.difftar
      Calculated hash: some_checksum
      Manifest hash: a_different_checksum


      So, why did my restore not just ask for the passphrase and successfully decrypt with that? Does it need the username, computer name or some other parameters to be the same or is this a bug with Deja Dup/duplicity?










      share|improve this question
















      I made a backup of my home folder on Kubuntu 16.04 to an external hard drive using Deja Dup and a passphrase.



      I then installed Kubuntu 18.04, formatting my hard drive entirely. I didn't copy any gpg keys across since I thought the passphrase would be all that I need, and indeed from this wiki it seems that is correct:
      https://wiki.gnome.org/Apps/DejaDup/HowItWorks#Encryption



      However, now I'm getting the following error when trying to restore:



      GPGError: GPG Failed, see log below:
      ===== Begin GnuPG log =====
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
      gpg: AES encrypted data
      gpg: gcry_kdf_derive failed: Invalid data
      gpg: encrypted with 1 passphrase
      gpg: decryption failed: No secret key
      ===== End GnuPG log =====


      It seems the problem is No secret key, but I am not sure how that key would be generated or why it is needed, since I only used a passphrase?



      I then went and decrypted the difftar files myself, and then tried to do a restore with those, but that ended up giving me the following error:



      Invalid data - SHA1 hash mismatch for file:
      duplicity-inc.{datetime}.to.{datetime}.vol1.difftar
      Calculated hash: some_checksum
      Manifest hash: a_different_checksum


      So, why did my restore not just ask for the passphrase and successfully decrypt with that? Does it need the username, computer name or some other parameters to be the same or is this a bug with Deja Dup/duplicity?







      16.04 18.04 backup gnupg deja-dup






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 18 at 15:03







      skepticscript

















      asked Feb 16 at 19:19









      skepticscriptskepticscript

      1201111




      1201111






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118816%2funable-to-restore-files-with-deja-dup-on-kubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118816%2funable-to-restore-files-with-deja-dup-on-kubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?