dockerfile中apt-install处理continue

本文介绍了解决在使用APT工具安装软件包过程中出现的确认提示问题。通过使用--assume-yes参数可以避免安装过程中的手动确认步骤,实现自动化安装。文章还提供了一个具体的错误示例及解决方案。

##报错

Step 6 : RUN apt-get install lsof
 ---> Running in 3bffcff2a321
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libperl4-corelibs-perl
The following NEW packages will be installed:
  libperl4-corelibs-perl lsof
0 upgraded, 2 newly installed, 0 to remove and 57 not upgraded.
Need to get 360 kB of archives.
After this operation, 692 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c apt-get install lsof' returned a non-zero code: 1

##使用assume-yes

apt-get install lsof --assume-yes

##doc

转载于:https://my.oschina.net/go4it/blog/824885

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值