Page 1 of 1

USM Error in Porteus 5

Posted: 22 Apr 2020, 02:41
by aitherkilin
i start a few days to use porteus 5 KDE version and the usm package manager dont work

this my usm info:
++++++++++++++++++++++++++++++
usm application information

USM version: 3.2.0
DB version: 161003
Current storage: /home/guest/usm/
Current config: /etc/usm/usm.conf
Current platform: Porteus-v5.0
Current arch: x86_64
Slackware Slackware 14.1+
Current kernel 5.1.5-porteus
Current distros: slacky sbo
quiet changes=/porteus initrd=/boot/syslinux/initrd.xz BOOT_IMAGE=/boot/syslinux/vmlinuz

i edit my usm.conf for use only a few repos, and for o reason usm try to update only alien repo and get error:

DISTROS="slacky sbo"


and this is the error:

usm -u all
Starting alien database update
Downloading: vercheck.txt DONE
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE

gzip: /var/usm/alien/CHECKSUMS.md5.gz: unexpected end of file


==============================================================================
WARNING! WARNING! WARNING! WARNING! WARNING!
==============================================================================
One or more errors occurred while usm was running:

FATAL ERROR!
usm update_database 270
Could not decompress: CHECKSUMS.md5.gz

==============================================================================

please help!and Thanks

USM Error in Porteus 5

Posted: 22 Apr 2020, 03:53
by Ed_P
USM doesn't work in the 5.0 test system.

USM Error in Porteus 5

Posted: 22 Apr 2020, 18:37
by michalpelszyk
Yeah, I found about it too.
Main problem is, I found, that it doesn't recognise when a file is unavailable at the expected location, creates an empty one and then tries to decompress it.
This is the gzip: /var/usm/alien/CHECKSUMS.md5.gz: unexpected end of file type of error. It would be great if the usm script knew the file does not exist and produced appropriate error.
For example, at the moment the default Slacky repository of repository.slacky.eu does not work.

Second thing is the procedure to update sbo does not work. It tries to download from https://slackbuilds.org/slackbuilds/current, but there is no "current" there.
It worked for me when I edited /usr/share/usm/funcupdateDatabase and changed line 89 from

Code: Select all

for a in $FILES; do echo $a; download $REPO_SBO/$SLACKVER/$a $SDIR; done
to

Code: Select all

for a in $FILES; do echo $a; download $REPO_SBO/14.2/$a $SDIR; done
With this workaround I was finally able to get usm to work on 5.0rc1 edition.