vim.gtk3 won't run after 22.04 upgrade: “libpng12.so.0: cannot open shared object file”
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| vim (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
After upgrading a system running Ubuntu 20.04 to 22.04, vim.gtk3 no longer runs:
$ vim.gtk3
vim.gtk3: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
(vim.basic still runs fine).
These are the vim packages we have installed, and their versions:
vim:amd64/
vim-common:
vim-gtk3:
vim-gui-
vim-runtime:
vim-tiny:
Previously I did have a PPA of Vim installed from http://
libpng12 isn't in Ubuntu any more, so I think the problem is that vim is trying to use it, not that it's missing.
Attached is strace output of the failure.

I'm unable to recreate this issue on a jammy system that has been upgraded from focal. Can you make sure all of your packages are up to date? After poking through the vim source code there are no references to libpng12, so it may be some dependency of vim that is out of date trying to read it.