容器内安装ps、vim命令
资源版本
apt-get clean
apt-get update
apt install -y procps vim
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ncurses-base : Breaks: libtinfo5 (< 6.1) but 6.0+20161126-1+deb9u2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@635b8dfcd2b3:/var/www/html# apt-get install libtinfo5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
ncurses-base
The following NEW packages will be installed:
libtinfo5
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
ncurses-base
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 300 kB of archives.
After this operation, 95.2 kB of additional disk space will be used.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
Get:1 http://mirrors.aliyun.com/debian stretch/main amd64 libtinfo5 amd64 6.0+20161126-1+deb9u2 [300 kB]
......
......
......
注意:一定要按照要求输入:Yes, do as I say!
否则安装不成功
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。