quebrado dpkg, X após nvidia driver install no Debian

1

Seguindo as instruções de instalação do Debian para drivers NVidia para o Debian 8 "Jessie" , eu acertei um problema que não consigo entender fora ...

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
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:
 glx-alternative-mesa : Depends: glx-diversions (= 0.7.2) but 0.5.1 is to be installed
 linux-headers-amd64 : Depends: linux-headers-4.5.0-1-amd64 but it is not going to be installed
 update-glx : Depends: glx-diversions (= 0.7.2) but 0.5.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libjansson4 libxnvctrl0 nvidia-settings
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  glx-alternative-nvidia glx-diversions libegl1-nvidia libgl1-nvidia-glx libnvidia-eglcore
  nvidia-alternative nvidia-driver nvidia-driver-bin nvidia-kernel-common nvidia-kernel-dkms
  nvidia-kernel-support nvidia-legacy-check nvidia-vdpau-driver xserver-xorg-video-nvidia
Recommended packages:
  libgl1-nvidia-glx-i386 libgles1-nvidia libgles2-nvidia nvidia-persistenced
The following NEW packages will be installed:
  nvidia-kernel-support nvidia-legacy-check
The following packages will be upgraded:
  glx-alternative-nvidia glx-diversions libegl1-nvidia libgl1-nvidia-glx libnvidia-eglcore
  nvidia-alternative nvidia-driver nvidia-driver-bin nvidia-kernel-common nvidia-kernel-dkms
  nvidia-vdpau-driver xserver-xorg-video-nvidia
12 upgraded, 2 newly installed, 0 to remove and 1090 not upgraded.
2 not fully installed or removed.
Need to get 0 B/23.3 MB of archives.
After this operation, 4,727 kB disk space will be freed.
Do you want to continue? [Y/n] 
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 249357 files and directories currently installed.)
Preparing to unpack .../nvidia-legacy-check_352.79-6_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-legacy-check_352.79-6_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 128
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-legacy-check_352.79-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ok ... então, o que significa 'status de saída de erro 128'?

# dpkg -Dh
dpkg debugging option, --debug=<octal> or -D<octal>:

 Number  Ref. in source   Description
      1  general          Generally helpful progress information
      2  scripts          Invocation and status of maintainer scripts
     10  eachfile         Output for each file processed
    100  eachfiledetail   Lots of output for each file processed
     20  conff            Output for each configuration file
    200  conffdetail      Lots of output for each configuration file
     40  depcon           Dependencies and conflicts
    400  depcondetail     Lots of dependencies/conflicts output
  10000  triggers         Trigger activation and processing
  20000  triggersdetail   Lots of output regarding triggers
  40000  triggersstupid   Silly amounts of output regarding triggers
   1000  veryverbose      Lots of drivel about eg the dpkg/info directory
   2000  stupidlyverbose  Insane amounts of drivel

Debugging options can be mixed using bitwise-or.
Note that the meanings and values are subject to change.
# dpkg -D2000 --install /var/cache/apt/archives/nvidia-legacy-check_352.79-6_amd64.deb
(Reading database ... 249357 files and directories currently installed.)
Preparing to unpack .../nvidia-legacy-check_352.79-6_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-legacy-check_352.79-6_amd64.deb (--install):
 subprocess new pre-installation script returned error exit status 128
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-legacy-check_352.79-6_amd64.deb
#

Hmm ... então, sem informação.

Alguém pode oferecer uma sugestão? Não consigo instalar nada ou usar o apt-get de forma alguma até que o problema seja corrigido, porque estou sempre sendo solicitado a executar um "-f install".

Eu ficaria feliz em 'limpar' o que posso e começar de novo, mas não sei como chegar lá. O conflito de dependência para desvios de glx parece intransponível ...

# apt-get -f install glx-diversions=0.5.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
glx-diversions is already the newest version.
glx-diversions set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 glx-alternative-mesa : Depends: glx-diversions (= 0.7.2) but 0.5.1 is to be installed
 update-glx : Depends: glx-diversions (= 0.7.2) but 0.5.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

# apt-get remove glx-alternative-mesa update-glx
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:
 glx-alternative-nvidia : Depends: glx-alternative-mesa but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Ajuda?

UPDATE: As fontes são as seguintes:

# cat sources.list
deb http://ftp.us.debian.org/debian testing main contrib non-free

deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

# jessie-backports
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free

.... Ohhhh sim. "testando"!="jessie". Eu mudei "testing" para "jessie" agora muitas coisas novas e boas estão acontecendo quando eu executo o apt-get -f install, e ele é concluído sem erros. Obrigado.

    
por sh37211 27.04.2016 / 03:05

1 resposta

1

Você obtém esse erro quando instalou duas arquiteturas ou versões diferentes do mesmo pacote. Se você ainda receber um erro com apt-get -f install tente usar o aplicativo synaptic (nos pacotes quebrados da coluna à esquerda), você pode fazer tudo certo.

    
por 27.04.2016 / 06:26