ncurses-base : Breaks: libtinfo5 (< 6.1) but 6.0+20161126-1+deb9u2 is to be inst

2022-11-23 14:13:19 浏览数 (1)

背景

容器内安装ps、vim命令

资源版本

  1. docker:20.10.21
  2. php:7.4-fpm

安装命令

代码语言:javascript复制
apt-get clean
apt-get update
apt install -y procps vim

报错

代码语言:javascript复制
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.

解决办法

代码语言:javascript复制
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! 否则安装不成功

0 人点赞