Page 1 of 1

usm error

Posted: 08 Sep 2022, 11:10
by yasirqadhi210
I using porteus 4.0 and usm says error occured when updating.

fatal error
usm update_database 248
could not decompress: checksums.md5.gz

how do I download packages?

usm error

Posted: 08 Sep 2022, 15:42
by beny
hi try this for your packages search: https://slakfinder.org/ remember to choose the i386 system,when you have a package listed click on it and you can see the deps if you have any.

usm error

Posted: 08 Sep 2022, 16:03
by Ed_P
yasir try this script for USM.

Code: Select all

#!/bin/sh

if [ `whoami` != "root" ]; then
   echo -e "Enter root's password\033[1;31m"
   su -c "sh $0 $1 $2"; exit
fi
echo -e "\033[0m"; echo -en "\033]0;USM update fix\a" 

if [ ! -e /etc/usm/usm.conf.bkup ]; then
   cp /etc/usm/usm.conf /etc/usm/usm.conf.bkup
fi

sed -i 's^patches slacky salix^patches        salix^' /etc/usm/usm.conf

usm -u all

rm /var/usm/slacky/*
touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
#https://forum.porteus.org/viewtopic.php?p=82046#p82046

cp /etc/usm/usm.conf.bkup /etc/usm/usm.conf
echo "USM Update done."
read

usm error

Posted: 16 Sep 2022, 06:28
by Rava
yasir, did Ed_P's script help you with your USM issue?

usm error

Posted: 26 Sep 2022, 06:03
by yasirqadhi210
Ed_P wrote:
08 Sep 2022, 16:03
`whoami` != "root" ]; then
echo -e "Enter root's password\033[1;31m"
su -c "sh $0 $1 $2"; exit
fi
echo -e "\033[0m
Ed_P wrote:
08 Sep 2022, 16:03
yasir try this script for USM.

Code: Select all

#!/bin/sh

if [ `whoami` != "root" ]; then
   echo -e "Enter root's password\033[1;31m"
   su -c "sh $0 $1 $2"; exit
fi
echo -e "\033[0m"; echo -en "\033]0;USM update fix\a" 

if [ ! -e /etc/usm/usm.conf.bkup ]; then
   cp /etc/usm/usm.conf /etc/usm/usm.conf.bkup
fi

sed -i 's^patches slacky salix^patches        salix^' /etc/usm/usm.conf

usm -u all

rm /var/usm/slacky/*
touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
#https://forum.porteus.org/viewtopic.php?p=82046#p82046

cp /etc/usm/usm.conf.bkup /etc/usm/usm.conf
echo "USM Update done."
read
I saved that script as "usm" and tried executing the script from my /home/guest/ but it says only root can execute it.
So, I used "sudo usm" and entered the root password "toor" but it says invalid password.

What am I doing wrong?

usm error

Posted: 26 Sep 2022, 08:03
by donald
Not knowing what you already did , I start fresh:
copy the script - mine is in /home/guest/Test/ named usm like you did.

open terminal in that folder where the script is and try to run it, you will most likely
see this:
guest@porteus:~/Test$ ./usm
bash: ./usm: Permission denied

now run
guest@porteus:~/Test$ chmod +x ./usm

and run the script once more.
guest@porteus:~/Test$ ./usm
Enter root's password
Password:

enter root Pw and it should work as it did for me ---- no sudo please.

Code: Select all

 Starting slackware database update 
Downloading: vercheck.txt  DONE
Downloading: CHECKSUMS.md5  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slackware  database updated. 

Updating config file

 Starting slackwarepatches database update 
Downloading: CHECKSUMS.md5  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slackwarepatches  database updated. 

 Starting salix database update 
Downloading: CHECKSUMS.md5  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
Downloading: OPTIFEST.gz  DONE
 salix  database updated. 

 Starting alien database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 alien  database updated. 

 Starting ponce database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
Optimizing manifest
 ponce  database updated. 

 Starting slackonly database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slackonly  database updated. 

 Starting sbo database update 
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz  DONE
 sbo  database updated. 


Downloading: extra-deps.txt  DONE
Downloading: ignore-deps.txt  DONE

USM Update done.

guest@porteus:~/Test$ 
btw
I would add a line at the end/bottom of the script to make it more obvious.

echo "USM Update done."
echo "Press Enter to exit" <-- this is the additional line
read