最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Update CPAN-2.28 to latest version on Ubuntu docker image - Stack Overflow

programmeradmin3浏览0评论

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
  • Which version of Ubuntu? Please provide an image minimal reproducible example, including your FROM clause. – β.εηοιτ.βε Commented Mar 5 at 17:43
Add a comment  | 

1 Answer 1

Reset to default 0

Try adding the universe repository on top, which provides libyaml-syck-perl ...

RUN sudo add-apt-repository universe
发布评论

评论列表(0)

  1. 暂无评论