您的位置:首页 > 其它

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

2017-06-20 16:25 1071 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