在我的 WSL-debian 上,
$ uname -a
Linux BlahBlah 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 GNU/Linux
我无法从 apt ( sudo apt install neovim
) 安装 neovim,因为未满足的依赖关系由以下原因触发ncurses-base
:
The following packages have unmet dependencies:
ncurses-base : Breaks: neovim (< 0.6.0) but 0.4.4-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
有办法解决吗?
根据这个链接,我应该检查/var/log/dist-upgrade/apt.log
以找到一些损坏的软件包,但我什至系统中没有此日志文件,因此我假设当前没有损坏的软件包。
$ apt show ncurses-base
Package: ncurses-base
Version: 6.4-4
Status: install ok installed
Priority: required
Essential: yes
Section: misc
Source: ncurses
Maintainer: Craig Small <[email protected]>
Installed-Size: 388 kB
Provides: ncurses-runtime
Breaks: bash-static (<< 4.4.18-1.1), libmono-corlib4.5-cil (<< 4.6.2.7+dfsg-2), libslang2 (<< 2.3.1a-3), libtinfo5 (<< 6.1), libunibilium0 (<< 2), libunibilium4 (<< 2.0.0-3), neovim (<< 0.6.0), vim-common (<< 2:9.0.1000-2), zsh-static (<< 5.4.2-4)
Homepage: https://invisible-island.net/ncurses/
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: basic terminal type definitions
The ncurses library routines are a terminal-independent method of
updating character screens with reasonable optimization.
.
This package contains terminfo data files to support the most common types of
terminal, including ansi, dumb, linux, rxvt, screen, sun, vt100, vt102, vt220,
vt52, and xterm.