sonatype-nexus-community / nexus-repository-apt

A Nexus Repository 3 plugin that allows usage of apt repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No packages/pool folder generation

DigitalMarc opened this issue · comments

Plugin v1.0.9 | Nexus v3.14.0

  • What are you trying to do?
    Install a deb package that has been pushed to nexus apt repo
    The following curl to deploy the deb seems ok:
curl -v -u 'user:pass' -X POST -H "Content-Type: multipart/form-data" --data-binary "@/path/to/file.deb" http://nexus/repository/repo-apt/
* About to connect() to nexus port 80 (#0)
*   Trying 10.0.0.5...
* Connected to nexus (10.0.0.5) port 80 (#0)
* Server auth using Basic with user 'user'
> POST /repository/repo-apt/ HTTP/1.1
> Authorization: Basic bWFyYzo/IU94eTM2MA==
> User-Agent: curl/7.29.0
> Host: nexus:80
> Accept: */*
> Content-Type: multipart/form-data
> Content-Length: 8187490
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 201 Created
< Date: Thu, 31 Jan 2019 20:33:16 GMT
< Server: Nexus/3.14.0-04 (OSS)
< X-Content-Type-Options: nosniff
< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
< Content-Length: 0
<
* Connection #0 to host nexus left intact

The folder structure seem correct and the Release/Package files looks ok:
image

But for some reason none of the packages are actually there. When we try to install the package via apt, we get the following:

Err:1 http://nexus/repo/repo-apt xenial/main amd64 app_test amd64 1.0.69
  404  pool/a/app_test/app_test_1.0.69_amd64.deb
E: Failed to fetch http://nexus/repo/repo-apt/pool/a/app_test_1/app_test_1_1.0.69_amd64.deb  404  pool/a/app_test_1/app_test_1_1.0.69_amd64.deb

Many thanks for your help!

Ok we find out that a 0 was specified in the nexus repo setup form for the number of package versions to keep. I think the plugin should somehow secure against zeros or negative values ;)