使用官方Ubuntu软件库构建DVD镜像

1 Preliminary Note

This tutorial was inspired by an articles I read at http://cargol.net/~ramon/ubuntu-dvd-en. So many thanks to Ramon Acedo (the one who made this HowTo, originally)

The pages are not reachable from some weeks, now. I saved the page to read it off-line. So...

I found it useful. I hope it will be the same for you.

2 Introduction

This howto offers a simple way of creating DVD images of Debian or Ubuntu http/ftp repositories.

Ubuntu doesn't offer DVDs ready to download with its main, universe, multiverse and/or restricted repositories. With the contents of this howto you can do it yourself.

Having the Ubuntu or Debian repositories on DVD can be useful for those users who don't have access to the Internet where they have their Ubuntu installed but have access somewhere else to download the repository and build and burn the DVDs.

3 Building a local mirror

We have to install debmirror:sudo apt-get install debmirror

Now we get the Ubuntu repositories in a local directory. In the example below we get main, universe and multiverse sections of the repository in the i386 architecture.

debmirror --nosource -m --passive --host=archive.ubuntulinux.org --root=ubuntu/ --method=ftp --progress --dist=dapper --section=main,multiverse,universe --arch=i386 ubuntu/ --ignore-release-gpg

You could change the options below as you prefer:

--host - the URL of the repository.

--dist - the distro of your OS (dapper, edgy, sarge, ... ).

--section - the section you want to mirror locally.

--arch - the architecture of your box.

4 Separating the archive into DVD-sized directories

The repositories we got are too big (about 30Gb) to burn them to a DVD so we have to separate them into volumes.

The tool debpartial will do it for us.

sudo apt-get install debpartial

We make the directory where the volumes will reside.

mkdir ubuntu-dvd

and we make it to construct the package descriptors to every volume.

debpartial --nosource --dirprefix=ubuntu --section=main,universe,multiverse --dist=dapper --size=DVD ubuntu/ ubuntu-dvd/

Now we have to put the packages into the directories debpartial has just created. The script debcopy which also comes with the debpartial package will do it. The script needs ruby.

sudo apt-get install ruby

If everything is ok...

ruby debcopy ubuntu/ ubuntu-dvd/ubuntu0

ruby debcopy ubuntu/ ubuntu-dvd/ubuntu1

ruby debcopy ubuntu/ ubuntu-dvd/ubuntu2

