Welcome to the Linux Foundation Forum!

Containers Fundamentals (LFS253) Lab 4.4. Install Podman

Im working on this step:
[email protected]:~$ 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: 20

    Morning... here more information about the issue:

    [email protected]:~$ 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?
    [email protected]:~$ 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: 1,603

    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: 20

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

    [email protected]:~$ podman --version
    podman version 3.4.2

Categories

Upcoming Training