Arquivo de lista de arquivos para pacote ausente - aviso dpkg

4

Eu quero instalar o Open JDK ou o Oracle JDK em minha máquina, mas recebi um erro durante a instalação. O erro é:

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)

Eu procurei no Google e tentei algo para instalar / reinstalar esses pacotes. Finalmente eu tento remover o Unity. Eu enfrentei esse erro para todas as minhas tentativas. Eu estou usando o Xmonad. Como posso resolver este problema?

    
por Mert Saygı 01.01.2016 / 01:56

2 respostas

5

Sete comandos para recriar o arquivo de lista para cada pacote (para uma máquina de 64 bits).

Mas primeiro corra

sudo apt-get autoclean

para remover DEBs desnecessários em /var/cache/apt/archives . Isso é necessário que os seguintes comandos funcionem corretamente.

find /var/cache/apt/archives/ -type f -name 'unity-scope-gourmet_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} | tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-gourmet.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-gourmet.list
find /var/cache/apt/archives/ -type f -name 'unity-scope-guayadeque_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} | tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-guayadeque.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-guayadeque.list
find /var/cache/apt/archives/ -type f -name 'unity-scope-gmusicbrowser_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} |tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-gmusicbrowser.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-gmusicbrowser.list
find /var/cache/apt/archives/ -type f -name 'unity-scope-manpages_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} | tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-manpages.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-manpages.list
find /var/cache/apt/archives/ -type f -name 'unity-scope-firefoxbookmarks_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} | tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-firefoxbookmarks.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-firefoxbookmarks.list
find /var/cache/apt/archives/ -type f -name 'unity-scope-gdrive_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} | tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-gdrive.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-gdrive.list
find /var/cache/apt/archives/ -type f -name 'unity-scope-home_*amd64.deb' -print -quit | xargs -I{} dpkg-deb --fsys-tarfile {} | tar t | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' | sudo tee /var/lib/dpkg/info/unity-scope-home.list; sudo chmod ugo+r /var/lib/dpkg/info/unity-scope-home.list

Alguns testes depois, o comando

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

também deve ajudar.

    
por A.B. 01.01.2016 / 13:08
-1

Eu tentei a abordagem do A.B., mas enfrentei o mesmo erro com o unity-scope-devhelp. Então, eu deletei /var/lib/dpkg/unity-scope-devhelp.list

Funciona:)

    
por Mert Saygı 01.01.2016 / 14:20