Files list file for package missing — dpkg warning












6















I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:



Selecting previously unselected package oracle-java8-installer.
dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
E: Sub-process /usr/bin/dpkg returned an error code (2)


I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?










share|improve this question





























    6















    I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:



    Selecting previously unselected package oracle-java8-installer.
    dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
    dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
    dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
    dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
    dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
    dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
    dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
    E: Sub-process /usr/bin/dpkg returned an error code (2)


    I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?










    share|improve this question



























      6












      6








      6








      I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:



      Selecting previously unselected package oracle-java8-installer.
      dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
      E: Sub-process /usr/bin/dpkg returned an error code (2)


      I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?










      share|improve this question
















      I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:



      Selecting previously unselected package oracle-java8-installer.
      dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
      dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
      E: Sub-process /usr/bin/dpkg returned an error code (2)


      I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?







      software-installation dpkg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 30 '17 at 12:58









      Stephen Ostermiller

      2,57512544




      2,57512544










      asked Jan 1 '16 at 0:56









      Mert SaygıMert Saygı

      3113




      3113






















          2 Answers
          2






          active

          oldest

          votes


















          9














          One loop over the seven packages' names to recreate the list-file for each package.



          But first run



          sudo apt-get autoclean


          to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.



          arch="$(dpkg --print-architecture)"
          for p in
          unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
          unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
          unity-scope-home
          do
          find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
          done
          sudo chmod -R a+r /var/lib/dpkg/info




          Some tests later, the command



          sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home


          should also help.






          share|improve this answer


























          • dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

            – muru
            Jan 1 '16 at 12:21













          • Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

            – Timo
            Mar 5 '18 at 19:55











          • @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

            – David Foerster
            Jul 22 '18 at 5:53



















          -1














          I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list



          It Works :)






          share|improve this answer



















          • 1





            Why didn't you adapt A.B.'s method for unity-scope-devhelp?

            – muru
            Jan 1 '16 at 16:22













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f715558%2ffiles-list-file-for-package-missing-dpkg-warning%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          9














          One loop over the seven packages' names to recreate the list-file for each package.



          But first run



          sudo apt-get autoclean


          to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.



          arch="$(dpkg --print-architecture)"
          for p in
          unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
          unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
          unity-scope-home
          do
          find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
          done
          sudo chmod -R a+r /var/lib/dpkg/info




          Some tests later, the command



          sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home


          should also help.






          share|improve this answer


























          • dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

            – muru
            Jan 1 '16 at 12:21













          • Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

            – Timo
            Mar 5 '18 at 19:55











          • @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

            – David Foerster
            Jul 22 '18 at 5:53
















          9














          One loop over the seven packages' names to recreate the list-file for each package.



          But first run



          sudo apt-get autoclean


          to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.



          arch="$(dpkg --print-architecture)"
          for p in
          unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
          unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
          unity-scope-home
          do
          find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
          done
          sudo chmod -R a+r /var/lib/dpkg/info




          Some tests later, the command



          sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home


          should also help.






          share|improve this answer


























          • dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

            – muru
            Jan 1 '16 at 12:21













          • Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

            – Timo
            Mar 5 '18 at 19:55











          • @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

            – David Foerster
            Jul 22 '18 at 5:53














          9












          9








          9







          One loop over the seven packages' names to recreate the list-file for each package.



          But first run



          sudo apt-get autoclean


          to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.



          arch="$(dpkg --print-architecture)"
          for p in
          unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
          unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
          unity-scope-home
          do
          find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
          done
          sudo chmod -R a+r /var/lib/dpkg/info




          Some tests later, the command



          sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home


          should also help.






          share|improve this answer















          One loop over the seven packages' names to recreate the list-file for each package.



          But first run



          sudo apt-get autoclean


          to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.



          arch="$(dpkg --print-architecture)"
          for p in
          unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
          unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
          unity-scope-home
          do
          find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
          done
          sudo chmod -R a+r /var/lib/dpkg/info




          Some tests later, the command



          sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home


          should also help.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 22 '18 at 5:51









          David Foerster

          28.5k1367113




          28.5k1367113










          answered Jan 1 '16 at 12:08









          A.B.A.B.

          69.6k12172266




          69.6k12172266













          • dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

            – muru
            Jan 1 '16 at 12:21













          • Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

            – Timo
            Mar 5 '18 at 19:55











          • @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

            – David Foerster
            Jul 22 '18 at 5:53



















          • dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

            – muru
            Jan 1 '16 at 12:21













          • Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

            – Timo
            Mar 5 '18 at 19:55











          • @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

            – David Foerster
            Jul 22 '18 at 5:53

















          dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

          – muru
          Jan 1 '16 at 12:21







          dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...

          – muru
          Jan 1 '16 at 12:21















          Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

          – Timo
          Mar 5 '18 at 19:55





          Can you explain in detail one command to recreate? What if I do not want to install but to remove the package?

          – Timo
          Mar 5 '18 at 19:55













          @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

          – David Foerster
          Jul 22 '18 at 5:53





          @Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.

          – David Foerster
          Jul 22 '18 at 5:53













          -1














          I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list



          It Works :)






          share|improve this answer



















          • 1





            Why didn't you adapt A.B.'s method for unity-scope-devhelp?

            – muru
            Jan 1 '16 at 16:22


















          -1














          I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list



          It Works :)






          share|improve this answer



















          • 1





            Why didn't you adapt A.B.'s method for unity-scope-devhelp?

            – muru
            Jan 1 '16 at 16:22
















          -1












          -1








          -1







          I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list



          It Works :)






          share|improve this answer













          I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list



          It Works :)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 1 '16 at 13:20









          Mert SaygıMert Saygı

          3113




          3113








          • 1





            Why didn't you adapt A.B.'s method for unity-scope-devhelp?

            – muru
            Jan 1 '16 at 16:22
















          • 1





            Why didn't you adapt A.B.'s method for unity-scope-devhelp?

            – muru
            Jan 1 '16 at 16:22










          1




          1





          Why didn't you adapt A.B.'s method for unity-scope-devhelp?

          – muru
          Jan 1 '16 at 16:22







          Why didn't you adapt A.B.'s method for unity-scope-devhelp?

          – muru
          Jan 1 '16 at 16:22




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f715558%2ffiles-list-file-for-package-missing-dpkg-warning%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          第一次世界大戦

          Touch on Surface Book