При попытке удалить чашки с Linux-машины остался какой-то «файл Шредингера»: ls показывает его, но в остальном его нет. Система - ubuntu 17.10 / ядро 4.13, файловая система - BTRFS raid1 на 2 устройствах. Вот фрагмент оболочки, показывающий проблему:
root@kiney-desktop /root $ apt-get purge cups-daemon -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libarmadillo6 libdap17v5 libgdal1i libhdf5-10 liblwgeom-2.1.8 libossp-uuid16 libpoppler58 libproj9 libsane-hpaio libsuperlu4 python3-reportlab python3-reportlab-accel
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
cups-daemon*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 965513 files and directories currently installed.)
Purging configuration files for cups-daemon (2.2.4-7ubuntu3.1) ...
rm: cannot remove '/var/cache/cups': Directory not empty
dpkg: error processing package cups-daemon (--purge):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
cups-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@kiney-desktop /root $ cd /var/cache/cups/
root@kiney-desktop /var/cache/cups $ ls -lsha
ls: cannot access 'job.cache': No such file or directory
total 0
0 drwxrwx--- 1 root lp 18 Aug 14 19:39 .
0 drwxr-xr-x 1 root root 514 Jan 26 2018 ..
? -????????? ? ? ? ? ? job.cache
root@kiney-desktop /var/cache/cups $ rm job.cache
rm: cannot remove 'job.cache': No such file or directory
root@kiney-desktop /var/cache/cups $ stat job.cache
stat: cannot stat 'job.cache': No such file or directory
"ls" в / var / cache / cups показывает файл job.cache, но без дополнительной информации, только вопросительные знаки. Я не могу удалить или просмотреть файл. У меня есть снимки файловой системы только для чтения BTRFS, прежде чем пытаться удалить чашки, они показывают файл таким же образом. Так что здесь происходит? Это ошибка?