Comment 2 for bug 1315585

Revision history for this message
brianary (brian-webcoder) wrote :

I don't need this package anymore, but I can't force remove or force install or do anything with it.

$ sudo apt-get -f remove lcd4linux -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libftdi1 libmpdclient2
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  lcd4linux
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 526 kB disk space will be freed.
(Reading database ... 452135 files and directories currently installed.)
Removing lcd4linux (0.11.0~svn1197-1ubuntu1) ...
 * Stopping lcd4linux lcd4linux invoke-rc.d: initscript lcd4linux, action "stop" failed.
dpkg: error processing package lcd4linux (--remove):
 subprocess installed pre-removal script returned error exit status 1
 * Starting lcd4linux lcd4linux [ OK ]
Errors were encountered while processing:
 lcd4linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get -f install lcd4linux -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  lcd4linux
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/193 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Selecting previously unselected package lcd4linux.
(Reading database ... 452136 files and directories currently installed.)
Preparing to unpack .../lcd4linux_0.11.0~svn1200-1+fakesync_amd64.deb ...
 * Stopping lcd4linux lcd4linux invoke-rc.d: initscript lcd4linux, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
 * Stopping lcd4linux lcd4linux invoke-rc.d: initscript lcd4linux, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/lcd4linux_0.11.0~svn1200-1+fakesync_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
 * Starting lcd4linux lcd4linux [ OK ]
Errors were encountered while processing:
 /var/cache/apt/archives/lcd4linux_0.11.0~svn1200-1+fakesync_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)