Corrigindo dependências

0

Durante a instalação de um jogo, o gerenciador de pacotes exigia alguns pacotes e, depois de inseridos, em vez de instalá-los, era necessário o seguinte:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 grub-pc : Depends: grub-common (= 2.02~beta2-36ubuntu3.14)
 grub-pc-bin : Depends: grub-common (= 2.02~beta2-36ubuntu3.14)
 grub2-common : Depends: grub-common (= 2.02~beta2-36ubuntu3.14)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Após inserir o comando necessário, não resolveu o problema. : (

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  grub-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common
1 upgraded, 0 newly installed, 0 to remove and 244 not upgraded.
3 not fully installed or removed.
Need to get 0 B/1.705 kB of archives.
After this operation, 8.192 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: warning: files list file for package 'libdbusmenu-gtk3-4:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdbusmenu-glib4:amd64'     missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libappindicator3-1' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python2.7-dev' missing; assuming     package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libpython2.7-minimal:amd64' is missing final     newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

É uma questão recorrente?

    
por Bruno Henrique Peixoto 09.12.2017 / 18:17

1 resposta

0

Primeiro, gostaria de sugerir o uso de aptitude (em vez de apt-get ), de alguma forma achei melhor resolver problemas de dependência

O que realmente aconteceu com você parece um problema de pacote: dpkg: unrecoverable fatal error, aborting: files list file for package 'libpython2.7-minimal:amd64' is missing final newline

O mais provável é que isso cause dores de cabeça.

Rapidamente googling isso revela: link

Portanto, vamos tentar remover esse pacote do seu sistema (ele deve estar em algum lugar abaixo de /var/cache/apt/ e, em seguida, instalá-lo novamente.

Eu presumo que o pacote (de alguma forma) já tenha sido quebrado em seu sistema.

    
por 09.12.2017 / 20:25