LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2022, 08:12 AM   #1
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Rep: Reputation: Disabled
slpkg no-check-certificate


Im using 14.2 and just installed slpkg but I keep getting
no-check-certificate
and cannot get past it.

Code:
bash-4.3# slpkg update

Check and update repositories:

Check repository [slack] ... 
[1/1][ Download ] --> PACKAGES.TXT

--2022-07-06 14:05:24--  http://mirrors.slackware.com/slackware/slackware64-14.2/PACKAGES.TXT
Resolving mirrors.slackware.com... 207.223.116.213, 64:ff9b::cfdf:74d5
Connecting to mirrors.slackware.com|207.223.116.213|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://mirrors.slackware.com/slackware/slackware64-14.2/PACKAGES.TXT [following]
--2022-07-06 14:05:25--  https://mirrors.slackware.com/slackware/slackware64-14.2/PACKAGES.TXT
Connecting to mirrors.slackware.com|207.223.116.213|:443... connected.
ERROR: cannot verify mirrors.slackware.com's certificate, issued by ‘CN=R3,O=Let's Encrypt,C=US’:
  Issued certificate has expired.
To connect to mirrors.slackware.com insecurely, use `--no-check-certificate'.

+==============================================================================
| Download 'PACKAGES.TXT' file [ FAILED ]
+==============================================================================

Would you like to continue [y/N]? n
bash-4.3# slpkg upgrade

Check and update repositories:

Check repository [slack] ... 
[1/1][ Download ] --> PACKAGES.TXT

--2022-07-06 14:05:38--  http://mirrors.slackware.com/slackware/slackware64-14.2/PACKAGES.TXT
Resolving mirrors.slackware.com... 207.223.116.213, 64:ff9b::cfdf:74d5
Connecting to mirrors.slackware.com|207.223.116.213|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://mirrors.slackware.com/slackware/slackware64-14.2/PACKAGES.TXT [following]
--2022-07-06 14:05:38--  https://mirrors.slackware.com/slackware/slackware64-14.2/PACKAGES.TXT
Connecting to mirrors.slackware.com|207.223.116.213|:443... connected.
ERROR: cannot verify mirrors.slackware.com's certificate, issued by ‘CN=R3,O=Let's Encrypt,C=US’:
  Issued certificate has expired.
To connect to mirrors.slackware.com insecurely, use `--no-check-certificate'.

+==============================================================================
| Download 'PACKAGES.TXT' file [ FAILED ]
+==============================================================================

Would you like to continue [y/N]?
bash-4.3# slpkg --no-check-certificate update

just returns help

What is amiss?
 
Old 07-06-2022, 01:33 PM   #2
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I ran
slpkg health

and got this. 98% this good or bad?

Code:
(Cut very long listing that took several minutes!)

usr/share/zsh/5.6.2/help/wait
usr/share/zsh/5.6.2/help/whence
usr/share/zsh/5.6.2/help/zcompile
usr/share/zsh/5.6.2/help/zformat
usr/share/zsh/5.6.2/help/zftp
usr/share/zsh/5.6.2/help/zle
usr/share/zsh/5.6.2/help/zmodload
usr/share/zsh/5.6.2/help/zparseopts
usr/share/zsh/5.6.2/help/zprof
usr/share/zsh/5.6.2/help/zpty
usr/share/zsh/5.6.2/help/zregexparse
usr/share/zsh/5.6.2/help/zsocket
usr/share/zsh/5.6.2/help/zstyle
usr/share/zsh/5.6.2/help/ztcp
usr/share/zsh/5.6.2/scripts/newuser

+==============================================================================
| Total files       Not installed                                        Health
+==============================================================================
| 494378            11181                                                  98%
+==============================================================================
bash-4.3#
 
Old 07-06-2022, 02:29 PM   #3
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Should have included this earlier.
Code:
bash-4.3# slpkg -v
Version   : 3.4.3
Licence   : GNU General Public License v3 (GPLv3)
Email     : d.zlatanidis@gmail.com
Homepage  : https://dslackw.gitlab.io/slpkg/
Twitter   : https://twitter.com/dslackw
Maintainer: Dimitris Zlatanidis (dslackw)
bash-4.3#
 
