GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come riattivare Ftp sul server Ubuntu/debian secondario per estrarre gli aggiornamenti dal server Linux principale con il deposito mirrored?

ho aggiornato entrambi i miei server Linux a Ubuntu 19.10 e all'ultima versione di Debian, che entrambi puntano al mio server Linux principale che esegue un deposito con mirroring e consente comunicazioni ad esso tramite FTP, e ora sto ricevendo un messaggio che indica

The method 'ftp' is unsupported and disabled by default. 
Consider switching to http(s). 
Set Dir::Bin::Methods::ftp to "ftp" to enable it again.

dopo aver fallito nel recuperare ftp:// . Come posso riattivare il recupero dell'aggiornamento del sistema tramite FTP?

Risposta accettata:

Sulla riga di comando esegui

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

Questo creerà un file di configurazione chiamato 99local-ftp (puoi scegliere un altro nome se vuoi) nella cartella /etc/apt/apt.conf.d/ che contiene la riga

Dir::Bin::Methods::ftp "ftp"

Questo riattiverà FTP per apt.


Ubuntu
  1. Come installare un server FTP su Ubuntu con vsftpd

  2. Come configurare il server FTP su Debian 9 Stretch Linux

  3. In che modo Ubuntu è diverso da Debian?

  4. Come installare il server SSH su Ubuntu/Debian con OpenSSH

  5. Come installare il server FTP su Ubuntu 20.04

Come scaricare pacchetti con dipendenze localmente in Ubuntu, Debian, Linux Mint, Pop OS

Come installare il server VsFTPD con TLS su Ubuntu 18.04 LTS

Come installare Ubuntu Desktop da Ubuntu Server

Come configurare un server FTP sicuro con Pure-FTPd su Ubuntu

Come eseguire l'aggiornamento a Ubuntu 20.04 da Ubuntu 18.04 e 19.10

Come configurare un server FTP con ProFTPD in Ubuntu 18.04