我正在尝试使用 Zenity 删除旧内核(磁盘空间问题),正如 WinEunuuchs2Unix 在 2017 年 3 月 11 日(及后续)所述。
Zenity 列出了可以删除的内核。例如,一个“对”内核是(带有我认为通用的列标题):
4.13.0-36-generic.efi.signed Feb 22 2018 7 MB 227 MB
4.13.0-36-generic Feb 16 2018 77 MB 297 MB
当选择“确定”时,系统提示我找不到文件,如注销下方粘贴的屏幕输出所示。(我还得到了一个Gtk-Message
...但我不知道那是怎么回事。)
确实,使用时没有发现任何内容:
sudo find / -name linux-image-4.13.0-36-generic.efi.signed
Zenity 为何列出不存在的内核?有办法解决吗?
tscale:~$ sudo /usr/local/bin/rm-kernels
Gtk-Message: 10:01:48.382: GtkDialog mapped without a transient parent. This is discouraged.
find: ‘/usr/src/linux-headers-4.13.0-36*’: No such file or directory
find: ‘/usr/src/linux-headers-4.13.0-36*’: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-4.13.0-36-generic.efi.signed
E: Couldn't find any package by glob 'linux-image-4.13.0-36-generic.efi.signed'
E: Couldn't find any package by regex 'linux-image-4.13.0-36-generic.efi.signed'
E: Unable to locate package linux-headers-4.13.0-36
E: Couldn't find any package by glob 'linux-headers-4.13.0-36'
E: Couldn't find any package by regex 'linux-headers-4.13.0-36'
E: Unable to locate package linux-image-4.13.0-36-generic
E: Couldn't find any package by glob 'linux-image-4.13.0-36-generic'
E: Couldn't find any package by regex 'linux-image-4.13.0-36-generic'
E: Unable to locate package linux-headers-4.13.0-36
E: Couldn't find any package by glob 'linux-headers-4.13.0-36'
E: Couldn't find any package by regex 'linux-headers-4.13.0-36'
tscale:~$