I was trying the new xubuntu 20.04 beta today, and wanted to report a bug concerning the terminfo files (the terminfo for xterm-256color has an escape sequence that older vte/terminals don't recognize, so when ssh'ing in to 20.04 from 18.04, vi becomes unusable, see https://bugs.launchpad.net/ubuntu/+bug/1872896).
However, I can't find the package the terminfo files come from:
# ls -l /usr/lib/terminfo/x/xterm-256color
-rw-r--r-- 1 root root 3503 Feb 26 08:14 /usr/lib/terminfo/x/xterm-256color
# dpkg -S /usr/lib/terminfo/x/xterm-256color
dpkg-query: no path found matching pattern /usr/lib/terminfo/x/xterm-256color
# apt-file search /usr/lib/terminfo/x/xterm-256color
(no output at all)
#
apt list installed | grep terminfo doesn't list anything either.
I assumed the files get generated from some source during install, but that doesn't match the date (Feb 26 is way older than my install), and the file itself isn't a link to some other file, checking the link count.
So, which package is actually responsible for terminfo files, and how do I find out?
ncurses-baseprovides/lib/terminfo/x/xterm-256color. Perhaps yourdpkg -Ssearch is coming up empty because the/usr/libversion is a symlink? See https://packages.ubuntu.com/focal/all/ncurses-base/filelist – steeldriver Apr 15 '20 at 11:15/libis a symlink to/usr/lib- that's whyrealpathandnamei -mdidn't find any symlinks when checking the/usr/lib/path. So yes,ncurses-baseprovides the file in/lib, and the symlink redirects it to/usr/lib. – Guntram Blohm Apr 15 '20 at 11:42dpkg -S /usr/lib/terminfo/x/xterm-256colorwill show which package provides the file. – waltinator Apr 15 '20 at 13:21