无法在本地创建的APT软件包安装

发布于 2025-02-11 14:58:27 字数 850 浏览 2 评论 0原文

我创建了一个Rust应用程序,我想将其作为可安装软件包分发。

所以,我遵循了本指南 https://earthly.dev /blog/创建自己的主持人deb-pakebages and apt-repo/

创建了一个DEB软件包, 创建了一个APT回购 &签名!

我的代码回购是: https://github.com/bhogayata-keval/secure-keval/secure-keval/secure-keval/secure-keval/secure-apt- -demo

但是, 之后,我将apt-repo添加到/etc/apt之后

在使用echo echo“ deb [arch = amd64)http://127.0.0.0.1:8000/apt-repo稳定main 。 sudo tee /etc/apt/sources.list.d/example.list (如博客文章所建议,我启动了一台用于测试的本地服务器)

&运行sudo apt-get安装xxxxxx 它说--- e:无法找到软件包xxxxxx

I created a Rust application, which I would like to distribute as an installable package.

So, I followed this guide
https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/

Created a deb package,
Created an apt repo
& Signed it !

My code repo is : https://github.com/Bhogayata-Keval/secure-apt-demo

However,
after I add my apt-repo to /etc/apt using

echo "deb [arch=amd64] http://127.0.0.1:8000/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/example.list
(I started a local server for testing, as suggested in the blog post)

& run sudo apt-get install xxxxxx
it says --- E: Unable to locate package xxxxxx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清晰传感 2025-02-18 14:58:27

查看OpenRepo: https://github.com/openkilt/openrepo

可以使Debian(APT)和Red Hat(RPM)文件的软件包可用的服务器。

Check out OpenRepo: https://github.com/openkilt/openrepo

This is an open source package hosting server that can make packages available for both Debian (APT) and Red Hat (RPM) files.

熊抱啵儿 2025-02-18 14:58:27

运行sudo apt Update

这将更新APT可以安装的本地套件列表,并在添加存储库后或运行sudo apt apt升级之前应执行

Run sudo apt update

This updates the local list of packages apt can install, and should be executed after adding a repository or before running sudo apt upgrade

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文