linux 光盘作为软件源
来源:互联网 发布:ebs250喷码机改码软件 编辑:程序博客网 时间:2024/05/04 21:58
首先将linux系统安装盘(是利用ultroiso制作的系统盘)作为软件源,在无网络环境下安装软件
1. 将光盘放入光驱,稍等,执行sudo apt-cdrom ident 命令(进行MD5校验,识别光盘)
atom@atom-desktop:~$ sudo apt-cdrom ident
Using CD-ROM mount point /cdrom/
Mounting CD-ROM
Identifying.. [ac20a1ac35626cb607897968f3dd2440-2]
Stored label: Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)
Unmounting CD-ROM...
2. 执行 sudo apt-cdrom add 将光盘源写入到/etc/apt/sources.list
atom@atom-desktop:~$ sudo apt-cdrom add
Using CD-ROM mount point /cdrom/
Unmounting CD-ROM
Waiting for disc...
Please insert a Disc in the drive and press enter
(未插入光盘则插入;以插入则直接按回车)
Mounting CD-ROM...
Identifying.. [ac20a1ac35626cb607897968f3dd2440-2]
Scanning disc for index files..
Found 2 package indexes, 0 source indexes, 0 translation indexes and 1 signatures
This disc is called:
'Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)'
Copying package lists...gpgv: Signature made Thu 30 Oct 2008 07:24:11 AM CST using DSA key ID FBB75451
gpgv: Good signature from "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>"
Reading Package Indexes... Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
Unmounting CD-ROM...
Repeat this process for the rest of the CDs in your set.
W: Skipping non-exisiting file /cdrom/dists/intrepid/main/binary-i386/Packages
W: Skipping non-exisiting file /cdrom/dists/intrepid/restricted/binary-i386/Packages
至此,光盘源建立好了,你可以看到sources.list开头多了一些这么东西
atom@atom-desktop:~$ /etc/apt/sources.list
deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
3. 这样就可以执行安装相应的程序了,例如build-essential
sudo apt-get install build-essential
- linux 光盘作为软件源
- linux: 使用安装光盘作为安装源
- 继续摘抄:将Ubuntu 9.04的DVD光盘作为软件源
- CentOS使用光盘作为本地源
- 用Fedora光盘作为源安装软件包
- 用Fedora光盘作为源安装软件包
- RHEL YUM 本地光盘作为yum源
- CentOS使用光盘作为本地源
- 如何将光盘作为yum源
- Linux7使用光盘作为本地repo源
- linux 下从光盘安装软件
- linux学习笔记-从光盘安装软件
- centos使用光盘作为本地的yum源
- centos使用光盘作为本地的yum源
- 使用rhel5的DVD光盘作为本地yum源
- VirtualBox下RedHat 5.4 使用DVD光盘作为yum源
- CentOS使用光盘作为本地的Yum源
- rhel5的DVD光盘作为本地yum源
- 分享史上java最牛逼,最简短的代码
- 自定义C#程序集共享的方法
- (转载)图像处理与计算机视觉:基础,经典以及最近发展
- 测试驱动恋爱
- 变量初始化,声明和定义
- linux 光盘作为软件源
- 操作系统经典书籍推荐
- qdilog
- 两阶段提交协议
- 关于逻辑意识
- 学习笔记之使用vi之文本操作(五)
- 杭电ACM 2022 海选女主角
- 公摊面积到底多大才算合适?
- Windows/Unix/Linux编译C/C++添加头文件与库的搜索路径