使用 apt-offline 进行 Ubuntu 离线更新

使用 apt-offline 进行 Ubuntu 离线更新
  1. 当我apt-offline使用sudo apt install apt-offline命令安装时,它会安装 apt-offline 版本 1.8.4-1(据我所知,这是最新版本)
    当尝试使用命令创建签名文件时sudo apt-offline set ~/offline-data.sig- 出现错误:错误:没有指定设置命令的选项
    如果我下载并安装 apt-offline 版本 1.8.2-1 - 一切正常并且文件已创建。

  2. 根据sig文件下载更新文件。命令:apt-offline get -d ~/offline-data-dir offline-data.sig
    • 使用版本 1.8.4-1 - 所有下载均为“绿色”,且不显示任何错误。
    • 使用版本 1.8.2-1 时,部分文件为红色,并显示以下错误:
    错误:放弃 URL...... (文件列表如下)使用--verbosekey 运行会在最后显示失败文件列表。使用 key 运行 1.8.4-1 版本--verbose也会在下载过程中显示“放弃”,但它们没有标记为红色,并且最后没有错误。

问题:

  1. 我怎样才能开始使用 apt-offline 版本 1.8.4-1 而不错误:没有指定设置命令的选项
  2. 我是否需要那些丢失的文件或者可能只是忽略错误?

提前感谢您的回答。

VERBOSE: The following files failed to be downloaded.
VERBOSE: Not all errors are fatal. For eg. Translation files are not present on all mirrors.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/main/binary-all/Packages.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/main/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/main/dep11/Components-all.yml.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/main/cnf/Commands-all.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/binary-all/Packages.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/dep11/Components-all.yml.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/dep11/[email protected] failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/restricted/cnf/Commands-all.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/universe/binary-all/Packages.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/universe/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/universe/dep11/Components-all.yml.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/universe/cnf/Commands-all.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/binary-all/Packages.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/dep11/Components-all.yml.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/dep11/[email protected] failed.
VERBOSE: http://security.ubuntu.com/ubuntu/dists/jammy-security/multiverse/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/main/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/main/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/main/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/main/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/dep11/[email protected] failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/restricted/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/universe/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/universe/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/universe/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/universe/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/multiverse/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/multiverse/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/multiverse/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy/multiverse/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/main/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/dep11/[email protected] failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/restricted/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/multiverse/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/multiverse/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/multiverse/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-updates/multiverse/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/dep11/[email protected] failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/main/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/dep11/[email protected] failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/restricted/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/universe/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/universe/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/universe/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/universe/cnf/Commands-all.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/binary-all/Packages.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/i18n/Translation-en_IL.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/dep11/Components-amd64.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/dep11/Components-all.yml.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/dep11/icons-48x48.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/dep11/icons-64x64.tar.lzma failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/dep11/[email protected] failed.
VERBOSE: http://il.archive.ubuntu.com/ubuntu/dists/jammy-backports/multiverse/cnf/Commands-all.lzma failed.

答案1

对于第一个问题,我找到了答案。版本 1.8.2-1 和 1.8.4-1 之间的区别是 - 1.8.2-1 在获取命令后sudo apt-offline set ~/offline-data.sig准备文件,而 1.8.4-1 需要--update --upgrade按键才能执行该操作。

因此请求应该是这样的:sudo apt-offline set ~/offline-data.sig --update --upgrade

更多信息可以在这里找到:https://manpages.ubuntu.com/manpages/trusty/man8/apt-offline.8.html

相关内容