更新软件包时遇到使用apt-cdrom的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
bsidb
帖子: 15
注册时间: 2009-07-03 21:48

更新软件包时遇到使用apt-cdrom的问题

#1

帖子 bsidb » 2009-07-03 21:51

在使用“更新管理器”时遇到了这样的提示:

代码: 全选

无法下载全部的软件库索引:
无法下载 cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)/dists/jaunty/main/binary-i386/Packages  请使用 apt-cdrom,通过它就可以让 APT 能识别该光盘。apt-get upgdate 不能被用来加入新的光盘。
无法下载 cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)/dists/jaunty/restricted/binary-i386/Packages  请使用 apt-cdrom,通过它就可以让 APT 能识别该光盘。apt-get upgdate 不能被用来加入新的光盘。
有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
这是什么意思?怎么继续操作?
谢谢!
头像
peteryeh64
论坛版主
帖子: 9379
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

Re: 更新软件包时遇到使用apt-cdrom的问题

#2

帖子 peteryeh64 » 2009-07-05 22:55

請問你是準備用更新管理器做甚麼動作
是要更新軟件嗎?還是?
你是不是還把安裝光碟DVD版本的留在光驅裡面?
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
bsidb
帖子: 15
注册时间: 2009-07-03 21:48

Re: 更新软件包时遇到使用apt-cdrom的问题

#3

帖子 bsidb » 2009-07-17 12:04

是要更新软件的。
用更新管理器点击了“检查”(因为他一直提示我软件包信息过期),检查完以后就弹出了上述提示。
没有留DVD ,是用Wubi直接安装的。
抱歉久等了。今天才抽空上论坛。谢谢!
头像
xieshaohu
帖子: 1565
注册时间: 2007-10-24 20:20
来自: 北京、海淀
联系:

Re: 更新软件包时遇到使用apt-cdrom的问题

#4

帖子 xieshaohu » 2009-07-17 12:28

如果需要把光盘作为更新源的话,需要把光盘设置为更新源
Dell Vostro 1500, T7300/4GB/WD5000BEVT/nVidia 8400GM, Ubuntu 10.04 x86_64/VMware 7(Win7)
我的博客:http://xieshaohu.wordpress.com/
头像
peteryeh64
论坛版主
帖子: 9379
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

Re: 更新软件包时遇到使用apt-cdrom的问题

#5

帖子 peteryeh64 » 2009-07-17 18:16

能否把 軟件原始源 所設定參數的 抓圖post上來
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
youngerlak
帖子: 951
注册时间: 2008-11-09 14:58

Re: 更新软件包时遇到使用apt-cdrom的问题

#6

帖子 youngerlak » 2009-07-17 18:25

xieshaohu 写了:如果需要把光盘作为更新源的话,需要把光盘设置为更新源
你的意思我懂,但是不是你这么表达的。汉语没这么糟糕的吧??
我是菜鸟,我怕啥!顶多重新装一次又怎么样?10几年来WINDOWS我们重新来过了多少次?
其实也就只会装装系统,其他一概不会
http://youngerlak.blog.163.com
bsidb
帖子: 15
注册时间: 2009-07-03 21:48

Re: 更新软件包时遇到使用apt-cdrom的问题

#7

帖子 bsidb » 2009-07-17 19:40

peteryeh64 写了:能否把 軟件原始源 所設定參數的 抓圖post上來
查到问题了,把图贴上来。
(见楼下的楼下)
如果把下面“从光驱安装”选上就有问题。如果把它去掉就没问题。把他去掉后下载更新文件时共42个文件。如果选上就是51个文件。
那个选项有什么作用呢?谢谢!
上次由 bsidb 在 2009-07-19 18:57,总共编辑 1 次。
头像
careone
帖子: 839
注册时间: 2007-12-17 21:41

Re: 更新软件包时遇到使用apt-cdrom的问题

#8

帖子 careone » 2009-07-17 21:04

sudo apt-cdrom add -d /dev/cdrom
上面的 /dev/cdrom 与你的DVD光驱的设备名对应。

另外请把下面两个文件传上来,以做诊断:
1 /etc/fstab
2 /etc/apt/sources.list
魁拔不死,天下不宁。
魁拔既死,天下不平。
--------------
Careone <emacslocale^126.com>
https://sourceforge.net/projects/emacslocale/files/
bsidb
帖子: 15
注册时间: 2009-07-03 21:48

Re: 更新软件包时遇到使用apt-cdrom的问题

#9

帖子 bsidb » 2009-07-18 21:31

软件源设置
软件源设置
那个“从光驱安装”的选项的问题。
后面有两个选项下的文件比较的结果。
这是不选“从光驱安装”的fstab文件(不知道为什么不能以附件的形式传上来)

代码: 全选

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/host/ubuntu/disks/root.disk /               ext3    loop,errors=remount-ro 0       1
/host/ubuntu/disks/boot /boot           none    bind            0       0
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
这是不选“从光驱安装”的sources.list文件:

代码: 全选

# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ubuntu.dormforce.net/ubuntu/ jaunty main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-updates restricted main multiverse universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ubuntu.dormforce.net/ubuntu/ jaunty universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ubuntu.dormforce.net/ubuntu/ jaunty multiverse
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-security restricted main multiverse universe #Added by software-properties
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security multiverse
这是选择那一项时的sources.list文件

代码: 全选

deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ubuntu.dormforce.net/ubuntu/ jaunty main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-updates restricted main multiverse universe #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ubuntu.dormforce.net/ubuntu/ jaunty universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ubuntu.dormforce.net/ubuntu/ jaunty multiverse
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security main restricted
deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-security restricted main multiverse universe #Added by software-properties
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security universe
deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security multiverse
这是选中那一项的fstab文件

代码: 全选

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/host/ubuntu/disks/root.disk /               ext3    loop,errors=remount-ro 0       1
/host/ubuntu/disks/boot /boot           none    bind            0       0
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
=======比较=====
fstab文件没有差别
使用diff两份文件后得到的结果是:
1c1
< # deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
---
> deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
=================
谢谢啊!
回复