Page 1 of 1

[Solved}How remove locked webmin?

PostPosted: Sep 10th, '19, 13:22
by janpihlgren
Early today I started webmin and was sopposed to update webmin which I did, to webmin 1.930.
Then it was impossible to start webmin.
I tried to remove webmin using mcc.
When I listed webmin I discovered that mcc show a padlock at the end of the line.
That looks like stop the possibility to remove webmin.
Anyone know what to do to remove webmin?

Re: How remove locked webmin?

PostPosted: Sep 10th, '19, 14:43
by doktor5000
What do you actually want to do, get webmin to start or remove it ... to do what ?

Re: How remove locked webmin?

PostPosted: Sep 10th, '19, 16:01
by janpihlgren
The best is to start it but when I try to connect to it with "localhost:10000" it report "Connection failed".
But I want to remove webmin to reinstall webmin and that it maybe solv the problem.

Re: How remove locked webmin?

PostPosted: Sep 10th, '19, 16:46
by doktor5000
The command to reinstall webmin would be as root
Code: Select all
urpmi --replacepkgs --replacefiles webmin

I can't reproduce your issue, got webmin installed and in MCC it shows with a normal green icon.

Also, what's the output as root of
Code: Select all
systemctl status webmin.service

You sure tried to connect to it with your browser but if the actual webmin service is not running it's obvious why you cannot connect ...

Re: How remove locked webmin?

PostPosted: Sep 11th, '19, 05:32
by janpihlgren
Code: Select all
[root@Humlan]# urpmi --replacepkgs --replacefiles webmin
fel: Filen /var/lib/urpmi/synthesis.hdlist.Core Release (Installer).cz är mindre än 13 byte
fel: Filen /var/lib/urpmi/synthesis.hdlist.Nonfree Release (Installer).cz är mindre än 13 byte
Hittade paket(en) webmin-1.840-1.mga6.noarch, webmin-1.860-1.mga6.noarch, webmin-1.840-1.mga6.noarch, webmin-1.860-1.mga6.noarch i urpmi db, men inget är installerat
[root@Humlan]#


