On Thu, 18 Dec 2025, Cyril Brulebois wrote: >That doesn't seen to work for those who would have keyboards-rg >installed though: > > Preparing to unpack .../xkb-data_2.46-2_all.deb ... > dpkg-maintscript-helper: error: file '/usr/share/X11/xkb/symbols/pancyr' > not owned by package 'xkb-data:all' > dpkg-maintscript-helper: error: file '/usr/share/X11/xkb/symbols/sk_rg' > not owned by package 'xkb-data:all' > dpkg-maintscript-helper: error: file '/usr/share/X11/xkb/symbols/sk_snk' > not owned by package 'xkb-data:all' > dpkg-maintscript-helper: error: file '/usr/share/X11/xkb/symbols/eo_rg' > not owned by package 'xkb-data:all' > dpkg-maintscript-helper: error: directory '/usr/share/X11/xkb' contains > files not owned by package xkb-data:all, cannot switch to symlink > dpkg: error processing archive > /var/cache/apt/archives/xkb-data_2.46-2_all.deb (--install): > new xkb-data package pre-installation script subprocess returned error > exit status 1 > >I'm not sure how that would be best solved, possibly by just switching >that package's files from the old location to the new one, without >having to add any kind of specific relationship towards xkb-data?
That sounds like it will introduce silent breakage afterwards, when xkb-data switches from -2 to -3 in its directory name. I’d rather suggest that the “active” flavour of xkb-data installs a symlink farm in /usr/share/X11/xkb/** and leaves the latter as directories and that the thing that does the X server configuration look in that directory so add-on xkb layouts (I have one, too!) continue to work. That is: - revert the dir_to_symlink - execute_after_dh_install needs to remove the symlink and add a symlink farm (if Debian only ships the one version, otherwise it would need alternatives) bye, //mirabilos -- Sometimes they [people] care too much: pretty printers [and syntax highligh- ting, d.A.] mechanically produce pretty output that accentuates irrelevant detail in the program, which is as sensible as putting all the prepositions in English text in bold font. -- Rob Pike in "Notes on Programming in C"

