Welcome to the Linux Foundation Forum!

Containers Fundamentals (LFS253) Lab 4.4. Install Podman

Im working on this step:
student@ubuntu:~$ sudo apt install -y podman

E Failed: to fetch https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb file has unexpected size (17679080 != 17706544). mirror sync in progress?

Answers

  • eporart
    eporart Posts: 26

    Morning... here more information about the issue:

    student@student:~$ sudo apt install -y podman
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    libfwupdplugin1
    Use 'sudo apt autoremove' to remove it.
    The following NEW packages will be installed:
    podman
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 17.7 MB of archives.
    After this operation, 80.2 MB of additional disk space will be used.
    Get:1 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 podman 100:3.4.2-1 [17.7 MB]
    Err:1 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 podman 100:3.4.2-1
    File has unexpected size (17679080 != 17706544). Mirror sync in progress? [IP: 2a07:de40:401::70 443]
    Hashes of expected file:
    - SHA256:4eb9b58413f602cf18ec21a742acd99ae10e71df467e7b9a63c3b1f7e8229f16
    - SHA1:cf1fefe5c85321fe9b562339a79494c9eda9dd60 [weak]
    - MD5Sum:58fa232055dff2700aa55e13c7932536 [weak]
    - Filesize:17706544 [weak]
    E: Failed to fetch https://provo-mirror.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb File has unexpected size (17679080 != 17706544). Mirror sync in progress? [IP: 2a07:de40:401::70 443]
    Hashes of expected file:
    - SHA256:4eb9b58413f602cf18ec21a742acd99ae10e71df467e7b9a63c3b1f7e8229f16
    - SHA1:cf1fefe5c85321fe9b562339a79494c9eda9dd60 [weak]
    - MD5Sum:58fa232055dff2700aa55e13c7932536 [weak]
    - Filesize:17706544 [weak]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    student@student:~$ sudo apt install -y podman --fix-missing
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    libfwupdplugin1
    Use 'sudo apt autoremove' to remove it.
    The following NEW packages will be installed:
    podman
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 17.7 MB of archives.
    After this operation, 80.2 MB of additional disk space will be used.
    Get:1 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 podman 100:3.4.2-1 [17.7 MB]
    Err:1 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 podman 100:3.4.2-1
    File has unexpected size (17679080 != 17706544). Mirror sync in progress? [IP: 2a07:de40:401::70 443]
    Hashes of expected file:
    - SHA256:4eb9b58413f602cf18ec21a742acd99ae10e71df467e7b9a63c3b1f7e8229f16
    - SHA1:cf1fefe5c85321fe9b562339a79494c9eda9dd60 [weak]
    - MD5Sum:58fa232055dff2700aa55e13c7932536 [weak]
    - Filesize:17706544 [weak]
    E: Failed to fetch https://provo-mirror.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb File has unexpected size (17679080 != 17706544). Mirror sync in progress? [IP: 2a07:de40:401::70 443]
    Hashes of expected file:
    - SHA256:4eb9b58413f602cf18ec21a742acd99ae10e71df467e7b9a63c3b1f7e8229f16
    - SHA1:cf1fefe5c85321fe9b562339a79494c9eda9dd60 [weak]
    - MD5Sum:58fa232055dff2700aa55e13c7932536 [weak]
    - Filesize:17706544 [weak]
    E: Internal Error, ordering was unable to handle the media swap

  • chrispokorni
    chrispokorni Posts: 2,413

    Hi @eporart,

    Please refrain from creating duplicate discussions. They may cause confusion with forum users and may also be removed by forum moderators if considered redundant. I would recommend renaming the current discussion to avoid such redundancy.

    I researched the installation steps from the official podman documentation and several blog posts, and it seems that some inconsistencies are preventing the podman package from getting installed at this time. After several trial attempts, the following sequence of commands seemed to work. Please run the sequence as the student / or non-root user:

    . /etc/os-release

    echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list

    curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -

    sudo apt update

    sudo apt upgrade -y

    sudo apt install -y gnupg2

    sudo apt install -y podman

    sudo apt install -y podman --fix-missing

    If the errors persist, re-run the following sequence:

    sudo apt install -y gnupg2

    sudo apt install -y podman

    sudo apt install -y podman --fix-missing

    sudo apt install -y gnupg2

    sudo apt install -y podman --fix-missing

    Regards,
    -Chris

  • eporart
    eporart Posts: 26

    thanks Chris!! I applied re-run steps and works for me

    student@student:~$ podman --version
    podman version 3.4.2

  • josepmaria
    josepmaria Posts: 82
    edited November 2024

    Hello @chrispokorni ,

    I have the same problem.

    I run a ubuntu (22.04.5) on a VM with enabled nested virtualisation.

    I have followed the steps you provide in your former answer to this question.

    Everything went well until I reached the command

    $ sudo apt install -y gnupg2
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Package gnupg2 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
    gpgv gpgsm gnupg-l10n gnupg dirmngr

    So I tried
    $ sudo apt install -y gpgsm & $ sudo apt install -y gnupg-l10n

    Then when running
    sudo apt install -y podman and sudo apt install -y podman --fix-missing

    but both commands yield the same error message

    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    podman : Depends: uidmap but it is not installable
    Recommends: podman-gvproxy (= 4:4.6.2-0ubuntu22.04+obs81.12) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    I did succesfuly download podman-gvproxy
    sudo wget https://github.com/containers/gvisor-tap-vsock.git

    but then, when tryingto run again commands
    sudo apt install -y podman and sudo apt install -y podman --fix-missing

    The same error message was displayed.

    Please kindly advise. Thanks

  • Hi @josepmaria,

    There is a note in the Podman installation exercise that may clarify how to install the package on your Ubuntu release, which seems to be newer than the release tested for labs.

    Regards,
    -Chris

  • Hi @chrispokorni ,

    Thanks for your answer.

    I shall have a look and try again.

    Sincerely,

    Josep Maria

Categories

Upcoming Training