Unable to download or install vim-runtime_8.2.3995-1ubuntu2.16_all.deb using apt or directly from ubuntu packages site
I am unable to install vim-runtime on my Ubuntu 22.04 LTS machine:
#sudo apt install vim-runtime
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
vim-runtime
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/6835 kB of archives.
After this operation, 33.6 MB of additional disk space will be used.
(Reading database ... 92197 files and directories currently installed.)
Preparing to unpack .../vim-
Adding 'diversion of /usr/share/
Adding 'diversion of /usr/share/
Unpacking vim-runtime (2:8.2.
dpkg: error processing archive /var/cache/
unable to install new version of '/usr/share/
Removing 'diversion of /usr/share/
Removing 'diversion of /usr/share/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
# cd /var/cache/
# ls
libsodium23_
root@7XVL6G3:
(Reading database ... 92197 files and directories currently installed.)
Preparing to unpack vim-runtime_
Adding 'diversion of /usr/share/
Adding 'diversion of /usr/share/
Unpacking vim-runtime (2:8.2.
dpkg: error processing archive vim-runtime_
unable to open '/usr/share/
Removing 'diversion of /usr/share/
Removing 'diversion of /usr/share/
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
vim-runtime_
I get the same error when trying to install directly from http://
# sudo dpkg -i vim-runtime_
(Reading database ... 92197 files and directories currently installed.)
Preparing to unpack vim-runtime_
Adding 'diversion of /usr/share/
Adding 'diversion of /usr/share/
Unpacking vim-runtime (2:8.2.
dpkg: error processing archive vim-runtime_
unable to install new version of '/usr/share/
Removing 'diversion of /usr/share/
Removing 'diversion of /usr/share/
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
vim-runtime_
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu vim Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stephen Lanning
- Solved:
- Last query:
- Last reply: