webmin update reinstall failed

Having issues with your DietPi installation, or, found a bug? Post it here.
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

webmin update reinstall failed

Post by laurentl »

Hi all

on my NUC, I updated Webmin recently then it crashed, so I uninstalled and tried to reinstall it but it stuck at "Setting up webmin (1.941) ..."

then I got something like that "dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem"

I've look for solutions but nothing works

any idea ?
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

Re: webmin update reinstall failed

Post by laurentl »

also when I run a cleaner selecting APT cache I got :

Log file content:
│ E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily
│ unavailable)
│ E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another
│ process using it?
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

Re: webmin update reinstall failed

Post by laurentl »

and

ps aux | grep -i apt

get


root 3865 0.1 1.9 91460 78448 ? S 11:44 0:02 apt-get -qq --allow-change-held-packages install webmin
root 5863 0.0 0.0 6096 880 pts/2 S+ 12:13 0:00 grep -i apt
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: webmin update reinstall failed

Post by Joulinar »

did you tried to reboot your system to clean temp locks?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

Re: webmin update reinstall failed

Post by laurentl »

reboot yes cleaning no how do I do that ?
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: webmin update reinstall failed

Post by Joulinar »

if you check after the reboot for running apt processes, do you see some?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

Re: webmin update reinstall failed

Post by laurentl »

it seems no

ps aux | grep -i apt

root 1236 0.0 0.0 6096 824 pts/0 S+ 12:47 0:00 grep -i apt
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: webmin update reinstall failed

Post by Joulinar »

what happen if you run the following as root

Code: Select all

dpkg --configure -a
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

Re: webmin update reinstall failed

Post by laurentl »

and
sudo rm /var/lib/apt/lists/lock
rm: impossible de supprimer '/var/lib/apt/lists/lock': Aucun fichier ou dossier de ce type

root@DietPi:~# sudo rm /var/cache/apt/archives/lock
rm: impossible de supprimer '/var/cache/apt/archives/lock': Aucun fichier ou dossier de ce type

root@DietPi:~# sudo rm /var/lib/dpkg/lock

root@DietPi:~# sudo dpkg --configure -a
Paramétrage de webmin (1.941) ...

still pending ...
laurentl
Posts: 13
Joined: Mon Mar 09, 2020 11:48 am

Re: webmin update reinstall failed

Post by laurentl »

dpkg --configure -a
Paramétrage de webmin (1.941) ...

pending too ...
Post Reply