尝试为Ubuntu22.10创建存储库的本地副本。
以下是文件mirror.list:
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
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镜像命令时,我有以下响应:
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]我很感谢在解决这个问题方面的帮助。
发布于 2023-01-03 07:03:31
错误的原因是文件没有下载,所以apt镜像找不到它们并引发错误。在这些URL上运行wget将显示它没有成功,因为源没有受到CA的保护/签名。
要越界,只需将这一行添加到mirror.list文件中:
set no_check_certificate 1https://askubuntu.com/questions/1443194
复制相似问题