Forum › Forums › New users › New Users and General Questions › apt https
- This topic has 4 replies, 4 voices, and was last updated Jun 14-7:48 am by stevesr0.
-
AuthorPosts
-
September 22, 2024 at 7:36 am #154580
Anonymous
how to do apt via https?
https in the sources.list.d but it doesn’t work at all.
packages apt-transport-https and ca-certificates install.
https doesn’t work.September 22, 2024 at 8:24 am #154582MrPythoner
Memberhow to do apt via https?
https in the sources.list.d but it doesn’t work at all.
packages apt-transport-https and ca-certificates install.
https doesn’t work.I understand you’re trying to use HTTPS for APT repositories on AntiX 23.1 , but you’re encountering issues. Let’s troubleshoot this step-by-step:
1. First, ensure you have the necessary packages installed:
sudo apt update sudo apt install apt-transport-https ca-certificates curl gnupg2. Check your sources list. Edit the file:
sudo nano /etc/apt/sources.listMake sure the URLs use “https://” instead of “http://”.
3. Check the contents of /etc/apt/sources.list.d/ directory:
ls /etc/apt/sources.list.d/Ensure any files there also use “https://” URLs.
4. Update the package lists:
sudo apt updateIf you get any errors, please share them.
5. Check if APT is configured to use HTTPS:
apt-config dump | grep Acquire::https::This should return some configuration details if HTTPS is properly set up.
6. Verify that the ca-certificates package is correctly installed and up to date:
sudo update-ca-certificates7. If you’re behind a proxy, make sure it’s correctly configured for APT:
nano /etc/apt/apt.conf.d/proxy.confAdd the following line if you’re using a proxy:
Acquire::https::Proxy "https://your.proxy.address:port/";8. Check if your system time is correct, as SSL certificate validation can fail if the time is significantly off:
dateIf these steps don’t resolve the issue, could you please provide:
1. The exact error message you’re seeing when trying to use HTTPS
2. The content of one of your HTTPS repository entries (from sources.list or a file in sources.list.d)
3. The output ofapt-config dump | grep Acquire::https::With this information, we can better diagnose the problem and find a solution.
September 24, 2024 at 5:09 pm #154753Anonymous
I did what you suggested, but it only helped partially.
was missing curl
then i did:
curl MYREPOSITORY && echo Works
default repository after installation said it wasn’t working https
thank you very muchJune 14, 2025 at 2:09 am #179311Robin
Member@sarausa? What kind of joke is that answer? And please, remove the hidden spam link from your footer line, otherwise mods will take action for you.
Windows is like a submarine. Open a window and serious problems will start.
June 14, 2025 at 7:48 am #179325stevesr0
MemberHi all,
Just noticed this older thread. I wondered why the repo sites were http not https. I will try the directions and see if this works. Not sure if all the http repo sites are also available as https sites.
I do wonder with the recent promotion of short term certificates if some https sites will be hard to maintain as such without having to override “invalid certificate” popups, unless this doesn’t happen when using the command line.
The spammy post is already gone, so it was truly serendiptitious for me!
-
AuthorPosts
- You must be logged in to reply to this topic.