我正在尝试安装vim和libsqlite3-dev,但我总是收到消息某些软件包无法安装,我找不到修复方法。我尝试过以下命令,但仍然没有舔。
apt-get upgrade
apt-get update
apt-get update --fix-missing
非常感谢任何帮助。谢谢!
安装Vim
:~# 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:7.4.963-1ubuntu4) but 2:7.4.1689-3ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
尝试vim命令时显示
:~# vim
The program 'vim' can be found in the following packages:
* vim
* vim-gnome
* vim-tiny
* vim-athena
* vim-athena-py2
* vim-gnome-py2
* vim-gtk
* vim-gtk-py2
* vim-gtk3
* vim-gtk3-py2
* vim-nox
* vim-nox-py2
安装libsqlite3-dev
:~# apt-get install -y libsqlite3-dev ruby2.3-dev
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:
libsqlite3-dev : Depends: libsqlite3-0 (= 3.10.2-1) but 3.11.0-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
答案 0 :(得分:0)
在我进行分发升级然后重新启动计算机后,问题似乎已得到解决。之后我就能安装vim等了。