个人工具
登录
查看“UbuntuHelp:AptCdrom”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:AptCdrom”的源代码
来自Ubuntu中文
←
UbuntuHelp:AptCdrom
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/AptCdrom}} {{Languages|UbuntuHelp:AptCdrom}} You can use the Ubuntu Live Cd to install packages (i.e. to an older offline Ubuntu computer). === Source.list === If you have a new Live CD and the Live CD in the Source.list file, comment all the repositories excepting the CD and <pre><nowiki> sudo apt-get update sudo apt-get dist-upgrade </nowiki></pre> After upgrade, uncomment all the other repositories in the source.list file. Some computers can ask to use apt-cdrom. If so, follow the instructions that appears bellow. === Apt-cdrom === apt-cdrom can add a new CDROM to APTs sources.list file (list of available repositories). It is necessary to use apt-cdrom to add CDs to the APT system, it cannot be done by hand. Put the Live CD in the unit and use one of these commands, in this order : * test: <code><nowiki> sudo apt-cdrom --no-act add </nowiki></code> * if everything is OK: <code><nowiki> sudo apt-cdrom add </nowiki></code> * <code><nowiki> sudo apt-cdrom ident </nowiki></code> * <code><nowiki> sudo apt-cdrom -d "your-cdrom-mount-point" -r </nowiki></code> ==== Description and options ==== * '''add''' is used to add a new disc to the source list. It will unmount the CDROM device, prompt for a disk to be inserted and then procceed to scan it and copy the index files. If the disc does not have a proper .disk/ directory you will be prompted for a descriptive title. APT uses a CDROM ID to track which disc is currently in the drive and maintains a database of these IDs in /var/lib/apt/cdroms.list * '''ident''' is a [[UbuntuHelp:debugging|debugging]] tool to report the identity of the current disc as well as the stored file name. *'''-d''' or '''--cdrom''' : MountPoint (specify the location to mount the cdrom). This mount point must be listed in /etc/fstab and properly configured. * '''-r''' or '''--rename''' : rename a disc; change the label of a disk or override the disks given label. This option will cause apt-cdrom to prompt for a new label. * '''-n''', '''--just-print''', '''--recon''' or '''--no-act''': no Changes; Do not change the sources.list file and do not write index files. Everything is still checked however. === Test === After dist-upgrade you can test that everything is OK <pre><nowiki> sudo apt-get -f install sudo dpkg --configure -a </nowiki></pre> === See also === * http://linux.die.net/man/8/apt-cdrom * [[UbuntuHelp:AptGet/Offline|AptGet/Offline]] * [[UbuntuHelp:UpdateManager|UpdateManager]] * [[UbuntuHelp:PackageCDs|PackageCDs]] ---- [[category:CategoryOffline]] [[category:CategoryPackageManagement]] [[category:CategoryHardware]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:AptCdrom
。