sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.95k stars 572 forks source link

Apt proxy should possibly use Filename: entry #448

Open jezze opened 2 months ago

jezze commented 2 months ago

Certain packages are not proxied correctly. For instance if you try to proxy python3-dbus from ubuntu jammy it will not download the package and cache it in the correct directory, resulting in that apt-get will give you a 404, package not found.

For instance, the correct pool directory in this case should be: /pool/main/d/dbus-python/ But I assume this is not what Nexus think since the package is named "python3-dbus" and NOT "dbus-python" so the assetPath (which i think is a concatenated path made from from properties in the control file) gives an incorrect path.

No

Just getting apt proxies to work for ALL packages.

You should probably look at the "Filename:" entry in Packages(.gz|.xz) and use that to store the package in /pool instead of creating your own path based on attributes in the package control file. Most of the time this works, but not always.

Ubuntu jammy

No

kjellericson commented 1 month ago

@mrprescott : I think this should be considered a bug. The proxy feature should be able to proxy all apt packages.