无法在本地创建的APT软件包安装
我创建了一个Rust应用程序,我想将其作为可安装软件包分发。
所以,我遵循了本指南 https://earthly.dev /blog/创建自己的主持人deb-pakebages and apt-repo/
创建了一个DEB软件包, 创建了一个APT回购 &签名!
但是, 之后,我将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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看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.
运行
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