How to remove half configured brltty package ?

Asked by Andrew

I ran sudo apt-get update
and
sudo apt-get upgrade

(Didn't even realise brltty was installed) I don't use it but it failed to upgrade. How can I remove this half-configured package.

I've already tried:

sudo apt-get remove brltty
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libntdb1 linux-headers-4.3.0-2 linux-headers-4.3.0-2-generic linux-image-generic-lts-utopic python-ntdb
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  brltty
0 to upgrade, 0 to newly install, 1 to remove and 127 not to upgrade.
1 not fully installed or removed.
After this operation, 7,234 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 601580 files and directories currently installed.)
Removing brltty (5.3.1-1ubuntu1) ...
Failed to stop brltty.service: Unit brltty.service not loaded.
invoke-rc.d: initscript brltty, action "stop" failed.
dpkg: error processing package brltty (--remove):
 subprocess installed pre-removal script returned error exit status 5
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-040400-generic
Errors were encountered while processing:
 brltty
E: Sub-process /usr/bin/dpkg returned an error code (1)
:~$ sudo dpkg -r brltty
(Reading database ... 601580 files and directories currently installed.)
Removing brltty (5.3.1-1ubuntu1) ...
Failed to stop brltty.service: Unit brltty.service not loaded.
invoke-rc.d: initscript brltty, action "stop" failed.
dpkg: error processing package brltty (--remove):
 subprocess installed pre-removal script returned error exit status 5
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-040400-generic
Errors were encountered while processing:
 brltty
:~$ sudo dpkg -C
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 brltty Access software for a blind person using a braille displa

:~$ sudo dpkg --purge brltty
(Reading database ... 601580 files and directories currently installed.)
Removing brltty (5.3.1-1ubuntu1) ...
Failed to stop brltty.service: Unit brltty.service not loaded.
invoke-rc.d: initscript brltty, action "stop" failed.
dpkg: error processing package brltty (--purge):
 subprocess installed pre-removal script returned error exit status 5
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-040400-generic
Errors were encountered while processing:
 brltty

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu brltty Edit question
Assignee:
No assignee Edit question
Solved by:
Andrew
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try:

sudo dpkg -P brltty
sudo apt-get remove brltty
sudo apt-get --purge autoremove

If it threatens to remove a lot of the OS, or key packages then stop and post the text before saying yes, we can then advise

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

If removing the half-installed package does not work, you might try reinstalling it

sudo apt-get install --reinstall brltty -f

If all those commands fail, please execute the package management troubleshooting procedure.

Revision history for this message
Andrew (am-public-o) said :
#3

I just ran sudo apt-get update && sudo apt-get upgrade today and it seems to be fixed in version:

5.3.1-1ubuntu2