Debug update-command-not-found on Debian

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












What is the problem I am having with command-not-found? Is it a known bug?



$ 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


This command returns after less than a second, and does not actually help:



$ 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) = 0
read(5, "3363rn250321200Xc4@sad"..., 4096) = 3602
fstat(5, st_mode=S_IFREG) = 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, 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 +++






share|improve this question
























    up vote
    0
    down vote

    favorite












    What is the problem I am having with command-not-found? Is it a known bug?



    $ 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


    This command returns after less than a second, and does not actually help:



    $ 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) = 0
    read(5, "3363rn250321200Xc4@sad"..., 4096) = 3602
    fstat(5, st_mode=S_IFREG) = 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, 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 +++






    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      What is the problem I am having with command-not-found? Is it a known bug?



      $ 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


      This command returns after less than a second, and does not actually help:



      $ 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) = 0
      read(5, "3363rn250321200Xc4@sad"..., 4096) = 3602
      fstat(5, st_mode=S_IFREG) = 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, 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 +++






      share|improve this question












      What is the problem I am having with command-not-found? Is it a known bug?



      $ 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


      This command returns after less than a second, and does not actually help:



      $ 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) = 0
      read(5, "3363rn250321200Xc4@sad"..., 4096) = 3602
      fstat(5, st_mode=S_IFREG) = 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, 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 +++








      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 '17 at 11:12









      sourcejedi

      19.5k32681




      19.5k32681




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          See Debian bug #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.







          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403887%2fdebug-update-command-not-found-on-debian%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            See Debian bug #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.







            share|improve this answer
























              up vote
              1
              down vote



              accepted










              See Debian bug #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.







              share|improve this answer






















                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                See Debian bug #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.







                share|improve this answer












                See Debian bug #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.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 11 '17 at 11:12









                sourcejedi

                19.5k32681




                19.5k32681



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403887%2fdebug-update-command-not-found-on-debian%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?