如何填充所有程序的apt缓存。
下载整个Ubuntu软件中心到apt缓存离线使用。
sudo apt-get install --download-only *如何下载整个Ubuntu软件库的程序,在apt缓存,以方便脱机使用时,没有互联网连接?
cd /var/cache/apt/archives/
ls这是包裹的清单。我想用所有的程序来填补这个问题。整个软件档案。
我试过了
sudo apt-get install --download-only *那样做是应该的。
osdisk.com就是一个例子。它有10个带有程序deb文件的DVD,可以从DVD复制到缓存中,可以随时安装。
Keryx接受的答案不是后面的答案。APToncd也不是。如何在没有互联网的情况下安装软件或软件包(离线)?

工作,简单和可解释也是答案的一部分,完全可以由答案者和整个软件实现两个选定的程序。
函数
sudo apt-get install --download-only *发布于 2023-04-09 08:14:48
sudo apt install apt-mirror创建源列表
sudo su
# Remove wrong ones from the configure file
sed -i '17,27d' /etc/apt/mirror.list
# Insert correct ones
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.listapt-mirrorhttps://askubuntu.com/questions/1462919
复制相似问题