LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 782|回复: 1

apt-file update找不到文件(cdrom)

[复制链接]
发表于 2005-10-17 17:56:54 | 显示全部楼层 |阅读模式
这是配置文件,我没动过.
# 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

配置文件应该怎么修改才行?
 楼主| 发表于 2005-10-18 16:32:51 | 显示全部楼层
啊,不会大家都不用这个吧.我也只是看着精华帖子想扩展一下APT啦,希望有经验的兄弟帮忙啊!
Thanks
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表