You can delete the lock file with the following command if find the error of directory or file lock on
apt-get or apt install:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
After that, try again instll.
Step 1: Install Webmin
install required packages
sudo apt install python apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl
download and install webmin
cd /tmp && curl -L -O http://www.webmin.com/download/deb/webmin-current.deb
finally install webmin
sudo dpkg -i webmin-current.deb
Step 2: Accessing Webmin
https://localhost:10000
If you’re coming from a remote location, you must add the IP address to the allowed list… you can do that by running the commands below to open Webmin default configuration file.
sudo nano /etc/webmin/miniserv.conf
Then adding a new line to allow a specific IP or subnet.
allow=192.168.X.X
or
allow=192.168.X.0/24
for whole subnet
Save the file… you should good to go for access Webmin
Thanks for reading and watching.
Like and subscribe to my YouTube Channel HomeTech for more interesting videos
Post a Comment