How to Install Gvim?
I Have Done the Following: Sudo Apt-Get Install Vim-Gnome but I Get the Following: Vim-Gnome: Depends: Libruby1.8 (>= 1.8.7.352) but 1.8.6.111-2Ubuntu1 Is to...
I have done the following:
sudo apt-get install vim-gnome
But I get the following:
vim-gnome : Depends: libruby1.8 (>= 1.8.7.352) but 1.8.6.111-2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
I've done:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Contents of my /etc/apt/sources.list file:
deb oneiric main restricted
deb-src oneiric main restricted
deb oneiric-updates main restricted
deb-src oneiric-updates main restricted
deb oneiric universe
deb-src oneiric universe
deb oneiric-updates universe
deb-src oneiric-updates universe
deb oneiric multiverse
deb-src oneiric multiverse
deb oneiric-updates multiverse
deb-src oneiric-updates multiverse
deb oneiric-security main restricted
deb-src oneiric-security main restricted
deb oneiric-security universe
deb-src oneiric-security universe
deb oneiric-security multiverse
deb-src oneiric-security multiverse
But all to no avail. I always get the same error above.
What can I do to resolve?
5 Answers
On Ubuntu 20.04 (since vim-gnome was removed in 19.10):
sudo apt install vim-gtk3
The following worked for me:
run this
sudo apt-get update
and then run
sudo apt-get install vim-gnome
You'll need to check your sources. I see that libruby1.8 1.8.7.352-2 is available through main while it seems that the newest version you have is: 1.8.6.111-2ubuntu1. This probably means that you dist-upgrade failed or that you still need to update your sources.
$ apt-cache policy libruby1.8
libruby1.8:
Installed: 1.8.7.352-2
Candidate: 1.8.7.352-2
Version table:
*** 1.8.7.352-2 0
500 oneiric/main amd64 Packages
100 /var/lib/dpkg/status
in Ubuntu 16.04 it should be:
sudo apt update
and then
sudo apt install vim-gnome
What worked for me :
sudo apt remove vim-common
sudo apt-get install vim-gnome