Is aptly broken on Ubuntu 18.04 LTS?









up vote
0
down vote

favorite












I have set up aptly repositories on Ubuntu 14.04 LTS and 16.04 LTS previously with little problem, but as I tried again recently on 18.04 LTS, something is wrong, and I cannot use my repository. I believe there may be some incompatibility with aptly on 18.04.



Note that the names of the repos, servers and directories were obfuscated.



The first this to note is that the -batch option no longer works because gpg seems to require an agent now in 18.04:



$ aptly publish repo -passphrase '********' -batch myrepo-unstable public/ubuntu
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect


In order for signing to work, I had to set up my gpg.conf file:



$ cat ~/.gnupg/gpg.conf
pinentry-mode loopback


Then, I am able to publish my repo:



$ aptly publish repo -passphrase '********' myrepo-unstable public/ubuntu
Loading packages...
Generating metadata files and linking package files...
Finalizing metadata files...
Signing file 'Release' with gpg, please enter your passphrase when prompted:
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect

Local repo myrepo-unstable has been successfully published.
Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/public/ubuntu/ bionic-unstable main
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.


I add the following repository to /etc/apt/sources.list:



deb [arch=amd64 trusted=yes] http://your-server/public/ubuntu/ bionic-unstable main


However, I get the following error when trying to update the repository



$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://your-server/public/ubuntu bionic-unstable InRelease [3,055 B]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:4 http://your-server/public/ubuntu bionic-unstable InRelease
Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
Fetched 247 kB in 5s (47.3 kB/s)
Reading package lists... Done
W: Failed to fetch http://your-server/public/ubuntu/dists/bionic-unstable/InRelease Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.


I can see that the files were downloaded to /var/lib/apt/lists/partial/, so there is no evidence of a connection problem, which I furthered verified by running wget manually on the URL, obtaining the result.



The problem, I believe, is something in the GPG signing. If I alter aptly the publish command so that it is unsigned, I do not have a problem:



$ aptly publish drop bionic-unstable public/ubuntu
Removing /mydir/.aptly/public/public/ubuntu/dists/bionic-unstable...
Cleaning up prefix "public/ubuntu" components main...
Published repository has been removed successfully.

$ aptly publish repo -skip-signing myrepo-unstable public/ubuntu
Loading packages...
Generating metadata files and linking package files...
Finalizing metadata files...

Local repo myrepo-unstable has been successfully published.
Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/public/ubuntu/ bionic-unstable main
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.


Now, I can update the APT list on my target machine:



$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:4 http://your-server/public/ubuntu bionic-unstable InRelease
Get:5 http://your-server/public/ubuntu bionic-unstable Release [2,347 B]
Ign:6 http://your-server/public/ubuntu bionic-unstable Release.gpg
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 249 kB in 1s (240 kB/s)
Reading package lists... Done


I can also install packages now. However, I would like to be able to produce the signed repository, but I don't have a clue why signing in aptly causes the repository to be unusable.



Any thoughts or suggestions would be most appreciate.










