Can't uninstall broken packages on hoary system

ian ian at eugeneweb.com
Fri Nov 11 21:37:36 UTC 2005


Derek Broughton wrote:

>David A' Rebel wrote:
>
>  
>
>>On Fri, 11 Nov 2005 21:11, ian wrote:
>>    
>>
>>>I'm having a really great apt problem on hoary.
>>>I have a bunch of webmin modules installed from universe, but webmin
>>>itself isn't installed, so those packages are considered broken because
>>>of the missing dependency.  However, I can't remove them or forceably
>>>remove them using synaptic or any other method I've tried from man
>>>apt-get because they have unsatisfied dependencies!   I'm just trying to
>>>get rid of them all together because having them broken stops me from
>>>using apt to install other packages.
>>>
>>>      
>>>
>> Have you tried removing them with sudo apt-get remove from a cli ?
>>You could try something like sudo dpkg -l |grep webmin to see what comes
>>up and then try removing them with apr-get or with dpkg -r .
>>    
>>
>
>dpkg --force-all -r 
>
>will remove practically anything.
>  
>
ok, still not working, I'll try to give you more information:
dpkg -l | grep webmin

rF  webmin-apache  1.210a-2~5.04u apache control module for webmin
rF  webmin-bind    1.160-2        bind 8+ control module for webmin
rF  webmin-core    1.210a-1~5.04u core modules for webmin
rF  webmin-cpan    1.210a-2~5.04u CPAN module for webmin
rF  webmin-firewal 1.160-2        iptables control module for webmin
rc  webmin-htacces 1.210a-2~5.04u htaccess/htpasswd module for webmin
rF  webmin-inetd   1.160-2        inetd control module for webmin
rc  webmin-mon     1.210a-2~5.04u mon control module for webmin
rF  webmin-mysql   1.210a-2~5.04u mysql-server control module for webmin
rF  webmin-samba   1.210a-2~5.04u samba control module for webmin
rF  webmin-sshd    1.210a-2~5.04u SSH server control module for webmin
rF  webmin-usermin 1.160-2        usermin control module for webmin
rc  webmin-webaliz 1.210a-2~5.04u webalizer control module for webmin

root at h4xorb0xor:/home/ian # apt-get remove webmin-apache
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  webmin-bind: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-core: Depends: webmin but it is not going to be installed
  webmin-cpan: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-firewall: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-inetd: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-mysql: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-samba: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-sshd: Depends: webmin (>= 1.140) but it is not going to be
installed
  webmin-usermin: Depends: webmin (>= 1.140) but it is not going to be
installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
root at h4xorb0xor:/home/ian # dpkg -r --force-all webmin-apache
(Reading database ... 127932 files and directories currently installed.)
Removing webmin-apache ...
/var/lib/dpkg/info/webmin-apache.prerm: line 5: /usr/sbin/update-webmin:
No such file or directory
dpkg: error processing webmin-apache (--remove):
 subprocess pre-removal script returned error exit status 1
/var/lib/dpkg/info/webmin-apache.postinst: line 4:
/usr/sbin/update-webmin: No such file or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 webmin-apache

root at h4xorb0xor:/home/ian # dpkg -r webmin-apache
(Reading database ... 127932 files and directories currently installed.)
Removing webmin-apache ...
/var/lib/dpkg/info/webmin-apache.prerm: line 5: /usr/sbin/update-webmin:
No such file or directory
dpkg: error processing webmin-apache (--remove):
 subprocess pre-removal script returned error exit status 1
/var/lib/dpkg/info/webmin-apache.postinst: line 4:
/usr/sbin/update-webmin: No such file or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 webmin-apache

root at h4xorb0xor:/home/ian # dpkg -P webmin-apache
(Reading database ... 127932 files and directories currently installed.)
Removing webmin-apache ...
/var/lib/dpkg/info/webmin-apache.prerm: line 5: /usr/sbin/update-webmin:
No such file or directory
dpkg: error processing webmin-apache (--purge):
 subprocess pre-removal script returned error exit status 1
/var/lib/dpkg/info/webmin-apache.postinst: line 4:
/usr/sbin/update-webmin: No such file or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 webmin-apache
root at h4xorb0xor:/home/ian #   





More information about the ubuntu-users mailing list