[Solved] restarting USM??

Post here if you are a new Porteus member and you're looking for some help.
donald
Full of knowledge
Full of knowledge
Posts: 1850
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

restarting USM??

Post#16 by donald » 12 Apr 2021, 11:33

Ed_P wrote:
12 Apr 2021, 05:42
Run an echo " " > /var/usm/slacky/CHECKSUMS.md5 and repeat for LIBS.TXT, OPTIFEST and PACKAGES.TXT

Code: Select all

touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
;)

Bob1414
Black ninja
Black ninja
Posts: 33
Joined: 28 Mar 2021, 15:35
Distribution: Cinnamon 4 kernel5.11.13 p

[Solved] restarting USM??

Post#17 by Bob1414 » 12 Apr 2021, 13:12

I'm severely distracted since I cannot log into root since yesterday. So I'll post a quick summary and mark this as solved.

I've been able to search and find packages, but not download them. In the USM GUI, I always got the error msg "LIBS.TXT not found". Donald explains the error msg is misleading: Re: Porteus - USM error (Post by donald #67759)

In short, it wants and fails to find itself as a dependency for some odd reason and wrongly reports LIB.TXT is not found. Logically therefore, I merely unchecked "resolve dependencies" and all went well.

I have been, after all, trying to download and use standalone programs. This is not the same as, for example, using the Nodejs package manager (npm, for javascript and nothing to do with Linux) wherein almost every download has dependencies that will get simultaneously downloaded if missing.

I've just successfully installed VLC, quick and easy once the trick is known.

Bob1414
Black ninja
Black ninja
Posts: 33
Joined: 28 Mar 2021, 15:35
Distribution: Cinnamon 4 kernel5.11.13 p

[Solved] restarting USM??

Post#18 by Bob1414 » 12 Apr 2021, 13:42

Bob1414 wrote:
12 Apr 2021, 13:12

I have been, after all, trying to download and use standalone programs. This is not the same as, for example, using the Nodejs package manager (npm, for javascript and nothing to do with Linux) wherein almost every download has dependencies that will get simultaneously downloaded if missing.

I've just successfully installed VLC, quick and easy once the trick is known.
Or maybe that's completely wrong because all the VLC xzm does is crash crash crash. I'd downloaded vlc-3.0.12-x86_64-1alien.txz

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

[Solved] restarting USM??

Post#19 by donald » 12 Apr 2021, 15:00

@Bob1414
Or maybe that's completely wrong because all the VLC xzm does is crash crash crash. I'd downloaded vlc-3.0.12-x86_64-1alien.txz
download / activate
http://www.mediafire.com/file/n6m2vta9w ... 64-jss.xzm

Bob1414
Black ninja
Black ninja
Posts: 33
Joined: 28 Mar 2021, 15:35
Distribution: Cinnamon 4 kernel5.11.13 p

[Solved] restarting USM??

Post#20 by Bob1414 » 12 Apr 2021, 17:43

donald wrote:
12 Apr 2021, 15:00
QT5
Thanks, Donald. Apparently, unlike most Linux(es), everything for Porteus has to be in a module customized for the Porteus version and probably for the Cinnamon DE, too. I'll try the QT5 tool, after I get the basics hammered out for using Porteus if/when my update-damaged Windows fails to start.

User avatar
Ed_P
Contributor
Contributor
Posts: 6409
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0rc3 ISOs
Location: Western NY, USA

[Solved] restarting USM??

Post#21 by Ed_P » 12 Apr 2021, 18:30

donald wrote:
12 Apr 2021, 11:33

Code: Select all

touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
;)
usmupdate2021.sh

Code: Select all

#!/bin/sh
# Based on suggestions from donald:
# https://forum.porteus.org/viewtopic.php?p=82013#p82013

function Title() {
  echo -en "\033]0;$1\a";
}
Title "USM Update"
if [ `whoami` != "root" ]; then
  echo "Enter root's password" $(tput bold)$(tput setaf 1)  # 1-red, 2-green, 6-cyan, 7-white
  su -c "sh $0 $1 $2"; exit
fi 
echo $(tput sgr0)

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 --force /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."
echo "Press Enter to Exit."
read
Thank you donald. :beer:
Ed

Kulle
Shogun
Shogun
Posts: 336
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

[Solved] restarting USM??

Post#22 by Kulle » 15 Apr 2021, 07:15

Hi ED_P,
Error message from script:
Removing the slacky file is not possible. file not found

But (!) the slacky file exists.

I.e. you have to remove the xyz file manually.

Code: Select all

root@porteus:/home/guest# ./usmupdate2021.sh 

find: "/tmp/xdg-runtime-guest/gvfs": Keine Berechtigung
 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

rm: das Entfernen von '/var/usm/slacky/*' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
USM Update done.
^C
root@porteus:/home/guest# cd /var/usm/
root@porteus:/var/usm# ls
alien/  ponce/  sbo/        slackware/         slacky/
local/  salix/  slackonly/  slackwarepatches/
root@porteus:/var/usm#

Kulle
Shogun
Shogun
Posts: 336
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

[Solved] restarting USM??

Post#23 by Kulle » 15 Apr 2021, 07:29

Line 24
rm /var/usm/slacky/*

replace with

rm -r /var/usm/slacky/*

But what does * mean?
ls command shows the files alien ponce ... without *

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

[Solved] restarting USM??

Post#24 by donald » 15 Apr 2021, 09:22

Error message from script:
Removing the slacky file is not possible. file not found
because the DIR was empty, but the update did work,no?
one could use rm --force /var/usm/slacky/* in Line 24 to suppress the message.
But what does * mean?
* is a wildcard - goggle it. ;)
[ * (asterisk) this can represent any number of characters ]

btw
maybe something like
echo "Press Enter to exit"
( Line 30) would be useful.

Kulle
Shogun
Shogun
Posts: 336
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

[Solved] restarting USM??

Post#25 by Kulle » 15 Apr 2021, 10:57

Hi Donald,
I am of course familiar with the wildcard symbol *.
I had mixed up that.

I meant the star at the end of the filename.
e.g. by ls /var/log/packages some file names appear green with an * at the end.
What does this * mean?

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

[Solved] restarting USM??

Post#26 by donald » 15 Apr 2021, 11:36

In porteus the ls command uses an alias adding the -F option, (and more), look in ~/.bashrc
When using the ls command, the asterisk indicates an executable file.

cat ~/.bashrc
# Setup color scheme for list call <brokenman>
alias ll='/bin/ls --color=auto -lF'
alias la='/bin/ls --color=auto -axF'
alias ls='/bin/ls --color=auto -xF'

User avatar
Ed_P
Contributor
Contributor
Posts: 6409
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0rc3 ISOs
Location: Western NY, USA

[Solved] restarting USM??

Post#27 by Ed_P » 15 Apr 2021, 15:33

Kulle wrote:
15 Apr 2021, 07:29
Line 24
rm /var/usm/slacky/*

replace with

rm -r /var/usm/slacky/*
Kulle none of my /var/usm/ folders have sub-folders. Why does your /var/usm/slacky have one?
donald wrote:
15 Apr 2021, 09:22
one could use rm --force /var/usm/slacky/* in Line 24 to suppress the message.
Ok.
donald wrote:
15 Apr 2021, 14:57
echo "Press Enter to exit"
Thank you donald.
Ed

Post Reply