Where ubuntu/ is the directory with the complete repository created with debmirror and ubuntu-dvd/* are the directories ready to host the new DVD-ready repository.

If we want to make soft links from the complete repository instead of copying the packages we can call debcopy with the option -l:

ruby -l debcopy ubuntu/ ubuntu-dvd/ubuntu0

ruby -l debcopy ubuntu/ ubuntu-dvd/ubuntu1

ruby -l debcopy ubuntu/ ubuntu-dvd/ubuntu2

Now every directory (ubuntu0, ubuntu1 and ubuntu2) fits on one DVD.

5 Making iso images

To get the directories ubuntu0, ubuntu1, ubuntu2 into an iso image ready to burn we can use mkisofs:

mkisofs -f -J -r -o ubuntu-dvd-0.iso ubuntu-dvd/ubuntu0

mkisofs -f -J -r -o ubuntu-dvd-1.iso ubuntu-dvd/ubuntu1

mkisofs -f -J -r -o ubuntu-dvd-2.iso ubuntu-dvd/ubuntu2

Now you can burn the iso images or mount them. Add them to the /etc/apt/source.list with the command:

sudo apt-cdrom add

Now we can verify the new repositories...

sudo apt-get update

sudo apt-get upgrade

... and, if I explain in the right way, you should have your box upgraded.

时间: 2025-01-02 22:08:31

使用官方Ubuntu软件库构建DVD镜像的相关文章

期待的Windows 7 RTM官方語言包DVD ISO下載

&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp;   大家一直在期待的Windows 7 RTM Build 7600.16385的激活和语言包终于有提供下载了,点此下载种子(下载完毕后,请将.rar删去改成种子文件). Windows 7 RTM Build 7600.16385的英文原版镜像于前几天被泄露了出来,而现在看来,已经有很多用户下载好了此版本的镜像了.那么,唯一纠结的就是激活和语言包问题了.其实,激活

ROS机器人程序设计(原书第2版)1.2.1 配置Ubuntu软件库

1.2.1 配置Ubuntu软件库 在本节中,你将学习安装ROS Hydro的步骤.这个过程基于官方安装页面的内容讲述,链接地址是http://wiki.ros.org/hydro/Installation/Ubuntu. 我们假设你理解Ubuntu软件库(repository)的含义,并且知道如何管理它.如果你有任何疑问,请查询https://help.ubuntu.com/community/Repositories/Ubuntu. 在开始安装之前,需要首先配置软件库,为此需要先把软件库属性

在ubuntu下构建go语言开发环境的方法_Golang

新版本的go有更好的性能,ubuntu软件库只有交旧的版本,通过源码安装go1.2 具体步骤: 1.去官网下载go1.1.2的tarball,我下载到tem目录 2.打开终端cd /usr/local, tar -zxvf go1.1.2.linux-386.tar.gz 将源码文件解压缩到/usr/local目录,如果解压到其他目录,需要自己设置GOROOT 3.安装gcc工具,因为golang有些功能是使用c写 sudo apt-get install bison gawk gcc libc

Docker之构建Nginx镜像实现迅速搭建Google反代站点

镜像用法 自备证书用法 docker run -d --name=google \ -p 80:80 -p 443:443 \ -v 系统上存放ssl证书的目录:/usr/local/nginx/conf/ssl \ -e PROXY_GOOGLE=On \ -e PROXY_SSL_CRT_KEY=On \ -e PROXY_CRT=你的crt名称 \ -e PROXY_KEY=你的key名称 \ -e PROXY_DOMAIN=你的域名 \ benyoo/nginx_build:proxy_

【软件周刊第 32 期】Ubuntu 最新构建版启用 GNOME;Android 端 Chrome 59 提升页面加载速度

在最新发布的 Ubuntu 17.10 每日构建版中,Unity 桌面环境已消失,GNOME 已经正式成为即将推出的Ubuntu 17.10(Artful Aardvark)版本的默认桌面环境. 据悉,Ubuntu 17.10 将在 9 月 28 日发布 Final Beta 版本,这时候才会基本确定下来所有的内容,10 月 19 日 Ubuntu 17.10(Artful Aardvark)将正式发布. Android O 开发者预览版 Beta3 发布:包含最终 API 谷歌为参与 Andr

默认 Unity 8 桌面的 Ubuntu 14.10 测试镜像已提供下载

很多人肯定很想体验一下默认 Unity 8 桌面和 miR 显示服务器的 Ubuntu 14.10,现在可以了,官方专门提供了默认使用 unity 8 和 Mir 每日构建版本 Ubuntu Desktop Next 14.10 下载,想要体验的用户现在可下载.该版本主要是为了帮助开发人员测试和完善. 注意体验需要用户名,用户名默认为:ubuntu-desktop-next,密码默认为空. 下载 Ubuntu Desktop Next 14.10 (.iso) 试用了一下: 该版本因为是测试版本

告别 Unity,Ubuntu 最新构建版启用 GNOME

据 SoftPedia 报道,在最新发布的 Ubuntu 17.10 每日构建版中,Unity 桌面环境已消失,GNOME 已经正式成为即将推出的Ubuntu 17.10(Artful Aardvark)版本的默认桌面环境. 据悉,Ubuntu 17.10 将在 9 月 28 日发布 Final Beta 版本,这时候才会基本确定下来所有的内容,10 月 19 日 Ubuntu 17.10(Artful Aardvark)将正式发布. 本文来自开源中国社区 [http://www.oschina

Ubuntu下构建LAMP服务器

Build Your OwnDebian/Ubuntu LAMP Server - Quick & Easy Do it Yourself Installation Apache 2 - Linux Web server MySQL 5 - MySQL Database Server PHP4/5 - PHP Scripting Language phpMyAdmin - Web-based database admin software. Note: Linux + Apache + MySQ

gstreamer在Ubuntu下构建开发环境

1,Ubuntu已经安装了gstreamer库,因此只需要再安装几个开发库即可,是 libstreamer0.10-0libstreamer0.10-devlibstreamer0.10-0-dbg 在新立得里选中应用即可 2,测试gstreamer开发库 #include <gst/gst.h>int main (int   argc,char *argv[]){    const gchar *nano_str;    guint major, minor, micro, nano;