Ubuntu
- Ubuntu 開放 root 登入 ssh - Linux 技術手札
- Ubuntu系統下make install指令前,三思而後行 · Ivon的部落格
- 如何安裝Ubuntu至外接SSD,再從硬碟外接盒開機 · Ivon的部落格
install
- install ubuntu server without internet - Linux - Spiceworks Community
- if there is no internet when installation, disable the nic when installation selection gui
package
- Package search
- Package management | Ubuntu
- apt - Debian: The repository CDROM does not have a Release file - Unix & Linux Stack Exchange
- ubuntu - "Repository does not have a release file" error - Stack Overflow
- How to Fix "Repository is not valid yet" Error in Ubuntu Linux
- The reason for the error is the difference in the time on the system and the time in real world.
- sudo apt update error: "Release file is not yet valid" - Ask Ubuntu
- updates - How to I prevent Ubuntu from kernel version upgrade and notification? - Ask Ubuntu
- APT-GET“Couldn’t create temporary file for passing config to apt-key”问题解决 | Kaijia
https://chatgpt.com/share/5c29bffa-77fa-4399-8c05-82bf52b45153 Package lists in /var/lib/apt/lists/ Package cache in /var/cache/apt/archives/ Status files in /var/lib/dpkg/status
https://chatgpt.com/share/04254bb6-982d-4b57-95ad-80bba922d3e3
prevent kernel upgrade
offiline and local repository
- Repositories/CommandLine - Community Help Wiki
- [Linux] Ubuntu 如何離線安裝套件,解決相依性套件問題 - 靖技場
- AptGet/Offline/Repository - Community Help Wiki
- How to Setup Local APT Repository Server on Ubuntu 22.04
- apt-mirror
- apt-offline
- how to Create a local repository on Ubuntu 22
- proxy
- Debian Repository
- https://chat.openai.com/share/fd934a1a-e755-4f24-a21b-ca7512474847
- How to create local Debian repository
- How to create a simple debian repository with minimal dependences · GitHub
- Create local package repository on Ubuntu
the Ubuntu software repository is organized into four "components" on the basis of the level of support Ubuntu can offer them and whether or not they comply with Ubuntu's Free Software Philosophy. - Main (officially supported software) - Restricted (supported software that is not available under a completely free license) - Universe (community-maintained, i.e. not officially-supported software) - Multiverse (software that is "not free").
deb repo 的 url 組成 - Ubuntu 16.04 建立 APT Mirror site – Mr. 沙先生
xenial nginx 從 dists 後的目錄到 binary-amd64, binary-i386, sourcepinning file
- https://chatgpt.com/share/a7e6b06d-e031-4d58-ad5c-e62d7ea394d7
for local repository
/etc/apt/sources.list.d/localrepo.list
/etc/apt/preferences.d/rocm-pin-600
apt proxy
/etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy "http://<Proxy_Server_IP>:<Port>/";
Acquire::https::Proxy "http://<Proxy_Server_IP>:<Port>/";
Acquire::http::Proxy "http://user:password@proxy.server:port/";
Acquire::https::Proxy "https://user:password@proxy.server:port/";
dns
- [Ubuntu 22.04] DNS設定 - Ianyc - Medium
- domain name system - systemd-resolve fails to resolve hostnames when using bind9 - Server Fault
ISO
Netboot
- DisklessUbuntuHowto - Community Help Wiki
- How to netboot the server installer on amd64 | Ubuntu
- iPXE 引导 ubuntu 并使用 preseed 自动安装系统 | 小马过河
- Network Boot Ubuntu Server ISO via Preboot Execution Environment (PXE) – Technical Scratchpad
- Netbooting the live server installer - Server - Ubuntu Community Hub
- 玩具烏托邦: Debian Live: 把已灌入硬碟的系統變成 live cd
debootstrap
- blog-src/使用 debootstrap 建立完整的 Debian 系統.org at master · KingBing/blog-src
- Is there a (current) debootstrap-like tool for Rocky/CentOS/RHEL distros? : r/linuxquestions
autoinstall
- Autoinstall configuration reference manual - Ubuntu installation documentation
- Cloud config examples - cloud-init 24.2 documentation
- debug
- /var/log/installler/subiquity-server-debug.log
LiveCD
- Customising Ubuntu live ISOs with Docker · Samuel Lai
- GitHub - mvallim/live-custom-ubuntu-from-scratch
- 从零制作 Ubuntu 20.04 LiveCD - 蜻蜓的窝
- 【心得】製作 Linux LiveCD ... - studentc的創作 - 巴哈姆特
Test failure
apt install debootstrap mksquashfs grub-efi mtools xorriso
mkdir -p $HOME/live-ubuntu-from-scratch/target
mkdir -p $HOME/live-ubuntu-from-scratch/livecd/{casper,boot/grub,EFI/boot}
debootstrap --include=linux-image-generic,live-boot --components=main,universe,multiverse --arch=amd64 --variant=minbase jammy $HOME/live-ubuntu-from-scratch/target http://archive.ubuntu.com/ubuntu
cp $HOME/live-ubuntu-from-scratch/target/boot/vmlinuz-**-**-generic $HOME/live-ubuntu-from-scratch/livecd/casper/vmlinuz
cp $HOME/live-ubuntu-from-scratch/target/boot/initrd.img-**-**-generic $HOME/live-ubuntu-from-scratch/livecd/casper/initrd.img
chroot $HOME/live-ubuntu-from-scratch/target dpkg-query -W --showformat='${Package} ${Version}\n' | sudo tee $HOME/live-ubuntu-from-scratch/livecd/casper/filesystem.manifest
mksquashfs $HOME/live-ubuntu-from-scratch/target \
$HOME/live-ubuntu-from-scratch/livecd/casper/filesystem.squashfs \
-noappend -no-duplicates -no-recovery \
-wildcards \
-comp xz -b 1M -Xdict-size 100% \
-e "var/cache/apt/archives/*" \
-e "root/*" \
-e "root/.*" \
-e "tmp/*" \
-e "tmp/.*" \
-e "swapfile"
sudo tee $HOME/live-ubuntu-from-scratch/livecd/boot/grub/grub.cfg << EOF
search --set=root --file /casper/vmlinuz
insmod all_video
set timeout=30
menuentry "Ubuntu 22.04 Live" {
linux /casper/vmlinuz boot=casper nopersistent toram quiet splash --
initrd /casper/initrd.img
}
EOF
grub-mkstandalone \
--format=x86_64-efi \
--output=$HOME/live-ubuntu-from-scratch/livecd/EFI/boot/bootx64.efi \
--locales="" --fonts="" \
"boot/grub/grub.cfg=$HOME/live-ubuntu-from-scratch/livecd/boot/grub/grub.cfg"
LC_CTYPE=C bash -s << EOF
dd if=/dev/zero of=efiboot.img bs=1M count=3 && \
mkfs.vfat efiboot.img && \
mmd -i efiboot.img efi efi/boot && \
mcopy -i efiboot.img $HOME/live-ubuntu-from-scratch/livecd/EFI/boot/bootx64.efi ::efi/boot/
EOF
xorriso \
-as mkisofs \
-iso-level 3 \
-full-iso9660-filenames \
-volid "UBUNTU" \
-output Ubuntu-22.04-LiveCD-x86_64.iso \
-no-emul-boot -boot-load-size 4 -boot-info-table \
--eltorito-catalog boot/grub/boot.cat \
--grub2-boot-info \
--grub2-mbr /usr/lib/grub/i386-pc/boot_hybrid.img \
-eltorito-alt-boot -e EFI/efiboot.img -no-emul-boot -append_partition 2 0xef efiboot.img \
-graft-points "livecd" "/EFI/efiboot.img=efiboot.img"
Autoinstall ISO
- :star:How to automate a bare metal Ubuntu 22.04 LTS installation | jimangel.io
- explain the subiquity, curtin, casper
- A live OS is booted to memory via casper; triggering cloud-init to launch subiquity, a bunch of python controllers, to generate a cloud-init configuration for the new host and to launch curtin install for provisioning the host’s new – future – disk.
- sketch out a different view of how all the components interact. It reads from the top to bottom; from boot to provisioned host
- explain the subiquity, curtin, casper
- :star:Ubuntu 22.04 Server Autoinstall ISO | Puget Systems
- Create an Ubuntu 24.04 Desktop Autoinstall ISO Image – Robert Owald
- How to automate Ubuntu 22.04 LTS on a Raspberry Pi 4 | jimangel.io
- subiquity, casper
- Autoinstall configuration reference manual - Ubuntu installation documentation
Debug
Ubuntu 24 subiquity apt update failed cdrom - Bug #1963725 “subiquity curtin apt-get update fails” : Bugs : subiquity package : Ubuntu - /cdrom permission - Bug #2080745 “Subiquity curtin apt-get install fails from cdrom ...” : Bugs : subiquity package : Ubuntu - Autoinstall from ISO File - Subiquity apt-get insatll fails from cdrom files - Ask Ubuntu