Old 07-07-2022, 01:24 AM   #4
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 953

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by SAJM View Post
Should have included this earlier.
Code:
bash-4.3# slpkg -v
Version   : 3.4.3
Licence   : GNU General Public License v3 (GPLv3)
Email     : d.zlatanidis@gmail.com
Homepage  : https://dslackw.gitlab.io/slpkg/
Twitter   : https://twitter.com/dslackw
Maintainer: Dimitris Zlatanidis (dslackw)
bash-4.3#
I don't know for sure if your problem has been fixed in newer versions of slpkg, I can only say for sure that version 4.1.3 worked fine for me some week ago when I used it to install packages.

Where did you find that version and why did you choose to install version 3.4.3? At slackbuilds.org the version for Slackware 15.0 is 4.1.3. If you don't choose to use slackbuilds.org and instead download directly from the source given above ( https://dslackw.gitlab.io/slpkg/ ) you will again get version 4.1.3.

I get 100% from "slkpk health" on my system, a lower number means that some of your installed packages have missing files. My guess is that would be caused by messing around removing files from the installation with other tools than Slackware package management tools.

regards Henrik
 
Old 07-07-2022, 01:44 AM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 589

Rep: Reputation: Disabled
Perhaps if you are on Slackware 14.2 still you forgot to update the ca-certificates package and run "update-ca-certificates --fresh"?
Do you habitually apply the patches that are released for Slackware 14.2?
 
Old 07-07-2022, 03:21 AM   #6
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Windu View Post
Perhaps if you are on Slackware 14.2 still you forgot to update the ca-certificates package and run "update-ca-certificates --fresh"?
Do you habitually apply the patches that are released for Slackware 14.2?
I did that

Code:
bash-4.3# update-ca-certificates --fresh
Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
But it did not solve the problem.
 
Old 07-07-2022, 03:31 AM   #7
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by henca View Post

Where did you find that version and why did you choose to install version 3.4.3?

regards Henrik
I installed from sbopkg
 
Old 07-07-2022, 03:53 AM   #8
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I tried a few things here.

Code:
bash-4.3# slpkg -q thonny --add

Add packages in the queue:

Traceback (most recent call last):
  File "/usr/bin/slpkg", line 41, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 853, in main
    arguments[args[0]]()
  File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 512, in pkg_queue
    queue.add(self.args[1:])
  File "/usr/lib64/python2.7/site-packages/slpkg/sbo/queue.py", line 99, in add
    find = sbo_search_pkg(pkg)
  File "/usr/lib64/python2.7/site-packages/slpkg/sbo/search.py", line 39, in sbo_search_pkg
    _meta_.lib_path + "sbo_repo/SLACKBUILDS.TXT")
  File "/usr/lib64/python2.7/site-packages/slpkg/utils.py", line 62, in read_file
    with open(registry, "r") as file_txt:
IOError: [Errno 2] No such file or directory: '/var/lib/slpkg/sbo_repo/SLACKBUILDS.TXT'
bash-4.3# slpkg -c SLACKBUILDS.TXT --upgrade

slpkg: Error: Repository 'SLACKBUILDS.TXT' does not exist

bash-4.3# slpkg -c SLACKBUILDS.TXT --download-only

slpkg: Error: Repository 'SLACKBUILDS.TXT' does not exist

bash-4.3# ls /var/lib/slpkg/sbo_repo/
ls: cannot access '/var/lib/slpkg/sbo_repo/': No such file or directory
bash-4.3# ls /var/lib/slpkg/
queue  slack_repo
bash-4.3# ls /var/lib/slpkg/sbo_repo/
ls: cannot access '/var/lib/slpkg/sbo_repo/': No such file or directory
bash-4.3# ls /var/lib/slpkg/sbo_repo/
slpkg is looking for directories and files that do not exist.
 
