Странный глюк apt-file :)

Окт 29th, 2013 | Posted by | Filed under Debian, Linux, PC, Software

Обнаружил, что не работает команда update-command-not-found. Ошибка:

E: No config file found

Traceback (most recent call last):
File "/usr/sbin/update-command-not-found", line 91, in <module>
subprocess.check_call(["/usr/bin/apt-file", "update"])
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/apt-file', 'update']' returned non-zero exit status 1


Колупание в проблеме указало на то, что у apt-file отсутствует файл настроек /etc/apt/apt-file.conf. В то же время, aptitude reinstall apt-file проблему не решило. Побороть проблему помогло вот что:

aptitude purge apt-file

Она удалила apt-file и вместе с ней command-not-found.

aptitude install command-not-found
update-command-not-found

Создались базы apt-file и command-not-found.

No comments yet.