Building DVD Images Of Ubuntu Repositories

ROS 2 Jazzy Jalisco 安装指南(Ubuntu环境) 但问题太多,还是安装了二进制版,后续有机会再源码安装吧! 阅读详情

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/orrestricted 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 scriptdebcopy which also comes with the debpartial package will do it. The script needsruby.

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 withdebmirror andubuntu-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 calldebcopy with the option-l:

ruby debcopy -l ubuntu/ ubuntu-dvd/ubuntu0
ruby debcopy -l ubuntu/ ubuntu-dvd/ubuntu1
ruby debcopy -l 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 usemkisofs:

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.


6 About the script 'debcopy'

I heard about someone who can not find the script debcopy, above described.
In that case, create a new file called debcopy where you want:

gedit /your_path_to/debcopy

and copy the lines below inside it:

#!/usr/bin/ruby
#
# debcopy - Debian Packages/Sources partial copy tool
#
# Usage: debcopy [-l]  
#
#  where  is a top directory of a debian archive,
#  and  is a top directory of a new debian partial archive.
#
#  debcopy searches all Packages.gz and Sources.gz under /dists
#  and copies all files listed in the Packages.gz and Sources.gz
#  files into  from . -l creates symbolic links
#  instead of copying files.
#
# Copyright (C) 2002  Masato Taruishi 
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License with
#  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
#  if not, write to the Free Software Foundation, Inc., 59 Temple Place,
#  Suite 330, Boston, MA  02111-1307  USA
#
require 'getoptlong'
require 'zlib'
require 'ftools'
$link = false
def usage
  $stderr.puts "Usage: #{__FILE__} [-l]  "
   exit 1
end
def each (file, &block)
  fin = Zlib::GzipReader.open(file)
  fin.each do |line|
    yield line
  end
  fin.close
end
def each_file (file, &block)
  each(file) do |line|
    if /Filename: (.*)/ =~ line
      yield $1
    end
  end
end
def each_sourcefile (file, &block)
  dir = nil
  each(file) do |line|
    case line
    when /^Directory: (.*)$/
      dir = $1
    when /^ \S+ \d+ (\S+)$/
      yield dir + "/" + $1
    end
  end
end
def calc_relpath (source, dest)
  pwd = Dir::pwd
  Dir::chdir source
  source = Dir::pwd
  Dir::chdir pwd
  Dir::chdir dest
  dest = Dir::pwd
  Dir::chdir pwd
  src_ary = source.split("/")
  src_ary.shift
  dest_ary = dest.split("/")
  dest_ary.shift
  return dest if src_ary[0] != dest_ary[0]
  src_ary.clone.each_index do |i|
    break if src_ary[0] != dest_ary[0]
    src_ary.shift
    dest_ary.shift
  end
  src_ary.size.times do |i|
    dest_ary.unshift("..")
  end
  dest_ary.join("/")
end
def do_copy(path)
  if $link
    pwd=calc_relpath(File.dirname($dest_dir + "/" + path), $source_dir)
    File.symlink(pwd + "/" + path, $dest_dir + "/" + path)
  else
    File.copy($source_dir + "/" + path, $dest_dir + "/" + path)
  end
end
def copy(path)
  s=$source_dir + "/" + path
  d=$dest_dir + "/" + path
  if FileTest.exist?(d)
    $stats["ignore"] += 1
    return
  end
  if FileTest.exist?(s)
    File.mkpath(File.dirname(d))
    do_copy(path)
    $stats["copy"] += 1
  else
    $stats["notfound"] += 1
    $stderr.puts s + " not found."
  end
end
opts = GetoptLong.new(["--symlink", "-l", GetoptLong::NO_ARGUMENT],
		      ["--help", "-h", GetoptLong::NO_ARGUMENT])
opts.each do |opt,arg|
  case opt
  when "--symlink"
    $link = true
  when "--help"
    usage
  end