Old 07-07-2022, 05:26 AM   #9
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I tried a few things here.

Code:
bash-4.3# slpkg -q thonny --add

Add packages in the queue:

Traceback (most recent call last):
  File "/usr/bin/slpkg", line 41, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 853, in main
    arguments[args[0]]()
  File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 512, in pkg_queue
    queue.add(self.args[1:])
  File "/usr/lib64/python2.7/site-packages/slpkg/sbo/queue.py", line 99, in add
    find = sbo_search_pkg(pkg)
  File "/usr/lib64/python2.7/site-packages/slpkg/sbo/search.py", line 39, in sbo_search_pkg
    _meta_.lib_path + "sbo_repo/SLACKBUILDS.TXT")
  File "/usr/lib64/python2.7/site-packages/slpkg/utils.py", line 62, in read_file
    with open(registry, "r") as file_txt:
IOError: [Errno 2] No such file or directory: '/var/lib/slpkg/sbo_repo/SLACKBUILDS.TXT'
bash-4.3# slpkg -c SLACKBUILDS.TXT --upgrade

slpkg: Error: Repository 'SLACKBUILDS.TXT' does not exist

bash-4.3# slpkg -c SLACKBUILDS.TXT --download-only

slpkg: Error: Repository 'SLACKBUILDS.TXT' does not exist

bash-4.3# ls /var/lib/slpkg/sbo_repo/
ls: cannot access '/var/lib/slpkg/sbo_repo/': No such file or directory
bash-4.3# ls /var/lib/slpkg/
queue  slack_repo
bash-4.3# ls /var/lib/slpkg/sbo_repo/
ls: cannot access '/var/lib/slpkg/sbo_repo/': No such file or directory
bash-4.3# ls /var/lib/slpkg/sbo_repo/
slpkg is looking for directories and files that do not exist.
 
Old 07-07-2022, 08:00 AM   #10
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Apparently slpkg is using wget by default to download things:

https://gitlab.com/dslackw/slpkg/-/b.../downloader.py

Can you reproduce the certificate error when you're downloading from that link directly with wget from command line? If you can, then it's not a slpkg issue.
 
1 members found this post helpful.
Old 07-07-2022, 09:13 AM   #11
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I was reading up on wget and ended up going down the Slackpkg rabbit hole.
In the process I came across a ca.certificate update which I ran.
Problem solved.

However -health still shows 98%
 
Old 07-07-2022, 09:33 AM   #12
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 953

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by henca View Post
I can only say for sure that version 4.1.3 worked fine for me some week ago when I used it to install packages.
Whoops, my bad. I installed the latest slpkg from slackbuilds.org for Slackware 15.0. Again though, that was some week ago and I then got version 3.9.8. Things are moving fast here.

Quote:
Originally Posted by SAJM View Post
I installed from sbopkg
I have no experience from sbopkg myself and can't say for sure why it chooses an older version. Searching for slpkg at slackbuilds.org they suggest version 3.9.1 for Slackware 14.2 and version 4.1.3 for Slackware 15.0 at the time of this writing.

Quote:
Originally Posted by SAJM View Post
I tried a few things here.

[code]bash-4.3# slpkg -q thonny --add
The syntax is:

Code:
slpkg -s sbo thonny
To install thonny with all its dependencies from slackbuilds.org.

regards Henrik
 
1 members found this post helpful.
Old 07-07-2022, 09:54 AM   #13
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by henca View Post

Code:
slpkg -s sbo thonny
To install thonny with all its dependencies from slackbuilds.org.

regards Henrik
Thanks I did that but 1 dependency did not install. The details of that are listed under another thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slpkg New Slackware packaging tool dslackw Slackware 228 11-23-2022 02:04 AM
slpkg, mutilib and Pipelight. globetrotterdk Slackware 6 03-02-2016 03:22 PM
slpkg usage question: how to upgrade *installed* packages wireshark Slackware 8 11-16-2015 11:47 PM
confused about iojs installation using slpkg Sefid par Slackware 4 08-31-2015 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration