Apt-mirror 已完成下载存档。现在怎么办!从哪里开始进行离线安装?

Apt-mirror 已完成下载存档。现在怎么办!从哪里开始进行离线安装?

Apt-mirror 已完成下载档案。

下一步我应该去哪里进行离线安装?

apt镜像:

sudo apt install apt-mirror

创建来源列表:

sudo su

从配置文件中删除错误的:

sed -i '17,27d'  /etc/apt/mirror.list

插入正确的:

echo "
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ jammy partner
" >> /etc/apt/mirror.list

开始镜像:

apt-mirror

答案1

包裹位置:

/var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu

添加到 apt 源列表:

sudo su
echo "deb file:/var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu jammy main restricted universe multiverse" >> /etc/apt/sources.list


sudo apt-get update

相关内容