boogey
19 September 2020 21:38
1
Hello everyone!
I have been crawling this site for quite some time after installing Dietpi. It has worked flawlessly for me for a long time until today. I was using webmin and really like the features it provides. I attempted to “clean” up the packages that I had installed while experimenting with Dietpi and think I may have fouled something up. I used the software menu uninstaller to uninstall the packages I didn’t think I would need further.
I think I may have uninstalled a package/packages that webmin requires to run. I attempted to delete webmin and perform a fresh install of it via the software installation menu to get the required packages to install again. The only package that it installs is webmin and nothing else. When I restarted the pi, webmin failed to start and will not do so. In the error log it mentioned that it cannot find the required configuration files.
I am a novice and that is the big appeal of Dietpi to me. I would like to keep everything nice and simple so I would prefer not to go manually installing things that may change my ability to easily manage the pi. Is there anything I can do to get the software installer to grab the required packages through the automated process again?
Any help much appreciated!
Hi,
many thanks for your message. Yes indeed, for Webmin, there is just one package being installed.
Pls can you post following:
systemctl status webmin.service
journalctl -u webmin.service
cat /var/webmin/miniserv.error
cat /var/webmin/miniserv.log
Hello there!
I had the same issue since i updated to v.6.32.2. When i tried to clean using the dietpi-cleaning option, my RaspberryPi started to fail. I had to uninstall manually Webmin and tried to install it again using the auto install option in dietpi and later manually. Webmin did not worked anymore.
I installed a fresh version of dietpi 6.32.2 in a new SD card, then reconfigure al the software and try it again. Was a fail too.
I miss webmin, but I think I would need to forget it for a while.
I hope my description be useful for you guys. (Sorry for my english, not my first language!)
Hi Guys,
it would be helpful if you can provide an error message. For testing purposes, I installed webmin twice and it is working without issues.
root@DietPi3:~# systemctl status webmin.service
● webmin.service - Webmin (DietPi)
Loaded: loaded (/etc/systemd/system/webmin.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2020-09-21 20:20:21 CEST; 30min ago
Process: 434 ExecStart=/etc/webmin/start (code=exited, status=0/SUCCESS)
Main PID: 442 (miniserv.pl)
Tasks: 2 (limit: 2184)
CGroup: /system.slice/webmin.service
├─442 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
└─817 gpg-agent --homedir /root/.gnupg --use-standard-socket --daemon
Sep 21 20:20:16 DietPi3 systemd[1]: Starting Webmin (DietPi)...
Sep 21 20:20:16 DietPi3 start[434]: Starting Webmin server in /usr/share/webmin
Sep 21 20:20:17 DietPi3 perl[434]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
Sep 21 20:20:19 DietPi3 webmin[434]: Webmin starting
Sep 21 20:20:21 DietPi3 systemd[1]: Started Webmin (DietPi).
Sep 21 20:43:02 DietPi3 perl[510]: pam_unix(webmin:session): session opened for user root by (uid=0)
Sep 21 20:43:02 DietPi3 webmin[510]: Successful login as root from 192.168.0.34
root@DietPi3:~#
This could be a reason: https://github.com/MichaIng/DietPi/commit/5be3fa0258bc154c5d257a1cec5223dfa8a6b360#diff-d92a6ee04e02fd2a2dc23d5bec3e6a98
The dependency has already been removed on Webmin upstream as we found native apt commands which work faster and more reliable: https://github.com/webmin/webmin/commit/c5d65e604ef07fa35482c8445706a3ad11696337
However we need to wait for the next release. Until then this workaround can be used:
echo 'Acquire::GzipIndexes "false";' > /etc/apt/apt.conf.d/98dietpi-webmin
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
But yes, first of all the exact error message would be helpful, as the above leads to a failing apt-show-versions package in the first place.
Joulinar did you test with master or dev branch as you obviously did not face the error, or disabled compressed APT lists manually?
MichaIng
It as a plain DietPi installation on my RPi3B+ without any special configuration. Even /etc/apt/apt.conf.d/98dietpi-webmin did not exist on my system.
root@DietPi3:~# ls -la /etc/apt/apt.conf.d
total 28
drwxr-xr-x 2 root root 4096 Sep 21 19:56 .
drwxr-xr-x 7 root root 4096 Sep 21 19:54 ..
-r--r--r-- 1 root root 434 Sep 19 19:59 01autoremove-kernels
-rw-r--r-- 1 root root 162 Feb 16 2019 20apt-show-versions
-rw-r--r-- 1 root root 182 Jun 8 12:06 70debconf
-rw-r--r-- 1 root root 1227 Sep 10 11:06 97dietpi
-rw-r--r-- 1 root root 212 Jun 8 12:06 99-dietpi-cache
root@DietPi3:~#
Will run some test on my VM
Strange, perhaps the package on RPi/Raspbian behaves somehow different . In my case it failed since apt-show-versions -i fails to “see” the compressed list files which makes the APT postinst script fail.
installation seems to be fine on my VM as well
Install log
root@DietPiVM1:~# dietpi-software
[ OK ] DietPi-Software | Initialised database
[ OK ] DietPi-Software | Reading database
[ OK ] DietPi-Software | Checking network connectivity
[ OK ] DietPi-Software | Checking DNS resolver
[ OK ] Network time sync | Completed
[ OK ] DietPi-Software | Free space check: path=/ | available=7074 MiB | required=500 MiB
[ OK ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
[ OK ] DietPi-Software | Checking network connectivity
[ OK ] DietPi-Software | Checking DNS resolver
[ OK ] Network time sync | Completed
[ SUB1 ] DietPi-Services > unmask
[ OK ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
DietPi-Software
─────────────────────────────────────────────────────
Mode: Update & upgrade APT
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian buster InRelease
Hit:2 https://deb.debian.org/debian buster-updates InRelease
Hit:3 https://deb.debian.org/debian-security buster/updates InRelease
Hit:4 https://deb.debian.org/debian buster-backports InRelease
Reading package lists...
[ OK ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT upgrade, please wait...
[ OK ] DietPi-Software | APT upgrade
DietPi-Software
─────────────────────────────────────────────────────
Mode: Checking for prerequisite software
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
DietPi-Software
─────────────────────────────────────────────────────
Mode: Installing Webmin: web interface system management
[ OK ] DietPi-Software | Checking URL: http://www.webmin.com/jcameron-key.asc
OK
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian buster InRelease
Hit:2 https://deb.debian.org/debian buster-updates InRelease
Hit:3 https://deb.debian.org/debian-security buster/updates InRelease
Hit:4 https://deb.debian.org/debian buster-backports InRelease
Ign:5 https://download.webmin.com/download/repository sarge InRelease
Get:6 https://download.webmin.com/download/repository sarge Release [16.9 kB]
Get:7 https://download.webmin.com/download/repository sarge Release.gpg [173 B]
Get:8 https://download.webmin.com/download/repository sarge/contrib i386 Packages [1393 B]
Get:9 https://download.webmin.com/download/repository sarge/contrib amd64 Packages [1393 B]
Fetched 19.8 kB in 4s (4817 B/s)
Reading package lists...
[ OK ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT install for: webmin, please wait...
Selecting previously unselected package perl-modules-5.28.
(Reading database ... 16987 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.28_5.28.1-6+deb10u1_all.deb ...
Unpacking perl-modules-5.28 (5.28.1-6+deb10u1) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../01-libgdbm6_1.18.1-4_amd64.deb ...
Unpacking libgdbm6:amd64 (1.18.1-4) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../02-libgdbm-compat4_1.18.1-4_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-4) ...
Selecting previously unselected package libperl5.28:amd64.
Preparing to unpack .../03-libperl5.28_5.28.1-6+deb10u1_amd64.deb ...
Unpacking libperl5.28:amd64 (5.28.1-6+deb10u1) ...
Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.28.1-6+deb10u1_amd64.deb ...
Unpacking perl (5.28.1-6+deb10u1) ...
Selecting previously unselected package perl-openssl-defaults:amd64.
Preparing to unpack .../05-perl-openssl-defaults_3_amd64.deb ...
Unpacking perl-openssl-defaults:amd64 (3) ...
Selecting previously unselected package libnet-ssleay-perl.
Preparing to unpack .../06-libnet-ssleay-perl_1.85-2+b1_amd64.deb ...
Unpacking libnet-ssleay-perl (1.85-2+b1) ...
Selecting previously unselected package libauthen-pam-perl.
Preparing to unpack .../07-libauthen-pam-perl_0.16-3+b6_amd64.deb ...
Unpacking libauthen-pam-perl (0.16-3+b6) ...
Selecting previously unselected package libio-pty-perl.
Preparing to unpack .../08-libio-pty-perl_1%3a1.08-1.1+b5_amd64.deb ...
Unpacking libio-pty-perl (1:1.08-1.1+b5) ...
Selecting previously unselected package libapt-pkg-perl.
Preparing to unpack .../09-libapt-pkg-perl_0.1.34+b1_amd64.deb ...
Unpacking libapt-pkg-perl (0.1.34+b1) ...
Selecting previously unselected package apt-show-versions.
Preparing to unpack .../10-apt-show-versions_0.22.11_all.deb ...
Unpacking apt-show-versions (0.22.11) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../11-libglib2.0-0_2.58.3-2+deb10u2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
Selecting previously unselected package libicu63:amd64.
Preparing to unpack .../12-libicu63_63.1-6+deb10u1_amd64.deb ...
Unpacking libicu63:amd64 (63.1-6+deb10u1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../13-libxml2_2.9.4+dfsg1-7+b3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../14-shared-mime-info_1.10-1_amd64.deb ...
Unpacking shared-mime-info (1.10-1) ...
Setting up perl-modules-5.28 (5.28.1-6+deb10u1) ...
Setting up libgdbm6:amd64 (1.18.1-4) ...
Setting up libgdbm-compat4:amd64 (1.18.1-4) ...
Setting up libperl5.28:amd64 (5.28.1-6+deb10u1) ...
Setting up perl (5.28.1-6+deb10u1) ...
Selecting previously unselected package webmin.
(Reading database ... 19291 files and directories currently installed.)
Preparing to unpack .../archives/webmin_1.955_all.deb ...
Unpacking webmin (1.955) ...
Setting up libapt-pkg-perl (0.1.34+b1) ...
Setting up libio-pty-perl (1:1.08-1.1+b5) ...
Setting up libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
No schema files found: doing nothing.
Setting up apt-show-versions (0.22.11) ...
** initializing cache. This may take a while **
Setting up perl-openssl-defaults:amd64 (3) ...
Setting up libicu63:amd64 (63.1-6+deb10u1) ...
Setting up libauthen-pam-perl (0.16-3+b6) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Setting up libnet-ssleay-perl (1.85-2+b1) ...
Setting up shared-mime-info (1.10-1) ...
Setting up webmin (1.955) ...
/var/lib/dpkg/info/webmin.postinst: 4: /var/lib/dpkg/info/webmin.postinst: cannot create /etc/webmin/stop: Directory nonexistent
Webmin install complete. You can now login to https://DietPiVM1:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for libc-bin (2.28-10) ...
[ OK ] DietPi-Software | APT install for: webmin
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
[ OK ] DietPi-Services | stop : webmin
DietPi-Software
─────────────────────────────────────────────────────
Mode: Optimise and configure software
[ INFO ] DietPi-Software | Applying DietPi optimisations and configurations for Virtual Machine (x86_64), please wait...
DietPi-Software
─────────────────────────────────────────────────────
Mode: Configuring Webmin: web interface system management
[ SUB1 ] DietPi-Services > dietpi_controlled
[ OK ] DietPi-Services | dietpi_controlled : webmin
[ OK ] DietPi-Services | dietpi_controlled : cron
[ OK ] DietPi-Survey | Sending survey data
DietPi-Software
─────────────────────────────────────────────────────
Mode: Installation completed
[ OK ] DietPi-Software | System rebooting in 3 seconds to finalise DietPi-Software installations. Please wait...
root@DietPiVM1:~#
Service status
root@DietPiVM1:~# systemctl status webmin.service
● webmin.service - Webmin (DietPi)
Loaded: loaded (/etc/systemd/system/webmin.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2020-09-21 21:56:29 CEST; 1min 4s ago
Process: 499 ExecStart=/etc/webmin/start (code=exited, status=0/SUCCESS)
Main PID: 504 (miniserv.pl)
Tasks: 1 (limit: 1171)
Memory: 47.2M
CGroup: /system.slice/webmin.service
└─504 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
Sep 21 21:56:25 DietPiVM1 systemd[1]: Starting Webmin (DietPi)...
Sep 21 21:56:25 DietPiVM1 start[499]: Starting Webmin server in /usr/share/webmin
Sep 21 21:56:26 DietPiVM1 perl[499]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= us
er=root
Sep 21 21:56:28 DietPiVM1 webmin[499]: Webmin starting
Sep 21 21:56:29 DietPiVM1 systemd[1]: Started Webmin (DietPi).
root@DietPiVM1:~#
Strange, can you paste: ls -Al /var/lib/apt/lists
VM
root@DietPiVM1:~# ls -Al /var/lib/apt/lists
total 96352
drwxr-xr-x 2 _apt root 4096 Apr 16 12:07 auxfiles
-rw-r--r-- 1 root root 33514 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root 21892 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root 31012 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-i386_Packages
-rw-r--r-- 1 root root 23368 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root 46702 Sep 21 16:30 deb.debian.org_debian_dists_buster-backports_InRelease
-rw-r--r-- 1 root root 2368304 Sep 21 16:00 deb.debian.org_debian_dists_buster-backports_main_binary-amd64_Packages
-rw-r--r-- 1 root root 27796 Aug 10 22:09 deb.debian.org_debian_dists_buster-backports_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root 2340084 Sep 21 16:00 deb.debian.org_debian_dists_buster-backports_main_binary-i386_Packages
-rw-r--r-- 1 root root 27796 Aug 11 04:09 deb.debian.org_debian_dists_buster-backports_main_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root 159377 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root 13036 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root 108262 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-i386_Packages
-rw-r--r-- 1 root root 13528 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root 228528 Aug 1 12:49 deb.debian.org_debian_dists_buster_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root 207975 Aug 1 12:49 deb.debian.org_debian_dists_buster_contrib_binary-i386_Packages
-rw-r--r-- 1 root root 122334 Aug 3 23:18 deb.debian.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root 44648091 Aug 1 12:49 deb.debian.org_debian_dists_buster_main_binary-amd64_Packages
-rw-r--r-- 1 root root 44334873 Aug 1 12:49 deb.debian.org_debian_dists_buster_main_binary-i386_Packages
-rw-r--r-- 1 root root 447124 Aug 1 12:49 deb.debian.org_debian_dists_buster_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root 383285 Aug 1 12:49 deb.debian.org_debian_dists_buster_non-free_binary-i386_Packages
-rw-r--r-- 1 root root 51901 Sep 21 16:30 deb.debian.org_debian_dists_buster-updates_InRelease
-rw-r--r-- 1 root root 40268 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root 3688 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root 40214 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-i386_Packages
-rw-r--r-- 1 root root 3688 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root 1155 Jun 6 21:56 deb.debian.org_debian_dists_buster-updates_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root 1152 Jun 6 21:56 deb.debian.org_debian_dists_buster-updates_non-free_binary-i386_Packages
-rw-r--r-- 1 root root 65372 Sep 20 14:12 deb.debian.org_debian-security_dists_buster_updates_InRelease
-rw-r--r-- 1 root root 1383604 Sep 18 19:14 deb.debian.org_debian-security_dists_buster_updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root 1375711 Sep 18 19:14 deb.debian.org_debian-security_dists_buster_updates_main_binary-i386_Packages
-rw-r--r-- 1 root root 711 Jun 11 17:17 deb.debian.org_debian-security_dists_buster_updates_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root 709 Jun 11 17:17 deb.debian.org_debian-security_dists_buster_updates_non-free_binary-i386_Packages
-rw-r--r-- 1 root root 1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-amd64_Packages.xz
-rw-r--r-- 1 root root 1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-i386_Packages.xz
-rw-r--r-- 1 root root 16850 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release
-rw-r--r-- 1 root root 173 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release.gpg
-rw-r----- 1 root root 0 Apr 16 12:07 lock
drwx------ 2 _apt root 16384 Sep 21 21:55 partial
root@DietPiVM1:~#
RPI3B+
root@DietPi3:~# ls -Al /var/lib/apt/lists
total 13760
-rw-r--r-- 1 root root 32598 Sep 21 14:46 archive.raspberrypi.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root 256212 Sep 21 14:46 archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages.xz
drwxr-xr-x 2 _apt root 4096 Sep 10 11:03 auxfiles
-rw-r--r-- 1 root root 16850 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release
-rw-r--r-- 1 root root 173 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release.gpg
-rw-r--r-- 1 root root 1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-armhf_Packages.xz
-rw-r----- 1 root root 0 Sep 10 11:03 lock
drwx------ 2 _apt root 4096 Sep 21 19:57 partial
-rw-r--r-- 1 root root 14974 Sep 21 18:49 raspbian.raspberrypi.org_raspbian_dists_buster_InRelease
-rw-r--r-- 1 root root 234957 Aug 1 18:49 raspbian.raspberrypi.org_raspbian_dists_buster_contrib_binary-armhf_Packages
-rw-r--r-- 1 root root 13005496 Sep 21 18:46 raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages.xz
-rw-r--r-- 1 root root 496339 Jun 7 02:07 raspbian.raspberrypi.org_raspbian_dists_buster_non-free_binary-armhf_Packages
root@DietPi3:~#
Nothing is compressed, hmm. What does the following say?
grep 'GzipIndexes' /etc/apt/apt.conf.d/*
apt-config dump | grep 'GzipIndexes'
And does it change something if you refresh the cache:
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
I’m a bid puzzled since those should all be xz-compressed and they are on my VMs, a notebook, RPi and NEO3 .
hmm that dosn’t looks good, getting an error on apt update now
root@DietPi3:~# grep 'GzipIndexes' /etc/apt/apt.conf.d/*
/etc/apt/apt.conf.d/97dietpi:Acquire::GzipIndexes "true";
root@DietPi3:~# apt-config dump | grep 'GzipIndexes'
Acquire::GzipIndexes "true";
root@DietPi3:~# /boot/dietpi/func/dietpi-set_software apt-cache clean
DietPi-Set_software
─────────────────────────────────────────────────────
Mode: apt-cache (clean)
[ OK ] apt-cache clean | Completed
root@DietPi3:~# apt update
Get:1 https://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Ign:2 https://download.webmin.com/download/repository sarge InRelease
Get:3 https://download.webmin.com/download/repository sarge Release [16.9 kB]
Get:4 https://archive.raspberrypi.org/debian buster/main armhf Packages [331 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:6 https://download.webmin.com/download/repository sarge Release.gpg [173 B]
Get:7 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
Get:8 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:9 https://download.webmin.com/download/repository sarge/contrib armhf Packages [1393 B]
Get:10 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.7 kB]
Fetched 13.6 MB in 13s (1030 kB/s)
Error: No information about packages! (Maybe no deb entries?)
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code
root@DietPi3:~# ls -Al /var/lib/apt/lists
total 13204
-rw-r--r-- 1 root root 32598 Sep 21 14:46 archive.raspberrypi.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root 256212 Sep 21 14:46 archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages.xz
drwxr-xr-x 2 _apt root 4096 Sep 21 23:06 auxfiles
-rw-r--r-- 1 root root 16850 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release
-rw-r--r-- 1 root root 173 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release.gpg
-rw-r--r-- 1 root root 1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-armhf_Packages.xz
-rw-r----- 1 root root 0 Sep 21 23:06 lock
drwx------ 2 _apt root 4096 Sep 21 23:06 partial
-rw-r--r-- 1 root root 14974 Sep 21 18:49 raspbian.raspberrypi.org_raspbian_dists_buster_InRelease
-rw-r--r-- 1 root root 58740 Aug 1 18:49 raspbian.raspberrypi.org_raspbian_dists_buster_contrib_binary-armhf_Packages.xz
-rw-r--r-- 1 root root 13005496 Sep 21 18:46 raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages.xz
-rw-r--r-- 1 root root 103532 Jun 7 02:07 raspbian.raspberrypi.org_raspbian_dists_buster_non-free_binary-armhf_Packages.xz
root@DietPi3:~#
Ah that is now what I was expecting in the first place. Not sure why your list files were not compressed until now, however that issue is exactly what apt-show-version causes as it manually wants to parse the lists (uncompressed) to build its own cache instead of using the existing native apt cache and methods.
It wants to update its cache on every apt update, hence the error there as well.
Now the workaround above with 98dietpi-webmin disables apt list compression. But I hope the next release that does not use apt-show-versions anymore is done before DietPi v6.33 release, so no workaround world be required anymore.
ok using the latest image, will lead the installation to fail. Strange that my older image version did not have this issue.
Anyway, still we would need to know what the issues if for the guys reporting the problem
Ah yes that makes sense then since the change was with DietPi v6.32 and an update does not refresh the lists as long as nothing changed, means after update to v6.32 some time has to pass before the first lists get updated and stay compressed then.
Yes while it is a good reason for a Webmin failure after update, so far it’s only an assumption that it’s the reason in OP case as well.
boogey
10 October 2020 20:12
16
Sorry for not logging in for awhile. I kind of felt intimidated initially because as I stated, I am a novice user. I’m glad I did log in today though, as it seems that I brought about a lot of consideration regarding the issue. It sounds as though the other poster with the same issue is experiencing what I am. I will wait for an updated release to come out and cross my fingers that the issue is worked out. Thank you for the time and effort looking into this!
well you could have it installed already today, just run the following before opening dietpi-software
echo 'Acquire::GzipIndexes "false";' > /etc/apt/apt.conf.d/98dietpi-webmin
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
dietpi-software
boogey
20 October 2020 20:27
18
I used the code you supplied and nothing has changed.
I checked the webmin logs this morning and found that it was unable to start with the log containing this info:
│ ● webmin.service - Webmin (DietPi)
│ Loaded: loaded (/etc/systemd/system/webmin.service; disabled; vendor preset: enabled)
│ Active: failed (Result: exit-code) since Tue 2020-10-20 15:22:24 CDT; 2min 13s ago
│ Process: 1055 ExecStart=/etc/webmin/start (code=exited, status=2)
│
│ Oct 20 15:22:24 DietPi systemd[1]: Starting Webmin (DietPi)…
│ Oct 20 15:22:24 DietPi start[1055]: Starting Webmin server in /usr/share/webmin
│ Oct 20 15:22:24 DietPi start[1055]: Failed to open config file /etc/webmin/miniserv.conf : No such file
│ or directory at /usr/share/webmin/miniserv.pl line 4615.
│ Oct 20 15:22:24 DietPi systemd[1]: webmin.service: Control process exited, code=exited,
│ status=2/INVALIDARGUMENT
│ Oct 20 15:22:24 DietPi systemd[1]: webmin.service: Failed with result ‘exit-code’.
│ Oct 20 15:22:24 DietPi systemd[1]: Failed to start Webmin (DietPi).
I hope it helps to find the issue here. If there is anything else I can supply, please let me know.
Hi,
your issue is a completely different one and has nothing to do with the topic above. Therefore, applying the code has no effect.
On your system, it seems, you are missing a main configuration file
Oct 20 15:22:24 DietPi start[1055]: Failed to open config file /etc/webmin/miniserv.conf : No such file
probably it’s needed to reinstall Webmin on your system
dietpi-software uninstall 115
rm -r /etc/webmin/
dietpi-software install 115
boogey
20 October 2020 21:52
20
IT’S WORKING!!! So glad to have it back; thank you! I appreciate the patience also!!!