end
usage if ARGV.size != 2
$source_dir = ARGV.shift
$dest_dir = ARGV.shift
if $link
  $source_dir = Dir::pwd + "/" + $source_dir unless $source_dir =~ /\A\//
  $dest_dir = Dir::pwd + "/" + $dest_dir unless $dest_dir =~ /\A\//
end
$stats = {}
$stats["ignore"] = 0
$stats["copy"] = 0
$stats["notfound"] = 0
open("|find #{$dest_dir}/dists -name Packages.gz") do |o|
  o.each_line do |file|
    file.chomp!
    print "Processing #{file}... "
    $stdout.flush
    each_file(file) do |path|
      copy(path)
    end
    puts "done"
  end
end
open("|find #{$dest_dir}/dists -name Sources.gz") do |o|
  o.each_line do |file|
    file.chomp!
    print "Processing #{file}... "
    $stdout.flush
    each_sourcefile(file.chomp) do |path|
      copy(path)
    end
    puts "done"
  end
end
puts "Number of Copied Files: " + $stats["copy"].to_s
puts "Number of Ignored Files: " + $stats["ignore"].to_s
puts "Number of Non-existence File: " + $stats["notfound"].to_s


 

WSL2 + Ubuntu 26.04 + ROS 2 Lyrical 安装全记录(2026 年 11 月实操版) 环境:Windows 11 + WSL 3.0.5.0 + Ubuntu 26.04.1 (resolute) + ROS 2 Lyrical Luth 目标:只做开发、编译、调试,不装 Gazebo,不做仿真 全程约 40 分钟,其中一半时间在等 apt 阅读详情

相关推荐

Ubuntu24.04 系统安装实时补丁

系统:Ubuntu24.04.4 LTS。

coarsegoist的博客 85

ubuntu20.04安装cc-switch

cc-switch 的官方版本基于 Tauri 2 框架,而 Tauri 2 依赖的。的适配分支,专门将应用从 Tauri 2 重构为 GTK+WebKit 架构,从而。在 Ubuntu 20.04 上并不存在,这正是你之前。创建了一个名为 cc-switch-web。社区开发者 greluoqixi。,并保留了原版的全部核心功能。,直接下载并安装适配好的。

2301_76776609的博客 190

Vue2项目实战:海康威视WEB无插件开发包V3.4从下载到多画面预览(附完整代码)

本文详细介绍了在Vue2项目中集成海康威视WEB无插件开发包V3.4实现多画面监控预览的完整实战方案。内容涵盖从开发包下载、Nginx代理配置、核心组件封装到多画面并发加载与性能优化的全流程,并提供了完整的代码示例,帮助开发者高效解决浏览器无插件播放与多路视频流加载的难题。

c7d8e9的博客 327

Ubuntu 24.04 LTS 部署 GitLab CE 完整教程

在Ubuntu Server 24.04 LTS上部署GitLab CE,推荐使用APT官方源或清华镜像源安装(生产环境),或Docker快速部署(体验/迁移)。需配置至少4核2GB内存、50GB SSD,开启80/443端口并设置时区。通过EXTERNAL_URL指定访问地址,修改/etc/gitlab/gitlab.rb调整配置,首次运行后使用gitlab-ctl reconfigure生效。初始密码由/etc/gitlab/initial_root_password获取,登录后立即修改并关闭注册。可选

滴水成河,汇流成海 100

Vector CANoe VT2516A实战:从硬件连接到CAPL脚本的完整配置指南

本文详细介绍了Vector CANoe VT2516A板卡从硬件连接到CAPL脚本编写的完整配置指南。涵盖硬件接线原则、VT System配置避坑技巧、系统变量创建规范、可视化Panel设计、CAPL脚本调试及典型故障排查案例,帮助工程师快速掌握VT2516A板卡的应用实践,提升汽车电子测试效率。

weixin_30608503的博客 259

pi/4QPSK调制解调原理

