Having issues with your DietPi installation or found a bug? Post it here.
MichaIng
Site Admin
Posts: 4047 Joined: Sat Nov 18, 2017 6:21 pm
Post
by MichaIng » Mon Sep 21, 2020 10:52 pm
Nothing is compressed, hmm. What does the following say?
Code: Select all
grep 'GzipIndexes' /etc/apt/apt.conf.d/*
apt-config dump | grep 'GzipIndexes'
And does it change something if you refresh the cache:
Code: Select all
/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
.
Joulinar
Legend
Posts: 8326 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Mon Sep 21, 2020 11:10 pm
hmm that dosn't looks good, getting an error on
apt update now
Code: Select all
root@DietPi3:~# grep 'GzipIndexes' /etc/apt/apt.conf.d/*
/etc/apt/apt.conf.d/97dietpi:Acquire::GzipIndexes "true";
Code: Select all
root@DietPi3:~# apt-config dump | grep 'GzipIndexes'
Acquire::GzipIndexes "true";
Code: Select all
root@DietPi3:~# /boot/dietpi/func/dietpi-set_software apt-cache clean
DietPi-Set_software
─────────────────────────────────────────────────────
Mode: apt-cache (clean)
[ OK ] apt-cache clean | Completed
Code: Select all
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
Code: Select all
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:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
MichaIng
Site Admin
Posts: 4047 Joined: Sat Nov 18, 2017 6:21 pm
Post
by MichaIng » Tue Sep 22, 2020 2:15 am
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.
Joulinar
Legend
Posts: 8326 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Tue Sep 22, 2020 12:19 pm
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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
MichaIng
Site Admin
Posts: 4047 Joined: Sat Nov 18, 2017 6:21 pm
Post
by MichaIng » Tue Sep 22, 2020 1:11 pm
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
Posts: 23 Joined: Sat Sep 19, 2020 11:24 pm
Post
by boogey » Sat Oct 10, 2020 10:12 pm
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!
Joulinar
Legend
Posts: 8326 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Sat Oct 10, 2020 10:17 pm
well you could have it installed already today, just run the following before opening
dietpi-software
Code: Select all
echo 'Acquire::GzipIndexes "false";' > /etc/apt/apt.conf.d/98dietpi-webmin
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
dietpi-software
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
boogey
Posts: 23 Joined: Sat Sep 19, 2020 11:24 pm
Post
by boogey » Tue Oct 20, 2020 10:27 pm
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.
Joulinar
Legend
Posts: 8326 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Tue Oct 20, 2020 11:20 pm
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
Code: Select all
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
Code: Select all
dietpi-software uninstall 115
rm -r /etc/webmin/
dietpi-software install 115
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
boogey
Posts: 23 Joined: Sat Sep 19, 2020 11:24 pm
Post
by boogey » Tue Oct 20, 2020 11:52 pm
IT'S WORKING!!! So glad to have it back; thank you! I appreciate the patience also!!!