debian12에 vim을 설치할 때 버전 충돌이 발생합니다:
sudo apt install vim
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:8.1.0875-5+deb10u5) but 2:9.0.1378-2 is to be installed
E: Unable to correct problems, you have held broken packages.
그래서 다음을 삭제합니다 vim-common
.
sudo apt-get purge vim-common
다시 설치:
sudo apt-get install vim
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ncurses-base : Breaks: vim-common (< 2:9.0.1000-2) but 2:8.1.0875-5+deb10u5 is to be installed
ncurses-term : Breaks: vim-common (< 2:9.0.1000-2) but 2:8.1.0875-5+deb10u5 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
그렇다면 debian12에 vim을 설치하는 방법은 무엇입니까?
uname -a
Linux MiWiFi-R4A-srv 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 GNU/Linux