Search This Blog

2024/10/18

Ubuntu : How to use ftp package repositary

In soucres.list mostly all package repositoies are https or
http but we can also use ftp package repositary.

Lets first edit our sources.list

sudo nano /etc/apt/sources.list

add following to it
deb ftp://ftp.ubuntu.com/ubuntu/ focal main universe

save & exit.

But By Default in ubuntu repository need to be https or http

to use ftp with it run following command

echo 'Dir::Bin::Methods::ftp "ftp";' | sudo tee -a /etc/apt/apt.conf.d/99local-ftp

Now run

sudo apt-get update

Now it will use ftp url also.

No comments:

Post a Comment