Como você remove uma instalação “ruim” do xboxdrv-ubuntu?

1

Eu tentei usar o XboxDRV-Ubuntu hoje.

Eu acho que a instalação está corrompida, porque não há nada de joystick nas configurações (funcionou há alguns dias), os joysticks não são detectados, etc. O aplicativo ainda é executado, mas não parece ser completo em comparação como costumava ser. Instalá-lo novamente diz que já está instalado e aborta.

Desinstalação: o XboxDRV é desinstalado com sucesso com

sudo apt-get purge xboxdrv

O seguinte é a saída:

Reading package lists... Done
Building dependency tree       
Reading state information... Done

The following packages were automatically installed and are no longer required:
  jstest-gtk linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
  primus-libs socat
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-xboxdrv* xboxdrv*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1,820 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 256045 files and directories currently installed.)
Removing ubuntu-xboxdrv (20140707-1) ...
stop: Unknown instance: 
dpkg: error processing package ubuntu-xboxdrv (--purge):
 subprocess installed pre-removal script returned error exit status 1
dpkg: xboxdrv: dependency problems, but removing anyway as you requested:
 ubuntu-xboxdrv depends on xboxdrv.

Depois, tentei remover o ubuntu-xboxdrv da seguinte forma:

sudo apt-get purge ubuntu-xboxdrv

Os resultados que obtive foram estes:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  jstest-gtk linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
  primus-libs socat
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-xboxdrv*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 71.7 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 255996 files and directories currently installed.)
Removing ubuntu-xboxdrv (20140707-1) ...
stop: Unknown instance: 
dpkg: error processing package ubuntu-xboxdrv (--purge):
 subprocess installed pre-removal script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

Depois disso, digitei

sudo apt-get autoremove

Os resultados são excessivamente longos para colocar em um bloco, então aqui está a saída:

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:
 ubuntu-xboxdrv : Depends: xboxdrv but it is not installed
E: Unmet dependencies. Try using -f.

Acompanhado de:

sudo apt-get autoremove -f

Resultados (também muito longos para bloquear com cada linha)

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  xboxdrv
The following packages will be REMOVED:
  linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
  primus-libs socat
The following NEW packages will be installed:
  xboxdrv
0 upgraded, 1 newly installed, 6 to remove and 0 not upgraded.
Need to get 0 B/663 kB of archives.
After this operation, 270 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 255996 files and directories currently installed.)
Removing linux-headers-3.13.0-32-generic (3.13.0-32.57) ...
Removing linux-headers-3.13.0-32 (3.13.0-32.57) ...
Removing linux-image-extra-3.13.0-32-generic (3.13.0-32.57) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-32-generic /boot/vmlinuz-3.13.0-32-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-32-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-32-generic /boot/vmlinuz-3.13.0-32-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-35-generic
Found initrd image: /boot/initrd.img-3.13.0-35-generic
Found linux image: /boot/vmlinuz-3.13.0-34-generic
Found initrd image: /boot/initrd.img-3.13.0-34-generic
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found linux image: /boot/vmlinuz-3.13.0-35-generic
Found initrd image: /boot/initrd.img-3.13.0-35-generic
Found linux image: /boot/vmlinuz-3.13.0-34-generic
Found initrd image: /boot/initrd.img-3.13.0-34-generic
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Removing linux-image-3.13.0-32-generic (3.13.0-32.57) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.13.0-32-generic /boot/vmlinuz-3.13.0-32-generic
dkms: removing: nvidia-331 331.38 (3.13.0-32-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  nvidia-331
Version: 331.38
Kernel:  3.13.0-32-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia_331.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.13.0-32-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.....

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-32-generic /boot/vmlinuz-3.13.0-32-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-32-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-32-generic /boot/vmlinuz-3.13.0-32-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-35-generic
Found initrd image: /boot/initrd.img-3.13.0-35-generic
Found linux image: /boot/vmlinuz-3.13.0-34-generic
Found initrd image: /boot/initrd.img-3.13.0-34-generic
Found linux image: /boot/vmlinuz-3.13.0-35-generic
Found initrd image: /boot/initrd.img-3.13.0-35-generic
Found linux image: /boot/vmlinuz-3.13.0-34-generic
Found initrd image: /boot/initrd.img-3.13.0-34-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Removing primus-libs:amd64 (20131127-1~trustyppa1) ...
Removing socat (1.7.2.3-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 removed doc-base file...
Selecting previously unselected package xboxdrv.
(Reading database ... 226344 files and directories currently installed.)
Preparing to unpack .../xboxdrv_0.8.5-1_amd64.deb ...
Unpacking xboxdrv (0.8.5-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up xboxdrv (0.8.5-1) ...

O resultado final: Agora eu tenho uma instalação xboxdrv ainda quebrada e nenhum suporte a driver nvidea.

    
por user1524705 01.09.2014 / 22:42

1 resposta

1

Você pode passar sem rodeios por apenas se livrar do script de pré-remoção. Este é um último recurso, mas útil para lidar com scripts de pacotes quebrados, o que parece ser o caso aqui.

Em vez de realmente excluir o script, eu postarei um comando que simplesmente renomeia o script, apenas por segurança.
sudo mv /var/lib/dpkg/info/ubuntu-xboxdrv.prerm /var/lib/dpkg/info/ubuntu-xboxdrv.prerm.broken

Depois disso, execute novamente o comando de eliminação: sudo apt-get purge ubuntu-xboxdrv

Você ainda pode receber um erro, mas deve ser diferente. Se for esse o caso, não deixe de postar o texto da nova mensagem de erro.

Além disso, parece que há um ppa para xboxdrv que pode ter um pacote melhor: link

Você pode querer verificar isso depois de remover o pacote atual.

    
por user7134 10.11.2014 / 02:39