LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-21-2018, 09:47 PM   #1
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Rep: Reputation: Disabled
Problems downloading Python and Perl packages


Hi,
I should start by saying that I am very new to Slackware, this must my third or fourth day using it. I'm running Slackware 14.2 with spectrwm as interface.

I am having a strange problem, when I use sbopkg to download python or Perl files, the downloads stops with the following error message:

Resolving www.python.org (www.python.org)... 2a04:4e42:4::223, 151.101.16.223
Connecting to www.python.org (www.python.org)|2a04:4e42:4::223|:443... connected.
Unable to establish SSL connection.
This example was me trying to download python3, but the error is the same every time I try yo download from the Perl or Python site.

To add to this, when using firefox, I cannot open any pages from these sites. I click it and it does nothing. I can use firefox normally with any other site.

I imagine this has something to do with my ssl configurations, but unfortunately, I don't know anything about ssl, and what I read went over my head.

If anyone could help me with this, or just help me to understand what is happening, I would be much obliged.
 
Old 06-21-2018, 10:31 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Have you installed all the updates? How did you install spectrwm (since it isn't part of Slackware)?
 
1 members found this post helpful.
Old 06-21-2018, 11:54 PM   #3
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
I installed it through Slack Builds. As to the updates, even today I was lookin g for updates.
 
Old 06-22-2018, 12:02 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
With updates, I think he is referring to Slackware's updates, which are located in the patches/ directory on your favorite mirror. There have been many SSL-based updates, including ca-certificates, which if it is out-of-date enough, it could prevent connecting to https sites without errors. Their certificate may be too new for the ca-certificates package on the system.

You shoudld also check that the date and time on your computer are set correctly.
 
1 members found this post helpful.
Old 06-22-2018, 12:57 AM   #5
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks bassmadrigal, I didnt kew about that. I am goig to that and get back with an answer
 
Old 06-22-2018, 06:53 AM   #6
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
Ok, So I just installed most of the patches found in the mirror, making sure the openssl patches specifically,were installed, rebooted and the problem persists. Only now, when trying to open the python.org site, instead of not doing anything, it opens to a "about:blank" page.
I also checked my date and time and it was correct.

Last edited by micaldas; 06-22-2018 at 06:57 AM.
 
Old 06-22-2018, 10:07 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by micaldas View Post
Ok, So I just installed most of the patches found in the mirror, making sure the openssl patches specifically,were installed, rebooted and the problem persists. Only now, when trying to open the python.org site, instead of not doing anything, it opens to a "about:blank" page.
I also checked my date and time and it was correct.
The ca-certificates update is probably more important than the openssl updates (in regards to connecting to websites, not in importance of updating). I would ensure you have upgraded all available patches.
 
1 members found this post helpful.
Old 06-22-2018, 12:59 PM   #8
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
That is what I ended up doing, I installed all of them just to be on the safe side. The problem remains.
 
Old 06-22-2018, 01:17 PM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Can you use wget to download something from python.org and see if it has the same error?

Code:
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
 
1 members found this post helpful.
Old 06-22-2018, 01:23 PM   #10
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
If you are using firefox, you can turn on developer mode and see what information is returning from the http GET.

You could run
Code:
curl -v https://www.python.org | head
which should SSL and header information.
 
1 members found this post helpful.
Old 06-22-2018, 02:03 PM   #11
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
The problem persists with wget bassmadrigal, "unable to establish ssl connection".

As running firefox in developer mode, I will try a little later, for some reason I cannot open firefox now and can't reboot becausee I'm doing an install that is taking forever.
 
Old 06-22-2018, 03:04 PM   #12
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
Bassmadrigal, I took your suggestion and run your instructions. This is the output

bash-4.3# curl -v https://www.python.org | head
* Rebuilt URL to: https://www.python.org/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 2a04:4e42:4::223...
* TCP_NODELAY set
* Connected to www.python.org (2a04:4e42:4::223) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /usr/share/curl/ca-bundle.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [108 bytes data]
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.python.org:443
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.python.org:443
bash-4.3# ^C
bash-4.3#
 
Old 06-22-2018, 04:59 PM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Are you sure you got the updates for 14.2 and not -current? This seems like it could be due to mismatched packages, but I'm not sure where to start. Maybe start with providing the output of the following:

Code:
ls -l /var/log/packages/openssh*
ls -l /var/log/packages/ca-certificates*
ls -l /var/log/packages/curl*
 
1 members found this post helpful.
Old 06-22-2018, 07:38 PM   #14
micaldas
Member
 
Registered: Mar 2018
Posts: 84

Original Poster
Rep: Reputation: Disabled
ls -l /var/log/packages/openssh*

-rw-r--r-- 1 root root 2068 Jun 16 11:03 /var/log/packages/openssh-7.2p2-x86_64-1
-rw-r--r-- 1 root root 2057 Jun 22 12:08 /var/log/packages/openssh-7.4p1-x86_64-2_slack14.2ls -l /var/log/packages/ca-certificates*

-rw-r--r-- 1 root root 13172 Jun 16 11:02 /var/log/packages/ca-certificates-20160104-noarch-1
-rw-r--r-- 1 root root 12622 Jun 22 07:20 /var/log/packages/ca-certificates-20161130-noarch-1_slack14.2ls -l /var/log/packages/curl*

-rw-r--r-- 1 root root 19656 Jun 16 11:02 /var/log/packages/curl-7.49.1-x86_64-1
-rw-r--r-- 1 root root 22386 Jun 22 07:21 /var/log/packages/curl-7.60.0-x86_64-1_slack14.2
 
Old 06-22-2018, 09:12 PM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
You are using IPV6 to connect; my tests are using IPV4.

I don't know if IPV6 has been tested with Slackware 14-2; someone who has an IPV6 connection to the world may speak up.
 
  


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
Python extension module installed in /usr/local/lib[64]/python[2.7|3.x]/site-packages not found Nate_KS Slackware 1 07-11-2017 10:06 PM
Python related: How to access a Perl script behind a firewall from Python? vxc69 Programming 8 12-14-2010 07:32 AM
Having problems downloading packages with special characters Felipe Linux - Software 0 03-03-2009 01:40 PM
Problems with Python packages vharishankar Debian 3 12-17-2006 10:17 AM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 07:54 PM

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

All times are GMT -5. The time now is 10:38 AM.

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