[SOLVED] SSL error using getpkg

Post here if you are a new Porteus member and you're looking for some help.
lm089
White ninja
White ninja
Posts: 17
Joined: 05 Jan 2020, 13:00
Distribution: 32bit xfce

[SOLVED] SSL error using getpkg

Post#1 by lm089 » 20 Aug 2022, 10:25

Hi,
I'm running porteus 4 on an old 32bit netbook.
Trying to get adb (Android Debug Bridge) and fastboot / Android_Platform_Tools

Calling getpkg adb as root from Terminal returns an SSL error as in

Code: Select all

...
Using https://mirrors.slackware.com/mirrorlist
Looking up mirrors.slackware.com
Making HHTPS connection to mirrors.slackware.com
SSL callback:certificate has expired, preverify_ok=0, ssl_okay=0
Retrying connection without TLS.
Looking up mirrors.slackware.com
Making HHTPS connection to mirrors.slackware.com
Alert!: Unable to make secure connection to remote host.
...
I also tried using USM but that keeps telling me I need to update databases, then stops trying to update slacky:

Code: Select all

...
gzip: /var/usm/slacky/CHECKSUM.md5.gz: unexpected end of file
...
Probably needless to say that my experience with slackware etc. tends to be 0

Thx in advance
Lothar
Last edited by lm089 on 29 Aug 2022, 15:11, edited 1 time in total.

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

SSL error using getpkg

Post#2 by beny » 20 Aug 2022, 10:36


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

SSL error using getpkg

Post#3 by Ed_P » 20 Aug 2022, 15:03

lm089 wrote:
20 Aug 2022, 10:25
I also tried using USM but that keeps telling me I need to update databases, then stops trying to update slacky:
See if this helps with the USM updates.

Code: Select all

#!/bin/sh

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 /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

lm089
White ninja
White ninja
Posts: 17
Joined: 05 Jan 2020, 13:00
Distribution: 32bit xfce

SSL error using getpkg

Post#4 by lm089 » 24 Aug 2022, 08:03

Ed_P wrote:
20 Aug 2022, 15:03
See if this helps with the USM updates.
Thanks to both @beny and @Ed_P. :thumbsup:

I'll try both over the upcoming weekend

EDIT: I found a few minutes to try right away, and failed. Most probably due to my lack of experience. What I did:
copied Ed_P's entire script code and pasted into a pure text editor on my windows machine (notepad++, never let me down so I'm sure no unwanted hidden characters were included), saved it as "porteusUsmUpdater.sh" and copied that file over to the netbook to /home/Guest/Downloads.
Opened a terminal in porteus to that folder and ran

Code: Select all

bash porteusUsmUpdater.sh
. Tried again with

Code: Select all

sh porteusUsmUpdater.sh
. In both cases this is what I receive:

Code: Select all

porteusUsmUpdater.sh: line 2: $'\r': command not found
I edited the .sh file using porteus' editor (mousepad?), removing and recreating all line breaks but that doesn't help.

Sounds like a very simple problem but no idea how to solve it...

EDIT 2: never mind, guess I found the solution here: https://unix.stackexchange.com/question ... -not-found

Post Reply