I am trying to install vi and vim
I initially had vi instlled, and could not install vim, then I removed vi, and now I cannot install both.
I watch all threads in internet, that says you should update, uninstall or purge, then reinstall, but none are working.
Here are the logs:
[root@artik ~]# apt-get install vi.tiny
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vi.tiny
E: Couldn't find any package by glob 'vi.tiny'
E: Couldn't find any package by regex 'vi.tiny'
[root@artik ~]# 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.1.0788-0york0~16.04) but 2:8.1.0837-0york0~16.04 is to be installed
Depends: vim-runtime (= 2:8.1.0788-0york0~16.04) but 2:8.1.0837-0york0~16.04 is to be installed
E: Unable to correct problems, you have held broken packages.
now, file /etc/apt/sources.list
[root@artik ~]# cat /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main universe
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security main universe
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main universe
deb [arch=armhf] https://download.docker.com/linux/ubuntu xenial stable
# deb-src [arch=armhf] https://download.docker.com/linux/ubuntu xenial stable
deb http://archive.ubuntu.com/ubuntu xenial main universe
# deb-src http://archive.ubuntu.com/ubuntu xenial main universe
I am running ubuntu on Artik board
EDIT: Inside /etc/apt/sources.list.d/ I have:
[root@artik ~]# ls /etc/apt/sources.list.d/
artik-e2e-source.list
artik-e2e-source.list.save
artik-platform-artik533s-sources.list
artik-platform-artik533s-sources.list.save
jonathonf-ubuntu-vim-xenial.list
jonathonf-ubuntu-vim-xenial.list.save
nodesource.list
nodesource.list.save
and apt-cache
[root@artik ~]# apt-cache policy vim vim-common
vim:
Installed: (none)
Candidate: 2:8.1.0788-0york0~16.04
Version table:
2:8.1.0788-0york0~16.04 500
500 http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial/main armhf Packages
2:7.4.1689-3ubuntu1.2 500
500 http://ports.ubuntu.com/ubuntu-ports xenial-security/main armhf Packages
500 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main armhf Packages
2:7.4.1689-3ubuntu1 500
500 http://ports.ubuntu.com/ubuntu-ports xenial/main armhf Packages
vim-common:
Installed: (none)
Candidate: 2:8.1.0837-0york0~16.04
Version table:
2:8.1.0837-0york0~16.04 500
500 http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial/main armhf Packages
100 /var/lib/dpkg/status
2:8.1.0788-0york0~16.04 500
500 http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial/main armhf Packages
2:7.4.1689-3ubuntu1.2 500
500 http://ports.ubuntu.com/ubuntu-ports xenial-security/main armhf Packages
500 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main armhf Packages
2:7.4.1689-3ubuntu1 500
500 http://ports.ubuntu.com/ubuntu-ports xenial/main armhf Packages
EDIT 2:
When I do apt-get update
I get an error, I don't know if it is important:
Err:7 http://archive.ubuntu.com/ubuntu xenial/main armhf Packages
404 Not Found [IP: 91.189.88.162 80]
vim-tiny
, notvi.tiny
. However, you have a bigger problem to solve currently…apt-cache policy vim vim-common
to your question, as the your vim package is not coming from official Ubuntu sources as I read packages.ubuntu.com/xenial/vim (officialvim
requiresvim-common
2:7.4.1689-3ubuntu1 not what is listed in your messages)