意外删除了 /usr/share/m17n/icons。我该如何恢复它?

意外删除了 /usr/share/m17n/icons。我该如何恢复它?

我删除了文件夹中两个不必要的文件/usr/share/m17n/icons,然后我正要删除/usr/share/m17n文件夹中的另外两个文件。

我没有注意到按Shift+时图标仍处于选中状态Delete。现在图标不见了。我该如何修复?

答案1

您可以使用dpkg标志-S来识别安装路径中的图标的包,/usr/share/m17n/icons 它用于安装/管理单个包,在这种情况下用于识别要重新安装的包。

man dpkg

NAME

       dpkg - package manager for Debian

SYNOPSIS

       dpkg [option...] action

[...]

DESCRIPTION

       dpkg is a tool to install, build, remove and manage Debian
       packages. The primary and more user-friendly front-end for dpkg
       is aptitude(1). dpkg itself is controlled entirely via command
       line parameters, which consist of exactly one action and zero or
       more options. The action-parameter tells dpkg what to do and
       options control the behavior of the action in some way.

       dpkg can also be used as a front-end to dpkg-deb(1) and
       dpkg-query(1). The list of supported actions can be found later
       on in the ACTIONS section. If any such action is encountered dpkg
       just runs dpkg-deb or dpkg-query with the parameters given to it,
       but no specific options are currently passed to them, to use any
       such option the back-ends need to be called directly.

[...]

-S, --search filename-search-pattern...
                  Search for a filename from installed packages.

打开终端并运行,dpkg -S /usr/share/m17n/icons/查看受影响的软件包m17n-db

$ dpkg -S /usr/share/m17n/icons/
m17n-db: /usr/share/m17n/icons

因此,运行以下命令就足够了:sudo apt --reinstall install m17n-db

相关内容