Welcome to the new Linux Foundation Forum!

Lab 3.1

fargozhufargozhu Posts: 1
edited June 2018 in LFS258 Class Forum

Lab 3.1 step 3

[email protected]:~# apt-get install -y docker.io

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package docker.io is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another source

E: Package 'docker.io' has no installation candidate

[email protected]:~#

Comments

  • chrispokornichrispokorni Posts: 252
    edited June 2018

    Hi,

    Would you mind providing a few details about your setup to help in identifying the cause of your error? What distribution are you running? Are you on GCE, EC2, Azure vm, Virtual box, VMware,... ? What networking policy/firewall you have setup? 

    My setup on GCE, 2 vCPU instances, Ubuntu 16.04 LTS and 18.04 LTS produce a similar error only if I run the docker install command without an apt-get update before.

    To find if docker.io is available to install for your distribution you can try 


    apt-cache pkgnames

    or


    apt-cache search

    Depending on the distribution, a different docker installation approach may be required, based on their official documentation.

    Regards, 

    -Chris

  • serewiczserewicz Posts: 502

    Hello,

    I've seen this error when using Suse, and had to enable a particular backport to get it to work. Could you verify which version of Ubuntu you are using?

    Regards,

     

Sign In or Register to comment.