【Ubuntu】Vimのインストール時のエラー

目次

エラー

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ apt-get install vim

Reading package lists... Done
Building dependency tree
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.2.2815-0york0~18.04) but 2:8.2.3458-0york0~18.04 is to be installed
Depends: vim-runtime (= 2:8.2.2815-0york0~18.04) but 2:8.2.3458-0york0~18.04 is to be installed
E: Unable to correct problems, you have held broken packages.

解決方法

以下の2つのコマンドを実行

1
2
apt-get install --reinstall vim-common=2:8.2.2815-0york0~18.04
apt-get install --reinstall vim-runtime=2:8.2.2815-0york0~18.04
Author

Daiki Iijima

Posted on

2021-10-29

Updated on

2024-04-17

Licensed under