Recent

Author Topic: fppkg list - HTTP download of mirrors.xml failed: moved permanently  (Read 652 times)

MisterD

  • Newbie
  • Posts: 3
Hello,

I'm getting the following warning.

Code: Bash  [Select][+][-]
  1. ~/pascal/p2c/p2c-2.02/src$ fppkg list
  2. Warning: HTTP Download of "http://www.freepascal.org:80/repository/mirrors.xml" failed: Moved Permanently
  3. Name                 Installed        Available

I found the following post from 5 years ago which could not resolve it at that time.


https://forum.lazarus.freepascal.org/index.php?topic=44955.0


Does anyone know if it can be fixed now?

My version info is as follows.

Code: Bash  [Select][+][-]
  1. ~$ lsb_release -d
  2. Description:    Ubuntu 20.04.6 LTS
  3.  
  4. ~/pascal$ apt-cache policy lazarus
  5. lazarus:
  6.   Installed: 2.0.6+dfsg-3
  7.   Candidate: 2.0.6+dfsg-3
  8.   Version table:
  9.  *** 2.0.6+dfsg-3 500
  10.         500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
  11.         100 /var/lib/dpkg/status
  12. ~/pascal$ apt-cache policy fpc
  13. fpc:
  14.   Installed: 3.0.4+dfsg-23
  15.   Candidate: 3.0.4+dfsg-23
  16.   Version table:
  17.  *** 3.0.4+dfsg-23 500
  18.         500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
  19.         100 /var/lib/dpkg/status
  20. ~/pascal$ apt-cache policy fpc-source
  21. fpc-source:
  22.   Installed: (none)
  23.   Candidate: 3.0.4+dfsg-23
  24.   Version table:
  25.      3.0.4+dfsg-23 500
  26.         500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
  27. ~/pascal$

Thank you.

dbannon

  • Hero Member
  • *****
  • Posts: 3019
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fppkg list - HTTP download of mirrors.xml failed: moved permanently
« Reply #1 on: July 10, 2024, 02:17:32 am »
probably relates to openSSL and your use of FPC304.

Most sites you connect to require thee standards in openssl3 as a minium, FPC304 and its associated apps were releeased before ssl3 existed.

Why are you using such a old compiler ?

In practice, you need to use FPC322 AND install the libssl3 dev libraries or use FPC-Fixes.

I don't think FPC304 will build FPC-Fixes, so perhaps its going to be 304->322->fixes I am afraid.  See -



If you want fixes, sensible choice, you must build it from source, so, may as well build both from source. But if happy with fpc322, just download and install the Tar, very quick and easy.

Davo

EDIT - I strongly suggest you install your new FPC in user space, do not mess with the copies up in /usr/bin and /lib installed by apt.  And add a line in your .bashrc that adds a path to the new fpc bin directory. eg

Code: Bash  [Select][+][-]
  1. FPCV='fpc-3.2.2'
  2. export PATH="$HOME/bin/FPC/$FPCV/bin":"$PATH"

« Last Edit: July 10, 2024, 02:24:18 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 15553
  • Censorship about opinions does not belong here.
Re: fppkg list - HTTP download of mirrors.xml failed: moved permanently
« Reply #2 on: July 10, 2024, 11:02:41 am »
It will not be fixed, because it IS fixed: the protocol you are trying to use is insecure.
The minimum you can use is tls 1.1, but tls 1.2 or tls 1.3 are advised. All these still belong to the ssl family.
« Last Edit: July 10, 2024, 11:05:58 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

dbannon

  • Hero Member
  • *****
  • Posts: 3019
    • tomboy-ng, a rewrite of the classic Tomboy
Re: fppkg list - HTTP download of mirrors.xml failed: moved permanently
« Reply #3 on: July 11, 2024, 04:16:38 am »
For the record MisterD, thaddy's answer is the same the one above it but perhaps mine is a little more useful.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018