Debug update-command-not-found no Debian

0

Qual é o problema que estou tendo com o comando não encontrado? É um bug conhecido?

$ dpkg-query --show command-not-found
command-not-found   0.2.38-4

$ installme
Could not find the list of available applications, run update-command-not-found as root to fix this
installme: command not found

$ sudo update-command-not-found

Este comando retorna após menos de um segundo e não ajuda realmente:

$ installme
Could not find the list of available applications, run update-command-not-found as root to fix this
installme: command not found
$ sudo strace -f update-command-not-found
...
open("/usr/lib/python2.7/fnmatch.pyc", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=3602, ...}) = 0
read(5, "3\r\n010Xc
$ dpkg-query --show command-not-found
command-not-found   0.2.38-4

$ installme
Could not find the list of available applications, run update-command-not-found as root to fix this
installme: command not found

$ sudo update-command-not-found
$ installme
Could not find the list of available applications, run update-command-not-found as root to fix this
installme: command not found
$ sudo strace -f update-command-not-found
...
open("/usr/lib/python2.7/fnmatch.pyc", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=3602, ...}) = 0
read(5, "3\r\n010Xc%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%@%pre%%pre%%pre%sa%pre%%pre%%pre%d%pre%"..., 4096) = 3602
fstat(5, {st_mode=S_IFREG|0644, st_size=3602, ...}) = 0
read(5, "", 4096)                       = 0
close(5)                                = 0
close(4)                                = 0
close(3)                                = 0
open("/var/lib/apt/lists", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents(3, /* 21 entries */, 32768)    = 1584
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
umask(022)                              = 022
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc5a847c0c0}, {sa_handler=0x5633718d3e60, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc5a847c0c0}, 8) = 0
brk(0x563372c40000)                     = 0x563372c40000
munmap(0x7fc5a7180000, 262144)          = 0
exit_group(0)                           = ?
+++ exited with 0 +++
%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%@%pre%%pre%%pre%sa%pre%%pre%%pre%d%pre%"..., 4096) = 3602 fstat(5, {st_mode=S_IFREG|0644, st_size=3602, ...}) = 0 read(5, "", 4096) = 0 close(5) = 0 close(4) = 0 close(3) = 0 open("/var/lib/apt/lists", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 getdents(3, /* 21 entries */, 32768) = 1584 getdents(3, /* 0 entries */, 32768) = 0 close(3) = 0 umask(022) = 022 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc5a847c0c0}, {sa_handler=0x5633718d3e60, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc5a847c0c0}, 8) = 0 brk(0x563372c40000) = 0x563372c40000 munmap(0x7fc5a7180000, 262144) = 0 exit_group(0) = ? +++ exited with 0 +++
    
por sourcejedi 11.11.2017 / 12:12

1 resposta

1

Veja o erro da Debian # 857090 .

This seems to be the case when you run update-command-not-found without any Contents-file downloaded. If you run "apt update" after installation it works without problems.

I think update-command-not-found should make it clearer that you need to update the apt-cache prior to running it.

    
por 11.11.2017 / 12:12