Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#61
by Rava » 02 Feb 2019, 08:12
Trying to update the usm databases for my usm databases backup into a module script
usmdb.shCode: Select all
#!/bin/bash
# Version 0.1 by rava@forum.porteus.org
targetdir=/tmp/usmdb-$(date +%Y-%m-%d)
xzmdbmodule=/tmp/usmdb-$(date +%Y-%m-%d).xzm
if [ -d $targetdir ]; then
rm -r $targetdir
fi
mkdir $targetdir
cp -a --parents /var/usm/ $targetdir
dir2xzm $targetdir $xzmdbmodule
echo -e "Your module is created as ${xzmdbmodule}.
Make sure to copy it outside the union prior shutdown or reboot."
read
It all worked well yesterday, but I had to reboot, and today the databases update fails and fails:
Code: Select all
root@porteus:~# usm -u all
find: ‘/tmp/xdg-runtime-guest/gvfs’: Permission denied
14.2+
alien was updated 1350 seconds ago. Skipping.
salix was updated 70 seconds ago. Skipping.
slacky was updated 1347 seconds ago. Skipping.
ponce was updated 1344 seconds ago. Skipping.
slackware was updated 1334 seconds ago. Skipping.
slackwarepatches was updated 1317 seconds ago. Skipping.
slackonly was updated 1298 seconds ago. Skipping.
Starting sbo database update
Downloading: vercheck.txt DONE
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz DONE
gzip: /var/usm/sbo/SLACKBUILDS.TXT.gz: unexpected end of file
==============================================================================
WARNING! WARNING! WARNING! WARNING! WARNING!
==============================================================================
One or more errors occurred while usm was running:
FATAL ERROR!
usm update_database 275
Could not decompress: SLACKBUILDS.TXT.gz
==============================================================================
root@porteus:~# l /var/usm/sbo/
total 0
drwxr-xr-x 2 root 60 2019-02-02 08:55 .
drwxr-xr-x 18 root 220 2019-02-02 08:33 ..
-rw-r--r-- 1 root 0 2019-02-02 08:55 SLACKBUILDS.TXT.gz
What is the best approach to force usm in using another mirror for, in this case, the sbo database?
Repeating usm -u all just keeps getting the same error.
Also, the
help doesn't name sbo as one of the databases:
Code: Select all
root@porteus:~# usm -h
find: ‘/tmp/xdg-runtime-guest/gvfs’: Permission denied
Usage: usm <option> [argument]
Single letter options also support entire words.
Example: -u is the same as -update, --update or update
Use example: -u all (to update all databases)
Options Arguments
-u: Update databases. alien|ponce|salix|slackware|slacky|slackonly|all
Cheers!
Yours Rava
Rava
-
ncmprhnsbl
- DEV Team
- Posts: 3941
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
-
Contact:
Post#62
by ncmprhnsbl » 02 Feb 2019, 09:08
Rava wrote: ↑02 Feb 2019, 08:12
What is the best approach to force usm in using another mirror for, in this case, the sbo database?
to edit: /etc/usm/mirrors-sbo.txt
you have a mirror in mind? this is one i found:
https://slackware.uk/slackbuilds.org/
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
ncmprhnsbl
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#63
by Rava » 02 Feb 2019, 09:20
Sadly, the error is still the same:
Code: Select all
root@porteus:~# cat /etc/usm/mirrors-sbo.txt
# mirrors - List of SBo Linux mirrors
https://slackware.uk/slackbuilds.org/
#http://slackbuilds.org/slackbuilds
root@porteus:~# usm -u sbo
find: ‘/tmp/xdg-runtime-guest/gvfs’: Permission denied
14.2+
Starting sbo database update
Downloading: vercheck.txt DONE
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz DONE
gzip: /var/usm/sbo/SLACKBUILDS.TXT.gz: unexpected end of file
==============================================================================
WARNING! WARNING! WARNING! WARNING! WARNING!
==============================================================================
One or more errors occurred while usm was running:
FATAL ERROR!
usm update_database 275
Could not decompress: SLACKBUILDS.TXT.gz
==============================================================================
There should be enough free space in the union, right?
Code: Select all
root@porteus:~# dx /
02.02.2019 10:19:17 ____________________________________________________________
Filesystem Type 1M-blocks Used Available Use% Mounted on
aufs aufs 777 534 244 69% /
My dx function prints the df in MBs. And omits 'tmpfs|/mnt/live/run|squashfs'
Offtopic weirdness, but after I deleted some stuff from /tmp my / aufs had less free space than before:
Code: Select all
root@porteus:/tmp# dx /
02.02.2019 10:23:06 ____________________________________________________________
Filesystem Type 1M-blocks Used Available Use% Mounted on
aufs aufs 777 566 212 73% /
How could that be? Are deleted files still stored in / aufs?
I really expected the / aufs having more free space after deleting stuff from the union, e.g. from /tmp. Why is that the very opposite, then?
Cheers!
Yours Rava
Rava
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#64
by Ed_P » 02 Feb 2019, 17:01
Try it now.
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# usm -u sbo
Starting sbo database update
Downloading: vercheck.txt DONE
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz DONE
sbo database updated.
root@porteus:/home/guest#
Ed
Ed_P
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#65
by Rava » 02 Feb 2019, 17:37
Ed_P wrote: ↑02 Feb 2019, 17:01
Try it now.
nope, still the same error, be it the default or the
https://slackware.uk/slackbuilds.org/
mirror.
Ed_P could you please upload the module by the usm update + database script you posted the other day?
That sure would solve my issue for now. Unless the database got to old and a update might be required, but let's think positive and not presume this error is ongoing forever.
Cheers!
Yours Rava
Rava
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#66
by Ed_P » 03 Feb 2019, 03:30
If I can find that script I will see what I can do.
But the fact that I can update sbo (2x) and
ncmp can too implies that the problem is not with the mirror but with your system. And that being so the file I create may not help you. Have you tried doing the sbo update in AF mode?
Another thought would be to add the USM database backup to the rootcopy backup that you create. It's what I do to my changes module.
Ed
Ed_P
-
Rava
- Contributor
- Posts: 5416
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#67
by Rava » 03 Feb 2019, 03:58
Ed_P wrote: ↑03 Feb 2019, 03:30
If I can find that script I will see what I can do.
Here you go:
usm-usm+db_backup.shCode: Select all
#!/bin/bash
# Get usm current version, inlining /etc/usm/version.txt results in a valid $USMVERSION
. /etc/usm/version.txt
# Save USM as a mod file
MOD=USM_V$USMVERSION_$(date +%Y-%m-%d)
if [ `whoami` != "root" ]; then
echo "Enter root's password"
su -c "sh $0 $1"
exit
fi
if [ -d /tmp/mod/ ]; then
rm -rf /tmp/mod
fi
mkdir -p /tmp/mod
# copy mod files
cp -a --parents /etc/usm/* /tmp/mod/
cp -a --parents /var/usm/ /tmp/mod/
cp -a --parents /usr/bin/usmgui /tmp/mod/
cp -a --parents /usr/bin/usm /tmp/mod/
cp -a --parents /usr/bin/gksu /tmp/mod/
cp -a --parents /opt/porteus-scripts/xorg/psu /tmp/mod/
cp -a --parents /usr/share/icons/hicolor/48x48/apps/usm.png /tmp/mod/
cp -a --parents /usr/share/applications/usm.desktop /tmp/mod/
echo
du -ch /tmp/mod/
echo Changed files copied. Press Enter to create module, Ctrl+C to exit.
read
du -h /tmp/mod/
echo
dir2xzm /tmp/mod /tmp/$MOD.xzm && rm -rf /tmp/mod
echo
ls -sh /tmp/*.xzm
echo
echo Finished!
read
Update thanks for the PM and the uploaded USM module, I was not quick enough sending you my version of the usm and db backup script. xD
Cheers!
Yours Rava
Rava
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#68
by Ed_P » 03 Feb 2019, 04:48
My version is in the module in the PM.
Ed
Ed_P
-
francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Post#69
by francois » 21 Jan 2020, 01:18
Code: Select all
root@porteus:~# usm -u all
slackware was updated 233 seconds ago. Skipping.
Starting slackwarepatches database update
Downloading: vercheck.txt DONE
Downloading: CHECKSUMS.md5 DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
There was a problem downloading the file:
root@porteus:~#
Something to do about it?
Prendre son temps, profiter de celui qui passe.
francois
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#70
by Ed_P » 21 Jan 2020, 06:33
Not many options. Try again.
Ed
Ed_P
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#71
by Ed_P » 21 Jan 2020, 23:42
I just ran a complete USM update
francois.
Code: Select all
usm -u all
sh-4.4# usm -u 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 slacky 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
slacky 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
Please restart the application to refresh the database.
sh-4.4#
Ed
Ed_P
-
francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Post#72
by francois » 22 Jan 2020, 02:25
Works now.
Prendre son temps, profiter de celui qui passe.
francois
-
martynuzza
- White ninja
- Posts: 19
- Joined: 21 Aug 2017, 17:14
- Distribution: Porteus
Post#73
by martynuzza » 03 Feb 2020, 14:57
I have some problem with USM (using porteus 5 rc1), i'm not able to download any package that require dependancies (LIBS.TXT not found) or if i search for a package (i.e. Thunderbird) appear a version but is not installable the lastest but an older one. I had to manually search, download and convert mozilla-thunderbird-68.4.2-x86_64-1_slack14.2.txz to xzm.
Now a simply tool: nano, it complain about awk...
Code: Select all
usm -g nano
14.2+
The following items were found.
Choose an number to confirm.
ctrl+c to quit
1) nano-2.3.2-x86_64-1.txz
#? 1
Processing: nano-2.3.2-x86_64-1.txz
Ignored libraries:
Libraries required: 4
Libraries found in system: 4
Libraries to resolve: 0
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: attempt to access field -1
grep: /etc/usm/mirrors-.txt: No such file or directory
grep: /var/usm//PACKAGES.TXT: No such file or directory
grep: /var/usm//PACKAGES.TXT: No such file or directory
The following packages are required.
nano-2.3.2-x86_64-1.txz [] [not installed]
Total size: 0 KB
Would you like to install the package/s? (custom paths are supported) [y/n]
And another great utility that i can't get work MEGASYNC 4.2.5 all tar.gz downloaded are 0 byte length
Code: Select all
usm sbo -b MEGAsync
14.2+
Downloading: MEGAsync.tar.gz DONE
/tmp/usmsbo /home/guest
tar: This does not look like a tar archive
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
==============================================================================
WARNING! WARNING! WARNING! WARNING! WARNING!
==============================================================================
One or more errors occurred while usm was running:
FATAL ERROR!
sbo_build 87
Could not decompress MEGAsync.tar.gz
==============================================================================
How do you deal with these annoying problems?
martynuzza
-
dZ0TFR
- Samurai
- Posts: 143
- Joined: 07 Apr 2019, 07:16
- Distribution: Porteus-4.0
Post#74
by dZ0TFR » 03 Feb 2020, 16:16
Update usm:
Update mirrors:
if it doesn’t work, try this:
Code: Select all
usm -u slacky
usm -u salix
usm -u alien
usm -u ponce
usm -u slackonly
usm -u sbo
usm -u slackware
usm -u slackwarepatches
Porteus-4.0-x86 (t.me/porteusrus)
dZ0TFR
-
martynuzza
- White ninja
- Posts: 19
- Joined: 21 Aug 2017, 17:14
- Distribution: Porteus
Post#75
by martynuzza » 03 Feb 2020, 18:45
I've done that already before posting here. Clean porteus without any modification. It's a mirror problem?
martynuzza