I want to understand how suitable nexus is for storing my deb-source of apt packages (apt source <package>
)
For proxying debian packages this works reliably, but if I want to add the source of my deb package (e.g. file source-package_1.0.tar.xz
) I get error 503:
curl:
curl -u "$NEXUS_LOGIN:$NEXUS_PASS" -H "Content-Type: multipart/form-data" --data-binary "@./source-package_1.0.tar.xz" "http://nexus.local:8081/repository/apt-repo/"
answer:
<!DOCTYPE html>
<html lang="en">
<head>
<title>500 - Sonatype Nexus Repository</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="icon" type="image/png" href="../../static/rapture/resources/safari-favicon-32x32.png?3.72.0-04" sizes="32x32">
<link rel="mask-icon" href="../../static/rapture/resources/favicon-white.svg?3.72.0-04" color="#00bb6c">
<link rel="icon" type="image/png" href="../../static/rapture/resources/favicon.svg?3.72.0-04" sizes="16x16">
<link rel="stylesheet" type="text/css" href="../../static/css/nexus-content.css?3.72.0-04"/>
</head>
<body>
<div class="nexus-header">
<a href="../..">
<div class="product-logo">
<img src="../../static/rapture/resources/nxrm-reverse-icon.png?3.72.0-04" alt="Product logo"/>
</div>
<div class="product-id">
<div class="product-id__line-1">
<span class="product-name">Sonatype Nexus Repository</span>
</div>
<div class="product-id__line-2">
<span class="product-spec">OSS 3.72.0-04</span>
</div>
</div>
</a>
</div>
<div class="nexus-body">
<div class="content-header">
<img src="../../static/rapture/resources/icons/x32/exclamation.png?3.72.0-04" alt="Exclamation point" aria-role="presentation"/>
<span class="title">Error 500</span>
<span class="description">Internal Server Error</span>
</div>
<div class="content-body">
<div class="content-section">
Server Error
</div>
</div>
</div>
</body>
</html>
it seemed intuitively that it should work. I couldn’t find anything suitable in the documentation
I tried to do a normal curl upload but I’m not sure that the downloaded tar.xz
file can be indexed as source destination.
Mex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.