0

我看了几篇文章,大概总结出是这样的,也不知道对不对

搭建一个web服务,开启列表功能,即nginx的autoindex on;,假设根目录下有一个soft目录,里面保存了一些*.deb文件

sudo apt-get install -y dpkg-dev
sudo dpkg-scanpackages soft | gzip > soft/Packages.gz

得到软件源地址deb http://192.168.1.20:6666 soft

其中不明白的是

deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]

component1及后面的参数到底有什么用,我看官方的软件源结构不像是目录结构

我参考了https://odzangba.wordpress.co...

结果很多问题

sudo apt-get update
获取:1 file:/home/zc/repository/disk_1  InRelease
忽略:1 file:/home/zc/repository/disk_1  InRelease
获取:2 file:/home/zc/repository/disk_1  Release
忽略:2 file:/home/zc/repository/disk_1  Release
获取:3 file:/home/zc/repository/disk_1  Packages
忽略:3 file:/home/zc/repository/disk_1  Packages
获取:4 file:/home/zc/repository/disk_1  Translation-zh_CN
忽略:4 file:/home/zc/repository/disk_1  Translation-zh_CN
获取:5 file:/home/zc/repository/disk_1  Translation-zh
忽略:5 file:/home/zc/repository/disk_1  Translation-zh
获取:6 file:/home/zc/repository/disk_1  Translation-en
忽略:6 file:/home/zc/repository/disk_1  Translation-en
获取:3 file:/home/zc/repository/disk_1  Packages
忽略:3 file:/home/zc/repository/disk_1  Packages
获取:4 file:/home/zc/repository/disk_1  Translation-zh_CN
忽略:4 file:/home/zc/repository/disk_1  Translation-zh_CN
获取:5 file:/home/zc/repository/disk_1  Translation-zh
忽略:5 file:/home/zc/repository/disk_1  Translation-zh
获取:6 file:/home/zc/repository/disk_1  Translation-en
忽略:6 file:/home/zc/repository/disk_1  Translation-en
获取:3 file:/home/zc/repository/disk_1  Packages
忽略:3 file:/home/zc/repository/disk_1  Packages
获取:4 file:/home/zc/repository/disk_1  Translation-zh_CN
忽略:4 file:/home/zc/repository/disk_1  Translation-zh_CN
获取:5 file:/home/zc/repository/disk_1  Translation-zh
忽略:5 file:/home/zc/repository/disk_1  Translation-zh
获取:6 file:/home/zc/repository/disk_1  Translation-en
忽略:6 file:/home/zc/repository/disk_1  Translation-en
获取:3 file:/home/zc/repository/disk_1  Packages [1,154 B]
获取:4 file:/home/zc/repository/disk_1  Translation-zh_CN
忽略:4 file:/home/zc/repository/disk_1  Translation-zh_CN
获取:5 file:/home/zc/repository/disk_1  Translation-zh                                   
忽略:5 file:/home/zc/repository/disk_1  Translation-zh                                   
获取:6 file:/home/zc/repository/disk_1  Translation-en                                   
忽略:6 file:/home/zc/repository/disk_1  Translation-en                                   
获取:4 file:/home/zc/repository/disk_1  Translation-zh_CN                                
忽略:4 file:/home/zc/repository/disk_1  Translation-zh_CN                                
获取:5 file:/home/zc/repository/disk_1  Translation-zh                                   
忽略:5 file:/home/zc/repository/disk_1  Translation-zh                                   
获取:6 file:/home/zc/repository/disk_1  Translation-en                                   
忽略:6 file:/home/zc/repository/disk_1  Translation-en                                   
获取:4 file:/home/zc/repository/disk_1  Translation-zh_CN                                
忽略:4 file:/home/zc/repository/disk_1  Translation-zh_CN                                
获取:5 file:/home/zc/repository/disk_1  Translation-zh                                   
忽略:5 file:/home/zc/repository/disk_1  Translation-zh                                   
获取:6 file:/home/zc/repository/disk_1  Translation-en                                   
忽略:6 file:/home/zc/repository/disk_1  Translation-en                                   


W: 仓库 “file:/home/zc/repository/disk_1  Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。


apt-cache search mypackage
空的
xxfaxy 1.4k
2017-08-07 提问
2 个回答
0

后面的参数表现的形式其实就是反应到目录结构上。通常很少有软件仓库把目录层级搞的这么深的,因此你很少会看到component参数,基本上只有官方仓库你会看到后面一堆component.

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse

撰写答案

推广链接