Code: Select all
[root@Humlan]# systemctl status webmin.service
● webmin.service - LSB: web-based administration interface for Unix systems
   Loaded: loaded (/etc/rc.d/init.d/webmin; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since ons 2019-09-11 05:09:52 CEST; 13min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22916 ExecStart=/etc/rc.d/init.d/webmin start (code=exited, status=127)

sep 11 05:09:52 Humlan.localdomain systemd[1]: Starting LSB: web-based administration interface for Unix systems...
sep 11 05:09:52 Humlan.localdomain systemd[1]: webmin.service: Control process exited, code=exited status=127
sep 11 05:09:52 Humlan.localdomain systemd[1]: Failed to start LSB: web-based administration interface for Unix systems.
sep 11 05:09:52 Humlan.localdomain systemd[1]: webmin.service: Unit entered failed state.
sep 11 05:09:52 Humlan.localdomain systemd[1]: webmin.service: Failed with result 'exit-code'.
[root@Humlan]#



mcc still shows webmin 1.930 with a padlock at the end of the line.
It is impossible to remove.

Re: How remove locked webmin?

PostPosted: Sep 11th, '19, 14:27
by doktor5000
Please show the output again in plain english
Code: Select all
LC_ALL=C urpmi --replacepkgs --replacefiles webmin
rpm -qa|grep -i webmin|sort
urpmq --list-media active --list-url


Seems you also need to clean the cached repo hdlists /var/lib/urpmi/synthesis.hdlist* as there seems to have been an issue downloading them completely

Apart from that, as you can see in the systemctl status output, webmin has exited, so it's pretty obvious why you cannot connect:

[...]
   Active: failed (Result: exit-code) since ons 2019-09-11 05:09:52 CEST; 13min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22916 ExecStart=/etc/rc.d/init.d/webmin start (code=exited, status=127)

sep 11 05:09:52 Humlan.localdomain systemd[1]: Starting LSB: web-based administration interface for Unix systems...
sep 11 05:09:52 Humlan.localdomain systemd[1]: webmin.service: Control process exited, code=exited status=127
sep 11 05:09:52 Humlan.localdomain systemd[1]: Failed to start LSB: web-based administration interface for Unix systems.
sep 11 05:09:52 Humlan.localdomain systemd[1]: webmin.service: Unit entered failed state.
sep 11 05:09:52 Humlan.localdomain systemd[1]: webmin.service: Failed with result 'exit-code'.
[root@Humlan]#

Re: How remove locked webmin?

PostPosted: Sep 11th, '19, 16:16
by janpihlgren
Code: Select all
[root@Humlan]# LC_ALL=C urpmi --replacepkgs --replacefiles webmin
error: File /var/lib/urpmi/synthesis.hdlist.Core Release (Installer).cz is smaller than 13 bytes
error: File /var/lib/urpmi/synthesis.hdlist.Nonfree Release (Installer).cz is smaller than 13 bytes
found package(s) webmin-1.840-1.mga6.noarch, webmin-1.860-1.mga6.noarch, webmin-1.840-1.mga6.noarch, webmin-1.860-1.mga6.noarch in urpmi db, but none are installed
[root@Humlan]# 

[root@Humlan]# rpm -qa|grep -i webmin|sort
webmin-1.930-1

[root@Humlan]# urpmq --list-media active --list-url
Core Release (Installer) cdrom://x86_64/media/core
Nonfree Release (Installer) cdrom://x86_64/media/nonfree
Core Release (distrib1) http://ftp.acc.umu.se/mirror/mageia/distrib/6/x86_64/media/core/release
Core Updates (distrib3) http://ftp.acc.umu.se/mirror/mageia/distrib/6/x86_64/media/core/updates
Nonfree Release (distrib11) http://ftp.acc.umu.se/mirror/mageia/distrib/6/x86_64/media/nonfree/release
Nonfree Updates (distrib13) http://ftp.acc.umu.se/mirror/mageia/distrib/6/x86_64/media/nonfree/updates
Tainted Release (distrib21) http://ftp.acc.umu.se/mirror/mageia/distrib/6/x86_64/media/tainted/release
Tainted Updates (distrib23) http://ftp.acc.umu.se/mirror/mageia/distrib/6/x86_64/media/tainted/updates
Core 32bit Release (distrib31) http://ftp.acc.umu.se/mirror/mageia/distrib/6/i586/media/core/release
Core 32bit Updates (distrib32) http://ftp.acc.umu.se/mirror/mageia/distrib/6/i586/media/core/updates
Nonfree 32bit Release (distrib36) http://ftp.acc.umu.se/mirror/mageia/distrib/6/i586/media/nonfree/release
Nonfree 32bit Updates (distrib37) http://ftp.acc.umu.se/mirror/mageia/distrib/6/i586/media/nonfree/updates
Tainted 32bit Release (distrib41) http://ftp.acc.umu.se/mirror/mageia/distrib/6/i586/media/tainted/release
Tainted 32bit Updates (distrib42) http://ftp.acc.umu.se/mirror/mageia/distrib/6/i586/media/tainted/updates
[root@Humlan]#

How do I clean the cached repo?

Re: How remove locked webmin?

PostPosted: Sep 11th, '19, 18:43
by isadora
It would be great, you put these walls of code between code-tags.
Following is a demo how one can accomplish such:

Demo: ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv

Re: How remove locked webmin?

PostPosted: Sep 12th, '19, 17:29
by doktor5000
Your webmin package is an mga7 package, but you have only mga6 repos enabled. You cannot reinstall webmin this way, as it needs to be the same package&version in this case.
Try this way to update your repos and to remove webmin and install the mga6 version:
Code: Select all
urpmi.update -av
rpm -e --nodeps webmin
urpmi webmin

Re: How remove locked webmin?

PostPosted: Sep 13th, '19, 05:22
by janpihlgren
:D :D :D
Thanks! :D :D :D
That works! :D :D :D
Thanks! :D :D :D