share|improve this question

























    up vote
    0
    down vote

    favorite












    I have set up aptly repositories on Ubuntu 14.04 LTS and 16.04 LTS previously with little problem, but as I tried again recently on 18.04 LTS, something is wrong, and I cannot use my repository. I believe there may be some incompatibility with aptly on 18.04.



    Note that the names of the repos, servers and directories were obfuscated.



    The first this to note is that the -batch option no longer works because gpg seems to require an agent now in 18.04:



    $ aptly publish repo -passphrase '********' -batch myrepo-unstable public/ubuntu
    gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect


    In order for signing to work, I had to set up my gpg.conf file:



    $ cat ~/.gnupg/gpg.conf
    pinentry-mode loopback


    Then, I am able to publish my repo:



    $ aptly publish repo -passphrase '********' myrepo-unstable public/ubuntu
    Loading packages...
    Generating metadata files and linking package files...
    Finalizing metadata files...
    Signing file 'Release' with gpg, please enter your passphrase when prompted:
    gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
    Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
    gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect

    Local repo myrepo-unstable has been successfully published.
    Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
    Now you can add following line to apt sources:
    deb http://your-server/public/ubuntu/ bionic-unstable main
    Don't forget to add your GPG key to apt with apt-key.

    You can also use `aptly serve` to publish your repositories over HTTP quickly.


    I add the following repository to /etc/apt/sources.list:



    deb [arch=amd64 trusted=yes] http://your-server/public/ubuntu/ bionic-unstable main


    However, I get the following error when trying to update the repository



    $ sudo apt-get update
    Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
    Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
    Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:4 http://your-server/public/ubuntu bionic-unstable InRelease [3,055 B]
    Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Err:4 http://your-server/public/ubuntu bionic-unstable InRelease
    Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
    Fetched 247 kB in 5s (47.3 kB/s)
    Reading package lists... Done
    W: Failed to fetch http://your-server/public/ubuntu/dists/bionic-unstable/InRelease Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
    W: Some index files failed to download. They have been ignored, or old ones used instead.


    I can see that the files were downloaded to /var/lib/apt/lists/partial/, so there is no evidence of a connection problem, which I furthered verified by running wget manually on the URL, obtaining the result.



    The problem, I believe, is something in the GPG signing. If I alter aptly the publish command so that it is unsigned, I do not have a problem:



    $ aptly publish drop bionic-unstable public/ubuntu
    Removing /mydir/.aptly/public/public/ubuntu/dists/bionic-unstable...
    Cleaning up prefix "public/ubuntu" components main...
    Published repository has been removed successfully.

    $ aptly publish repo -skip-signing myrepo-unstable public/ubuntu
    Loading packages...
    Generating metadata files and linking package files...
    Finalizing metadata files...

    Local repo myrepo-unstable has been successfully published.
    Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
    Now you can add following line to apt sources:
    deb http://your-server/public/ubuntu/ bionic-unstable main
    Don't forget to add your GPG key to apt with apt-key.

    You can also use `aptly serve` to publish your repositories over HTTP quickly.


    Now, I can update the APT list on my target machine:



    $ sudo apt-get update
    Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
    Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
    Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Ign:4 http://your-server/public/ubuntu bionic-unstable InRelease
    Get:5 http://your-server/public/ubuntu bionic-unstable Release [2,347 B]
    Ign:6 http://your-server/public/ubuntu bionic-unstable Release.gpg
    Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Fetched 249 kB in 1s (240 kB/s)
    Reading package lists... Done


    I can also install packages now. However, I would like to be able to produce the signed repository, but I don't have a clue why signing in aptly causes the repository to be unusable.



    Any thoughts or suggestions would be most appreciate.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have set up aptly repositories on Ubuntu 14.04 LTS and 16.04 LTS previously with little problem, but as I tried again recently on 18.04 LTS, something is wrong, and I cannot use my repository. I believe there may be some incompatibility with aptly on 18.04.



      Note that the names of the repos, servers and directories were obfuscated.



      The first this to note is that the -batch option no longer works because gpg seems to require an agent now in 18.04:



      $ aptly publish repo -passphrase '********' -batch myrepo-unstable public/ubuntu
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect


      In order for signing to work, I had to set up my gpg.conf file:



      $ cat ~/.gnupg/gpg.conf
      pinentry-mode loopback


      Then, I am able to publish my repo:



      $ aptly publish repo -passphrase '********' myrepo-unstable public/ubuntu
      Loading packages...
      Generating metadata files and linking package files...
      Finalizing metadata files...
      Signing file 'Release' with gpg, please enter your passphrase when prompted:
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
      Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect

      Local repo myrepo-unstable has been successfully published.
      Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
      Now you can add following line to apt sources:
      deb http://your-server/public/ubuntu/ bionic-unstable main
      Don't forget to add your GPG key to apt with apt-key.

      You can also use `aptly serve` to publish your repositories over HTTP quickly.


      I add the following repository to /etc/apt/sources.list:



      deb [arch=amd64 trusted=yes] http://your-server/public/ubuntu/ bionic-unstable main


      However, I get the following error when trying to update the repository



      $ sudo apt-get update
      Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
      Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
      Get:4 http://your-server/public/ubuntu bionic-unstable InRelease [3,055 B]
      Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
      Err:4 http://your-server/public/ubuntu bionic-unstable InRelease
      Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
      Fetched 247 kB in 5s (47.3 kB/s)
      Reading package lists... Done
      W: Failed to fetch http://your-server/public/ubuntu/dists/bionic-unstable/InRelease Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
      W: Some index files failed to download. They have been ignored, or old ones used instead.


      I can see that the files were downloaded to /var/lib/apt/lists/partial/, so there is no evidence of a connection problem, which I furthered verified by running wget manually on the URL, obtaining the result.



      The problem, I believe, is something in the GPG signing. If I alter aptly the publish command so that it is unsigned, I do not have a problem:



      $ aptly publish drop bionic-unstable public/ubuntu
      Removing /mydir/.aptly/public/public/ubuntu/dists/bionic-unstable...
      Cleaning up prefix "public/ubuntu" components main...
      Published repository has been removed successfully.

      $ aptly publish repo -skip-signing myrepo-unstable public/ubuntu
      Loading packages...
      Generating metadata files and linking package files...
      Finalizing metadata files...

      Local repo myrepo-unstable has been successfully published.
      Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
      Now you can add following line to apt sources:
      deb http://your-server/public/ubuntu/ bionic-unstable main
      Don't forget to add your GPG key to apt with apt-key.

      You can also use `aptly serve` to publish your repositories over HTTP quickly.


      Now, I can update the APT list on my target machine:



      $ sudo apt-get update
      Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
      Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
      Ign:4 http://your-server/public/ubuntu bionic-unstable InRelease
      Get:5 http://your-server/public/ubuntu bionic-unstable Release [2,347 B]
      Ign:6 http://your-server/public/ubuntu bionic-unstable Release.gpg
      Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
      Fetched 249 kB in 1s (240 kB/s)
      Reading package lists... Done


      I can also install packages now. However, I would like to be able to produce the signed repository, but I don't have a clue why signing in aptly causes the repository to be unusable.



      Any thoughts or suggestions would be most appreciate.










      share|improve this question













      I have set up aptly repositories on Ubuntu 14.04 LTS and 16.04 LTS previously with little problem, but as I tried again recently on 18.04 LTS, something is wrong, and I cannot use my repository. I believe there may be some incompatibility with aptly on 18.04.



      Note that the names of the repos, servers and directories were obfuscated.



      The first this to note is that the -batch option no longer works because gpg seems to require an agent now in 18.04:



      $ aptly publish repo -passphrase '********' -batch myrepo-unstable public/ubuntu
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect


      In order for signing to work, I had to set up my gpg.conf file:



      $ cat ~/.gnupg/gpg.conf
      pinentry-mode loopback


      Then, I am able to publish my repo:



      $ aptly publish repo -passphrase '********' myrepo-unstable public/ubuntu
      Loading packages...
      Generating metadata files and linking package files...
      Finalizing metadata files...
      Signing file 'Release' with gpg, please enter your passphrase when prompted:
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
      Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
      gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect

      Local repo myrepo-unstable has been successfully published.
      Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
      Now you can add following line to apt sources:
      deb http://your-server/public/ubuntu/ bionic-unstable main
      Don't forget to add your GPG key to apt with apt-key.

      You can also use `aptly serve` to publish your repositories over HTTP quickly.


      I add the following repository to /etc/apt/sources.list:



      deb [arch=amd64 trusted=yes] http://your-server/public/ubuntu/ bionic-unstable main


      However, I get the following error when trying to update the repository



      $ sudo apt-get update
      Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
      Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
      Get:4 http://your-server/public/ubuntu bionic-unstable InRelease [3,055 B]
      Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
      Err:4 http://your-server/public/ubuntu bionic-unstable InRelease
      Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
      Fetched 247 kB in 5s (47.3 kB/s)
      Reading package lists... Done
      W: Failed to fetch http://your-server/public/ubuntu/dists/bionic-unstable/InRelease Undetermined Error [IP: XXX.XXX.XXX.XXX 80]
      W: Some index files failed to download. They have been ignored, or old ones used instead.


      I can see that the files were downloaded to /var/lib/apt/lists/partial/, so there is no evidence of a connection problem, which I furthered verified by running wget manually on the URL, obtaining the result.



      The problem, I believe, is something in the GPG signing. If I alter aptly the publish command so that it is unsigned, I do not have a problem:



      $ aptly publish drop bionic-unstable public/ubuntu
      Removing /mydir/.aptly/public/public/ubuntu/dists/bionic-unstable...
      Cleaning up prefix "public/ubuntu" components main...
      Published repository has been removed successfully.

      $ aptly publish repo -skip-signing myrepo-unstable public/ubuntu
      Loading packages...
      Generating metadata files and linking package files...
      Finalizing metadata files...

      Local repo myrepo-unstable has been successfully published.
      Please setup your webserver to serve directory '/mydir/.aptly/public' with autoindexing.
      Now you can add following line to apt sources:
      deb http://your-server/public/ubuntu/ bionic-unstable main
      Don't forget to add your GPG key to apt with apt-key.

      You can also use `aptly serve` to publish your repositories over HTTP quickly.


      Now, I can update the APT list on my target machine:



      $ sudo apt-get update
      Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
      Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
      Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
      Ign:4 http://your-server/public/ubuntu bionic-unstable InRelease
      Get:5 http://your-server/public/ubuntu bionic-unstable Release [2,347 B]
      Ign:6 http://your-server/public/ubuntu bionic-unstable Release.gpg
      Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
      Fetched 249 kB in 1s (240 kB/s)
      Reading package lists... Done


      I can also install packages now. However, I would like to be able to produce the signed repository, but I don't have a clue why signing in aptly causes the repository to be unusable.



      Any thoughts or suggestions would be most appreciate.







      ubuntu gnupg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 19:03









      gbaumgardner

      11




      11



























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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',
          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%2fstackoverflow.com%2fquestions%2f53231858%2fis-aptly-broken-on-ubuntu-18-04-lts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231858%2fis-aptly-broken-on-ubuntu-18-04-lts%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

          Use pre created SQLite database for Android project in kotlin

          Darth Vader #20

          Ondo