首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apt-镜误差

Apt-镜误差
EN

Ask Ubuntu用户
提问于 2022-11-30 08:52:12
回答 1查看 971关注 0票数 0

尝试为Ubuntu22.10创建存储库的本地副本。

以下是文件mirror.list:

代码语言:javascript
复制
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镜像命令时,我有以下响应:

代码语言:javascript
复制
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]

我很感谢在解决这个问题方面的帮助。

EN

回答 1

Ask Ubuntu用户

发布于 2023-01-03 07:03:31

错误的原因是文件没有下载,所以apt镜像找不到它们并引发错误。在这些URL上运行wget将显示它没有成功,因为源没有受到CA的保护/签名。

要越界,只需将这一行添加到mirror.list文件中:

代码语言:javascript
复制
set no_check_certificate 1
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1443194

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档