debian7.1请使用 apt-cdrom,通过它就可以让 APT 能识别该盘片。apt-get upgdate 不能被用来加入新的盘片。

root@i2test:/etc/apt# apt-get update
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy Release.gpg
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy Release
错误 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/contrib amd64 Packages
  请使用 apt-cdrom,通过它就可以让 APT 能识别该盘片。apt-get upgdate 不能被用来加入新的盘片。
错误 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/main amd64 Packages
  请使用 apt-cdrom,通过它就可以让 APT 能识别该盘片。apt-get upgdate 不能被用来加入新的盘片。
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/contrib Translation-zh_CN
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/contrib Translation-zh
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/contrib Translation-en
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/main Translation-zh_CN
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/main Translation-zh
忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy/main Translation-en
W: 无法下载 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06]/dists/wheezy/contrib/binary-amd64/Packages  请使用 apt-cdrom,通过它就可以让 APT 能识别该盘片。apt-get upgdate 不能被用来加入新的盘片。


W: 无法下载 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06]/dists/wheezy/main/binary-amd64/Packages  请使用 apt-cdrom,通过它就可以让 APT 能识别该盘片。apt-get upgdate 不能被用来加入新的盘片。


E: Some index files failed to download. They have been ignored, or old ones used instead.
root@i2test:/etc/apt# apt-cdrom update
E: 无效的操作 update
root@i2test:/etc/apt# apt-cdrom
apt 0.9.7.9,用于 amd64 构架,编译于 Jun  4 2013 09:31:07
Usage: apt-cdrom [options] command


apt-cdrom is a tool to add CDROM's to APT's source list. The
CDROM mount point and device information is taken from apt.conf
and /etc/fstab.


Commands:
   add - Add a CDROM
   ident - Report the identity of a CDROM


Options:
  -h   This help text
  -d   CD-ROM mount point
  -r   Rename a recognized CD-ROM
  -m   No mounting
  -f   Fast mode, don't check package files
  -a   Thorough scan mode
  --auto-detect Auto detect drive and mount point
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp

See fstab(5)

解决办法

root@i2test:/etc/apt# apt-cdrom add
现把 /media/cdrom/ 作为了 CD-ROM 的挂载点
正在鉴别.. [1bd153d9d5602634a88095ad8018262d-2]
正在盘片中查找索引文件..
找到了 2 个软件包索引、0 个源代码包索引、4 个翻译索引和 0 个数字签名
这张盘片现在的名字是:
“Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06”
Reading Package Indexes... 完成
Reading Translation Indexes... 完成
正在写入新的源列表
对应于该盘片的软件源设置项是:
deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06]/ wheezy contrib main
请对您的盘片套件中的其它盘片重复相同的操作。
root@i2test:/etc/apt# df -h
文件系统                 容量  已用  可用 已用% 挂载点
rootfs                    19G  4.0G   14G   23% /
udev                      10M     0   10M    0% /dev
tmpfs                    201M  540K  201M    1% /run
/dev/mapper/i2test-root   19G  4.0G   14G   23% /
tmpfs                    5.0M     0  5.0M    0% /run/lock
tmpfs                    402M   72K  402M    1% /run/shm
/dev/sda1                228M   18M  198M    9% /boot
/dev/sr0                 3.8G  3.8G     0  100% /media/cdrom0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值