I have a Docker image with Ubuntu and I need to update CPAN-2.28 to latest version. I tried to run:
RUN apt-get install libyaml-syck-perl libtemplate-perl libwww-perl
RUN perl -MCPAN -e shell
But I get error:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libyaml-syck-perl
Do you know what is the proper way to make the update?
I have a Docker image with Ubuntu and I need to update CPAN-2.28 to latest version. I tried to run:
RUN apt-get install libyaml-syck-perl libtemplate-perl libwww-perl
RUN perl -MCPAN -e shell
But I get error:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libyaml-syck-perl
Do you know what is the proper way to make the update?
Share asked Mar 5 at 17:24 Peter PenzovPeter Penzov 1,630156 gold badges501 silver badges910 bronze badges 1 |1 Answer
Reset to default 0Try adding the universe repository on top, which provides libyaml-syck-perl
...
RUN sudo add-apt-repository universe
FROM
clause. – β.εηοιτ.βε Commented Mar 5 at 17:43