如何搭建一个自己的ubuntu软件源啊?

我看了几篇文章,大概总结出是这样的,也不知道对不对
搭建一个web服务,开启列表功能,即nginx的autoindexon;,假设根目录下有一个soft目录,里面保存了一些*.deb文件
sudoapt-getinstall-ydpkg-dev
sudodpkg-scanpackagessoft|gzip>soft/Packages.gz
得到软件源地址debhttp://192.168.1.20:6666soft
其中不明白的是
deb[option1=value1option2=value2]urisuite[component1][component2][...]
component1及后面的参数到底有什么用,我看官方的软件源结构不像是目录结构
我参考了https://odzangba.wordpress.co...
结果很多问题
sudoapt-getupdate
获取:1file:/home/zc/repository/disk_1InRelease
忽略:1file:/home/zc/repository/disk_1InRelease
获取:2file:/home/zc/repository/disk_1Release
忽略:2file:/home/zc/repository/disk_1Release
获取:3file:/home/zc/repository/disk_1Packages
忽略:3file:/home/zc/repository/disk_1Packages
获取:4file:/home/zc/repository/disk_1Translation-zh_CN
忽略:4file:/home/zc/repository/disk_1Translation-zh_CN
获取:5file:/home/zc/repository/disk_1Translation-zh
忽略:5file:/home/zc/repository/disk_1Translation-zh
获取:6file:/home/zc/repository/disk_1Translation-en
忽略:6file:/home/zc/repository/disk_1Translation-en
获取:3file:/home/zc/repository/disk_1Packages
忽略:3file:/home/zc/repository/disk_1Packages
获取:4file:/home/zc/repository/disk_1Translation-zh_CN
忽略:4file:/home/zc/repository/disk_1Translation-zh_CN
获取:5file:/home/zc/repository/disk_1Translation-zh
忽略:5file:/home/zc/repository/disk_1Translation-zh
获取:6file:/home/zc/repository/disk_1Translation-en
忽略:6file:/home/zc/repository/disk_1Translation-en
获取:3file:/home/zc/repository/disk_1Packages
忽略:3file:/home/zc/repository/disk_1Packages
获取:4file:/home/zc/repository/disk_1Translation-zh_CN
忽略:4file:/home/zc/repository/disk_1Translation-zh_CN
获取:5file:/home/zc/repository/disk_1Translation-zh
忽略:5file:/home/zc/repository/disk_1Translation-zh
获取:6file:/home/zc/repository/disk_1Translation-en
忽略:6file:/home/zc/repository/disk_1Translation-en
获取:3file:/home/zc/repository/disk_1Packages[1,154B]
获取:4file:/home/zc/repository/disk_1Translation-zh_CN
忽略:4file:/home/zc/repository/disk_1Translation-zh_CN
获取:5file:/home/zc/repository/disk_1Translation-zh
忽略:5file:/home/zc/repository/disk_1Translation-zh
获取:6file:/home/zc/repository/disk_1Translation-en
忽略:6file:/home/zc/repository/disk_1Translation-en
获取:4file:/home/zc/repository/disk_1Translation-zh_CN
忽略:4file:/home/zc/repository/disk_1Translation-zh_CN
获取:5file:/home/zc/repository/disk_1Translation-zh
忽略:5file:/home/zc/repository/disk_1Translation-zh
获取:6file:/home/zc/repository/disk_1Translation-en
忽略:6file:/home/zc/repository/disk_1Translation-en
获取:4file:/home/zc/repository/disk_1Translation-zh_CN
忽略:4file:/home/zc/repository/disk_1Translation-zh_CN
获取:5file:/home/zc/repository/disk_1Translation-zh
忽略:5file:/home/zc/repository/disk_1Translation-zh
获取:6file:/home/zc/repository/disk_1Translation-en
忽略:6file:/home/zc/repository/disk_1Translation-en
W:仓库“file:/home/zc/repository/disk_1Release”没有Release文件。
N:无法认证来自该源的数据,所以使用它会带来潜在风险。
N:参见apt-secure(8)手册以了解仓库创建和用户配置方面的细节。
apt-cachesearchmypackage
空的
料青山看我应如是
浏览 1036回答 2
2回答

九州编程

可以参考这2篇文章Howtocreatealocalmirrors和制作完整的Ubuntu本地源镜像,主要用到apt-mirror。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript