尝试为 Ubuntu 22.10 创建存储库的本地副本。
这是文件镜像列表:
set base_path /mnt/ExternalSSD/apt-mirror
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $base_path/var/clean.sh
# set defaultarch <running host architecture>
set postmirror_script $base_path/var/postmirror.sh
# set run_postmirror 0
set nthreads 10
set _tilde 0
#
############# end config ##############
eb http://archive.ubuntu.com/ubuntu kinetic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu kinetic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu kinetic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu kinetic-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse
deb-arm64 http://ports.ubuntu.com/ubuntu kinetic main restricted universe multiverse
deb-arm64 http://ports.ubuntu.com/ubuntu kinetic-security main restricted universe multiverse
deb-arm64 http://ports.ubuntu.com/ubuntu kinetic-updates main restricted universe multiverse
deb-arm64 http://ports.ubuntu.com/ubuntu kinetic-proposed main restricted universe multiverse
deb-arm64 http://ports.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse
deb http://ppa.launchpad.net/jonmagon/kdiskmark/ubuntu kinetic main
deb-arm64 http://ppa.launchpad.net/jonmagon/kdiskmark/ubuntu kinetic main
clean http://archive.ubuntu.com/ubuntu
clean http://ports.ubuntu.com/ubuntu
clean http://ppa.launchpad.net/jonmagon/kdiskmark/ubuntu
运行命令时sudo apt-mirror,我的回应如下:
root@Ubuntu-VM:/mnt/ExternalSSD/apt-mirror# apt-mirror
Downloading 404 index files using 8 threads...
Begin time: Wed Nov 30 09:33:11 2022
[8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Nov 30 09:35:45 2022
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-security/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-security/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-security/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-security/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-updates/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-updates/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-updates/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-updates/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-proposed/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-proposed/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-proposed/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-proposed/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-backports/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-backports/RI would be grateful for help in solving this problem.elease at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-backports/Release at /usr/bin/apt-mirror line 507.
Failed to open Release file from http://ports.ubuntu.com/ubuntu/dists/kinetic-backports/Release at /usr/bin/apt-mirror line 507.
Processing translation indexes: [TTTTTTTTTTTT]
Begin time: Wed Nov 30 09:42:45 2022
[10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Wed Nov 30 09:42:46 2022
Processing indexes: [PPPPPapt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic/mainI would be grateful for help in solving this problem./binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic/restricted/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic/universe/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic/multiverse/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-security/main/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-security/restricted/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-security/universe/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-security/multiverse/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-updates/main/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-updates/restricted/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-updates/universe/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-updates/multiverse/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-proposed/main/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-proposed/restricted/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-proposed/universe/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-proposed/multiverse/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-backports/main/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-backports/restricted/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-backports/universe/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
apt-mirror: can't open index ports.ubuntu.com/ubuntu//dists/kinetic-backports/multiverse/binary-arm64/Packages in process_index at /usr/bin/apt-mirror line 800.
PPPPPPP]
我将非常感激能够帮助我解决这一问题。
答案1
错误原因是文件未下载,因此 apt-mirror 找不到它们并引发错误。在这些 URL 上运行 wget 会发现它没有成功,因为源不受保护/未由 CA 签名。
为了解决这个问题,只需将这一行添加到 mirror.list 文件中:
set no_check_certificate 1