我在中的语句中看到了使用http
、ftp
和的示例。我可以使用 吗?而且,选项记录在哪里?我找不到正确的手册页。file
deb
sources.list
smb
答案1
ls -la /usr/lib/apt/methods/
将向您展示您可以使用的协议:
rinzwind@schijfwereld:~$ ls -la /usr/lib/apt/methods/
total 660
drwxr-xr-x 2 root root 4096 nov 18 07:03 .
drwxr-xr-x 5 root root 4096 nov 18 07:03 ..
lrwxrwxrwx 1 root root 5 okt 26 13:36 bzip2 -> store
-rwxr-xr-x 1 root root 34976 okt 26 13:36 cdrom
-rwxr-xr-x 1 root root 18592 okt 26 13:36 copy
-rwxr-xr-x 1 root root 18592 okt 26 13:36 file
-rwxr-xr-x 1 root root 88320 okt 26 13:36 ftp
-rwxr-xr-x 1 root root 55456 okt 26 13:36 gpgv
lrwxrwxrwx 1 root root 5 okt 26 13:36 gzip -> store
-rwxr-xr-x 1 root root 153768 okt 26 13:36 http
lrwxrwxrwx 1 root root 4 okt 26 13:36 https -> http
lrwxrwxrwx 1 root root 5 okt 26 13:36 lzma -> store
-rwxr-xr-x 1 root root 178344 okt 26 13:36 mirror
-rwxr-xr-x 1 root root 47264 okt 26 13:36 rred
-rwxr-xr-x 1 root root 30896 okt 26 13:36 rsh
lrwxrwxrwx 1 root root 3 okt 26 13:36 ssh -> rsh
-rwxr-xr-x 1 root root 22688 okt 26 13:36 store
lrwxrwxrwx 1 root root 5 okt 26 13:36 xz -> store
“file” 可能是一个选项。但对于“samba”,答案是否定的。
已有一个错误报告#231806关于这一点(自 2008 年以来从未取得进一步的分类)。