usm error

Post here if you are a new Porteus member and you're looking for some help.
yasirqadhi210
White ninja
White ninja
Posts: 6
Joined: 03 Sep 2022, 09:53
Distribution: porteus xfce 5.0

usm error

Post#1 by yasirqadhi210 » 08 Sep 2022, 11:10

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?

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

usm error

Post#2 by beny » 08 Sep 2022, 15:42

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 8315
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

usm error

Post#3 by Ed_P » 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
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

usm error

Post#4 by Rava » 16 Sep 2022, 06:28

yasir, did Ed_P's script help you with your USM issue?
Cheers!
Yours Rava

yasirqadhi210
White ninja
White ninja
Posts: 6
Joined: 03 Sep 2022, 09:53
Distribution: porteus xfce 5.0

usm error

Post#5 by yasirqadhi210 » 26 Sep 2022, 06:03

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?

donald
Full of knowledge
Full of knowledge
Posts: 2061
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

usm error

Post#6 by donald » 26 Sep 2022, 08:03

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

Post Reply