Unable to remove package remote-tty 4.0-12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
remote-tty (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: remote-tty
Hello,
I am unable to uninstall (apt-get autoremove) this package and I always get this output:
adrianp@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
remote-tty
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.
After this operation, 242kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 183460 files and directories currently installed.)
Removing remote-tty ...
Stopping remote-tty console manager:cd: 56: can't cd to /var/run/
invoke-rc.d: initscript remote-tty, action "stop" failed.
dpkg: error processing remote-tty (--remove):
subprocess installed pre-removal script returned error exit status 2
Starting remote-tty console manager:
no consoles configured
Errors were encountered while processing:
remote-tty
E: Sub-process /usr/bin/dpkg returned an error code (1)
My system (10.04) was upgraded from 09.10.
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: remote-tty 4.0-12
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelMo
Architecture: i386
Date: Thu Jul 1 08:57:31 2010
ErrorMessage: subprocess installed pre-removal script returned error exit status 2
SourcePackage: remote-tty
Title: package remote-tty 4.0-12 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 2
Managed to find a work-around to uninstall it - I have created the directory /var/run/ remote- tty/pid and the uninstall process worked:
root@frost:/# ls -l /var/run/ remote- tty/pid remote- tty/pid: No such file or directory remote- tty/pid
ls: cannot access /var/run/
root@frost:/# mkdir -p /var/run/
root@frost:/# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
remote-tty
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.
After this operation, 242kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 183460 files and directories currently installed.)
Removing remote-tty ...
Stopping remote-tty console manager: nothing running.
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Maybe the stop script should check that the pid directory exists before dying