文章目录1. π/4\pi/4π/4QPSK 信号的调制原理2. 匹配滤波器与成形滤波器 1. π/4\pi/4π/4QPSK 信号的调制原理 减小相位突变量的QPSK由偏置键控QPSK(OK-QPSK)和 π/4\pi/4π/4偏置的QPSK( π/4\pi/4π/4QPSK)。由于 π/4\pi/4π/4QPSK是用差分相位编码产生的(因此也叫做 π/4\pi/4π/4DQPSK),能有效地进行差分解调和鉴频器解调,在一些不易提取相干载波的场合很有用。 在常规的QPSK中,输入数据经过串/并变换后,分成

gemengxia的博客 2万+

Ubuntu 24.04 本地部署 DeepSeek Harness (DSH) 实战指南与避坑记录

本文详述在Ubuntu 24.04上部署DeepSeek Harness(DSH)的全流程,重点解决npm版本报错问题,推荐使用@0.2.0-rc.1稳定版绕过notarget错误。通过配置Node.js 22.x、设置安全Token与工作区、绑定DeepSeek API Key,并对比npx与全局安装差异,提供高效部署方案。建议启用环境变量注入密钥,避免重复输入,日常仅需dsh web启动服务,安全隔离工作区可防止误操作。

guigenyi的专栏 592

[TI板]MSPM0G3507——keil环境配置+烧录配置+vscode配置+空工程迁移+点灯+芯片解锁教程

本文介绍了MSPM0G3507开发环境的配置与烧录方法。主要内容包括:1)下载安装芯片支持包和SDK开发工具;2)通过串口或DAPLink两种方式实现程序烧录,详细说明了UniFlash软件的使用步骤和常见问题解决方法;3)简要提及工程迁移和LED点灯等基础操作。文章提供了完整的开发环境搭建指南,涵盖从软件安装到实际烧录的全过程,并附有相关工具下载链接和操作截图,帮助开发者快速上手MSPM0G3507开发。

qq_23220445的博客 1万+

如何在 Mac、Ubuntu、CentOS 或 Windows 上安装本地 PostgreSQL

本文详细介绍在Mac、Ubuntu、CentOS和Windows上安装本地PostgreSQL数据库的步骤,涵盖使用Homebrew(Mac)、apt-get(Ubuntu)、yum(CentOS)及官方安装程序(Windows)的方法,并提供启动服务、创建用户与数据库、连接数据库的完整命令,帮助开发者快速搭建离线开发环境。

csdn_aspnet的专栏,请点击博客主页右上角三个点中的私信联系 327

从仿真到实践:两级直接耦合放大电路的静态工作点协同调试指南

本文详细解析了两级直接耦合放大电路的静态工作点协同调试方法,从仿真到实践提供系统指南。重点介绍了Rc2电阻调整技巧、集电极电位测量方法及常见问题排查,帮助工程师解决各级静态工作点相互影响的难题,提升模拟电路设计效率。

weixin_29189373的博客 130

多模态对齐方案

本文中我们介绍了 13 中常见的大型多模态模型(Large Multimodal Models, LMM),包括 BLIP-2,LLaVA、MiniGPT、Qwen-VL 以及 Ferret 等。最全 LMM 模型结构(13种)综述。单层linear投影、两层mlp。

liguandong 2094

Jetson 载板 Ubuntu 系统移植,设备树修改实战记录

本文详解Jetson OrinNX/Nano/XavierNX自研载板移植Ubuntu(L4T)时设备树的实战流程,区分Bootloader层(Pinmux/BCT/ODMDATA)、内核DTB与DTBO覆盖层的职责边界。重点解析高频误区:Pinmux必须通过Pinmux表格导出dtsi配置,不可在内核DT中修改;推荐调试阶段使用DTBO增量更新外设,量产则合并至主DTB。结合L4TR35/R36版本,提供DTBO编写、编译、部署及extlinux加载方法,并涵盖CSI相机、I2C/SPI外设、GPIO按键

