Can't update python2

There is an update pending of python2. But when I try to update it using pamac it shows an error. How can I solve this problem?

[kartik@hplaptop ~]$ pamac update python2
Preparing...
Synchronizing package databases...
https://aur.manjaro.org/packages-meta-ext-v1.json.gz: Unacceptable TLS certificate
Failed to synchronize AUR database
Cloning python2 build files...
Generating python2 information...
Checking python2 dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  python2  2.7.18-8  (2.7.18-5)  AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building python2...
==> Making package: python2 2.7.18-8 (Monday 28 November 2022 02:38:37 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Python-2.7.18.tar.xz...
** Resuming transfer from byte position 12854736
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
curl: (22) The requested URL returned error: 416
==> ERROR: Failure while downloading https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
    Aborting...
Error: Failed to build python2
[kartik@hplaptop ~]$ 

1 Like

Hi @kartik1210, and welcome!

The error

…suggests the AUR database URL cannot be reached. But I am able to reach it:

$ ping aur.manjaro.org                                                                                                                                                                                                                               2 ↵
PING 1715854792.rsc.cdn77.org (169.150.238.176) 56(84) bytes of data.
64 bytes from 892626261.jnb.cdn77.com (169.150.238.176): icmp_seq=1 ttl=59 time=6.63 ms
64 bytes from 892626261.jnb.cdn77.com (169.150.238.176): icmp_seq=2 ttl=59 time=4.03 ms
64 bytes from 892626261.jnb.cdn77.com (169.150.238.176): icmp_seq=3 ttl=59 time=3.10 ms
64 bytes from 892626261.jnb.cdn77.com (169.150.238.176): icmp_seq=4 ttl=59 time=40.7 ms
64 bytes from 892626261.jnb.cdn77.com (169.150.238.176): icmp_seq=5 ttl=59 time=3.24 ms
64 bytes from 892626261.jnb.cdn77.com (169.150.238.176): icmp_seq=6 ttl=59 time=40.5 ms

…and this in turn suggests some kind of DNS issue on your end. So there’s not much that can be done other than try and use a different DNS server.

Try 1.1.1.1.

More info about that here:

And more info on 1.1.1.1:

https://1.1.1.1

Hope this helps!

Do you really need python2?

It is EOL for over 2 years. You should remove it: pamac remove -co python2

1 Like

I can download the tar.xz file if I paste that URL in a browser. But I guess I should just remove it. Thank you.

Do yourself a favor and only use pamac to check updates and actually update through your terminate.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.