使用ubuntu-22.04.1-live-server-amd64.iso离线更新时出错,找不到cdrom:// 文件
- 添加更新源和sudo apt update都是正常的
sudo mount /dev/sr0 data/CD/
mount: ~/data/CD: WARNING: source write-protected, mounted read-only.
ls data/CD/
EFI boot boot.catalog casper dists install md5sum.txt pool ubuntu
sudo apt-cdrom -m -d ./data/CD/ add
Using CD-ROM mount point ~/data/CD/
Identifying... [4b0aa1d20899e8aa0212df5d0d5590b0-2]
Scanning disc for index files...
Found 2 package indexes, 0 source indexes, 0 translation indexes and 1 signatures
This disc is called:
'Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809)'
Copying package lists...gpgv: Signature made Tue Aug 9 16:48:26 2022 UTC
gpgv: using RSA key 843938DF228D22F7B3742BC0D94AA3F0EFE21092
gpgv: Good signature from "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>"
Reading Package Indexes... Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809)]/ jammy main restricted
Repeat this process for the rest of the CDs in your set.
sudo apt update
Ign:1 cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809) jammy InRelease
Hit:2 cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809) jammy Release
Hit:4 https://download.docker.com/linux/ubuntu hirsute InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
52 packages can be upgraded. Run 'apt list --upgradable' to see them.
- 但是sudo apt upgrade和sudo apt dist-upgrade时提示出错,找不到文件。
sudo apt dist-upgrade
Get:1 cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809) jammy/main amd64 ncurses-base all 6.3-2 [20.1 kB]
Err:2 cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809) jammy/main amd64 libpng16-16 amd64 1.6.37-3build5
File not found
.
.
Err:28 cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809) jammy/main amd64 libevdev2 amd64 1.12.1+dfsg-1
File not found
E: Failed to fetch cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809)/pool/main/libp/libpng1.6/libpng16-16_1.6.37-3build5_amd64.deb File not found
.
.
E: Failed to fetch cdrom://Ubuntu-Server 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809)/pool/main/libe/libevdev/libevdev2_1.12.1%2bdfsg-1_amd64.deb File not found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
有哪位知道如何处理,谢谢!