|
这是配置文件,我没动过.
# Apt-file configuration file
2
3 # Substitutions are made as follow:
4 # host => remote hostname
5 # port => port
6 # uri => complete URI from sources.list
7 # path => path from /
8 # dist => the distrib name
9 # comp => the component name
10 # cache => path to the cache dir
11 # dest => the destination file name
12 # cdrom => cdrom mount point
13
14 # Where are located Packages (relative to <comp> directory)
15 destination = <host>_<path>_dists_<dist>_Contents-<arch>.gz
16
17 # Fetch methods
18 http = wget -N -P "<cache>" -O "<cache>/<dest>" "<uri>/dists/<dist>/Contents-<arch>.gz" || rm -f "<cache>/<dest>";
19 ftp = wget -N --passive-ftp -P "<cache>" -O "<cache>/<dest>" "<uri>/dists/<dist>/Contents-<arch>.gz" || rm -f "<cach e>/<dest>"
20 ssh = scp -l <user> -P <port|22> "<host>:/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
21 rsh = rcp -l <user> "<host>:/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
22 file = cp "/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
23 copy = cp "/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
24 cdrom = echo " ut CDROM labeled <path> in the cdrom device" > /dev/stderr ; read ; mount "<cdrom>"; cp "<cdrom>/dist s/<dist>/Contents-<arch>.gz" "<cache>/<dest>"; umount "<cdrom>"
错误在这:
root@debian:/etc/apt# apt-file update
Put CDROM labeled [Debian_GNU/Linux_testing__Sarge__-_Official_Snapshot_i386_Binary-1_(20050323)]/ in the cdrom device
cp: stat‘/cdrom/dists/unstable/Contents-i386.gz’失败: 没有那个文件或目录
Put CDROM labeled [Debian_GNU/Linux_testing__Sarge__-_Official_Snapshot_i386_Binary-14_(20050323)]/ in the cdrom device
cp: stat‘/cdrom/dists/unstable/Contents-i386.gz’失败: 没有那个文件或目录
Put CDROM labeled [Debian_GNU/Linux_testing__Sarge__-_Official_Snapshot_i386_Binary-13_(20050323)]/ in the cdrom device
请问Contents-i386.gz应该在哪里,我的光盘上好像确实只有
root@debian:/cdrom/debian/dists/sarge/main/binary-i386# ls -al
总用量 1184
dr-xr-xr-x 2 root root 2048 2005-03-23 11:11 ./
dr-xr-xr-x 5 root root 2048 2005-03-23 11:09 ../
-r--r--r-- 1 root root 966429 2005-03-23 11:11 Packages
-r--r--r-- 1 root root 240682 2005-03-23 11:11 Packages.gz
-r--r--r-- 1 root root 81 2005-03-23 11:10 Release
配置文件应该怎么修改才行? |
|