@ wrote... (2 years, 7 months ago)

At work I upgraded to Ubuntu 16.04 LTS and every time I ran gvim I got a bunch of errors.

(gvim:19805): Gtk-WARNING **: /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so: cannot open shared object file: No such file or directory
(gvim:19805): Gtk-WARNING **: Loading IM context type 'fcitx' failed

I needed to figure out which package owned that file:

[kneufeld@gambit ~]
$ gvim foo
(gvim:3240): Gtk-WARNING **: /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so: cannot open shared object file: No such file or directory
(gvim:3240): Gtk-WARNING **: Loading IM context type 'fcitx' failed
# super annoying

[kneufeld@gambit ~]
$ apt-file search /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so
The program 'apt-file' is currently not installed. You can install it by typing:
sudo apt install apt-file
# really? ok fine.

[kneufeld@gambit ~]
$ sudo apt install apt-file

[kneufeld@gambit ~]
$ apt-file search /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so
E: The cache is empty. You need to run 'apt-file update' first.
# wut? these pretzels are starting make me thirsty.

[kneufeld@gambit ~]
$ sudo apt-file update

[kneufeld@gambit ~]
$ apt-file search /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so
fcitx-frontend-gtk2: /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so
# finally

[kneufeld@gambit ~]
$ sudo apt install fcitx-frontend-gtk2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
fcitx-frontend-gtk2 is already the newest version (1:4.2.9.1-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
# these pretzels are definitely making me thirsty

[kneufeld@gambit ~]
$ sudo apt install --reinstall fcitx-frontend-gtk2

[kneufeld@gambit ~]
$ gvim foo
# nirvana at last

tl;dr

sudo apt install --reinstall fcitx-frontend-gtk2
Category: tech, Tags: linux, ubuntu
Comments: 0
Click here to add a comment