ARM_FPGA_AI的博客 330

zabbix深度监控之邮件告警、微信群和微信告警

本文详细介绍了Zabbix监控系统实现邮件告警和微信告警的配置方法。邮件告警部分包含QQ和163邮箱的SMTP服务器配置、消息模板设置、告警流程三步骤(媒介配置、触发器动作、用户设置)。微信告警分为两种方式:企业微信群机器人告警(通过webhook实现)和企业微信应用告警(需创建应用并获取API参数)。两种告警方式都提供了完整的配置流程,包括脚本编写、权限设置、消息模板定制等关键步骤,并特别说明了如何使个人微信接收企业微信告警消息。文章还对比了SMTP、POP3、IMAP三种邮件协议的差异及适用场景。

提供C#相关开发 、云计算、运维测试、网络安全相关技术分享与服务,有意向可联系。 830

ubuntu 开启 Docker 2375 端口

本文介绍了如何配置 Docker 远程访问。首先定位 Docker 服务配置文件 /usr/lib/systemd/system/docker.service,在 ExecStart 后添加 -H tcp://0.0.0.0:2375 以开启远程 API。随后执行 systemctl daemon-reload 和 restart 重启服务,最后通过 curl http://localhost:2375/version 测试,返回版本信息即表示配置成功。

yuanzehao 138

智元机器人开源具身仿真框架 Genie Sim 入门教程

GenieSim是AgiBot推出的具身智能仿真框架,提供完整闭环开发管道,包括轨迹生成、模型训练和基准测试。框架支持Docker容器化部署,要求Ubuntu 22.04和NVIDIA硬件环境。主要功能涵盖: 支持12种基准测试任务 提供ADER评估框架 集成UniVLA/RDT等基线模型 支持PICO/键盘遥操作 具备轨迹记录回放功能 提供完整API控制接口 开发者可通过Hugging Face获取场景资产,使用标准化ROS主题与仿真环境交互。框架特别优化了碰撞检测和抓取物理模拟,适用于从简单抓取到复杂操

2506_90492529的博客 2553

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

Ubuntu2404安装 Jenkins

选择插件来安装(自定义):自己勾,适合生产最小化插件选择:无,后面再安装插件,然后点击安装。

一直在努力学习的菜鸟 291

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

20261130在Ubuntu22.04.5下编译韦东山RK3576 CM5开发板的Buildroot

本文介绍了在Ubuntu 24.04环境下,针对韦东山RK3576 CM5开发板编译Buildroot固件的完整流程。通过下载并校验基线SDK包(100ask-rk3576_SDK-cm5-baseline-20261123.tar.gz),手动生成缺失的SHA-256校验文件,解压后应用板级差分包,配置并编译生成整机镜像update.img。全程使用预设配置,无需同步最新代码,适合初学者快速构建稳定固件。最终生成的update.img大小为1.01GB,可用于设备刷机。

南岭笑笑生之家 215

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

Ubuntu 24.04 搭建 Obsidian + PicGo + 阿里云 OSS 图床:手动安装插件与七个坑

要免费、要插件生态、要在 Linux 上少折腾,选 Obsidian;愿意付费、只要所见即所得,Typora 在 Ubuntu 上也是官方支持的。编辑器Linux 支持价格图床接入方式本文是否实测Typora官方支持,且官方文档写明「Linux 版只在 Ubuntu 上测试」买断制,1 个授权 3 台设备偏好设置→图像→自定义命令调未实测Obsidian官方提供 deb / AppImage / snap个人使用免费社区插件调用 PicGo 本地 Server实测VS Code。

guigenyi的专栏 249

Ubuntu 26.04 LTS + RTX 5090:一次由 GSP 固件缺失引发的 “No devices were found“ 排查实录

Ubuntu 26.04 LTS 上安装 NVIDIA 620.73.04 驱动后,nvidia-smi 显示“No devices found”,dmesg 报 GPU failed probe-time init, open returning -EIO。根因是开源内核模块依赖 GSP 固件,而 .run 安装包未将固件打包进 initramfs,导致启动早期无法加载。解决方法为通过 /etc/dracut.conf.d/nvidia-gsp.conf 显式添加固件路径并执行 dra

ONE_SIX_MIX的专栏 321

RAGFlow 1.0.0 部署教程:Ubuntu Docker Compose 安装、Go 架构配置与知识库问答实战

RAGFlow 1.0.0 是基于 Go 语言重构的生产级 RAG 引擎,支持复杂文档版面分析、表格结构识别与可溯源问答。通过集成 DeepDoc、NATS JetStream、Kvrocks 等组件,实现高性能、低内存开销的私有化知识库部署。适用于企业制度、财务报表等复杂文档的智能检索与精准引用,需在 Linux 环境下部署,推荐 4核+16GB 内存,支持本地或远程模型接入,全面加固安全配置后可快速上线使用。

2501_90831828的博客 389

Ubuntu 网络排障决策树(2):公网入口与安全组——包在“门外”经历了什么

第一篇用“外部探针 + 实例 tcpdump”把“不通”切成了四个象限。。:Ubuntu 24.04 + 腾讯云轻量应用服务器。

xiangyun61的博客 308

Ubuntu 26.04 编译鲁班猫2(RK3568)Ubuntu 24.04 镜像完整教程

本文记录在Ubuntu 26.04上从零编出 鲁班猫2(RK3568)Ubuntu 24.04 + XFCE + 6.1 内核 镜像的全过程,每一步都是实测命令。

qq_44490498的博客 380

Ubuntu 24.04 截图工具选型与安装:Flameshot、maim 与 slop

在 Ubuntu 24.04 X11 环境下,截图工具选型应分场景:Flameshot 适合人工标注与快速分享,maim + slop 适用于无交互脚本化截屏。grim 仅支持 Wayland,X11 下无效;gnome-screenshot 已弃用。推荐安装 sudo apt install flameshot maim slop,兼顾易用性与自动化需求,总占用仅 4.7MB。

guigenyi的专栏 258

Ubuntu 26.04 编译鲁班猫2(RK3568)Ubuntu 22.04 镜像完整教程

本文记录在 **Ubuntu 26.04** 上从零编译 **鲁班猫2(RK3568)Ubuntu 22.04 + 6.1 内核** 镜像, 并成功烧录上机的完整过程,包含每一个真实报错的原因与修复方法。

qq_44490498的博客 308

Debian 综合练习:FTPS、Samba、LDAP、AIDE 与 MariaDB 验收清单

1. 用途与范围 本文整理 Debian/UOS 服务综合实验要求和验收方法,用于检查文件传输安全、共享权限、目录认证、完整性监控与数据库管理。原稿为练习题,不是完整部署教程;以下命令用于验收,不代表已经通过测试。 2. 准备运行环境 Debian/UOS 实验虚拟机,root 或 sudo 权限;服务端和独立客户端网络互通。 按实验版本准备 vsftpd、

weixin_44524357的博客 151

UOS/Debian Chrony:服务端、客户端与同步状态验证

1. 服务介绍 时间同步服务用于让服务器与标准时间源保持一致,避免认证、日志审计、证书校验、集群服务因时间偏差出现异常。 2. 环境要求 操作系统:UOS/Debian 系 Linux 环境,按原实验版本执行。 操作账号:root 或具备 sudo 权限的管理员账号。 网络要求:主机 IP、DNS、网关和客户端连通性已按实验拓扑准备。 软件要求:可使用 ap

weixin_44524357的博客 165
上一篇: A Unique Linux Backup to Live Media Tool for Debianand Ubuntu
下一篇: Create your own mobile Ubuntu repository with APTonCD
石头
博客等级 码龄24年 77粉丝 70原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值