Newsgroup: it.comp.os.linux.iniziare
Titolo: FTP : Connection attempt failed with "ECONNREFUSED - Connection refused by server".

Ciao,
Sto tentando, con Filezilla ad accedere ad un server ubuntu 14.04.01
 
Mi ritorna questo errore :
 
Connection attempt failed with "ECONNREFUSED - Connection refused by 
server".
 
Cosa vuol dire ? Il servizio FTP nel serve non gira ? Come si fa a 
Controllare ? Altro ?
 
Cmq ho provato ad installare il servizio ftp ( vsftpd ) ma :
 
 
administrator@SRVODOO:/etc$ sudo apt-get install vsftpd
[sudo] password for administrator:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
   libaudio2 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libgl1-mesa-dri
   libgl1-mesa-glx libglapi-mesa libgstreamer-plugins-base1.0-0
   libgstreamer1.0-0 libllvm3.4 libmysqlclient18 liborc-0.4-0 libpciaccess0
   libqt4-declarative libqt4-network libqt4-opengl libqt4-script libqt4-sql
   libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4
   libqtgui4 libqtwebkit4 libtxc-dxtn-s2tc0 libx11-xcb1 libxcb-dri2-0
   libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1
   libxfixes3 libxi6 libxshmfence1 libxxf86vm1 mysql-common qtcore4-l10n
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
   vsftpd
0 upgraded, 1 newly installed, 0 to remove and 88 not upgraded.
Need to get 111 kB of archives.
After this operation, 361 kB of additional disk space will be used.
Err 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates/main vsftpd 
amd64 3.0.2-1ubuntu2.14.04.1
   Could not resolve '
it.archive.ubuntu.com
'
E: Failed to fetch 
http://it.archive.ubuntu.com/ubuntu/pool/main/v/vsftpd/vsftpd_3.0.2-1ubuntu2.14.04.1_amd64.deb
 
  Could not resolve '
it.archive.ubuntu.com
'
 
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?
administrator@SRVODOO:/etc$
 
Cosa significa? Dove baglio ?
 
Grazie

ma sei in rete?
 
rispondono:
 
ping 
www.google.it
 
 
ping 8.8.8.8

 Cosa significa? Dove baglio ?
 
Inizia con l'aggiornare il sistema dando nel terminale i comandi:
sudo apt-get update
e
sudo apt-get upgrade
 
Se incontri problemi prova nel file
/etc/apt/sources.list
a modificare le righe che contengono
http://it.archive.ubuntu.com/
 
in questo modo:
http://de.archive.ubuntu.com/
 
cioe` metti "de" al posto di "it".
 
 
 
 
 


 
Si i comandi che mi hai detto mi danno errore, come modifico le righe 
che mi hai detto ? Ho provato con l' editor vi ma mi dice che il file 
non si puo' scrivere...
 
Scusa ma , purtroppo, linux lo affronto ogni tanto... :-(
Grazie
 


 
ho provato a cambiare i permessi nel file ma :
 
administrator@SRVODOO:/etc/apt$ chmod 777 sources.list
chmod: changing permissions of ‘sources.list’: Operation not permitted
administrator@SRVODOO:/etc/apt$
 
 
dove sbaglio?
Grazie
 

devi anteporre "sudo"


 
ok, bene , ha funzionato, e se volessi riportare le condizioni di 
accesso a quelle precedenti ? Non so se va bene 777 per questo tipo di 
files .. :-(


 
Fatto e dato il comando :
 
mi da' un sacco di errori...
 
 
administrator@SRVODOO:/etc/apt$ sudo apt-get update
Err 
http://de.archive.ubuntu.com
 trusty InRelease
.....
 
W: Failed to fetch 
http://de.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
 
 
 
dove sbaglio ?
 
Grazie
 

non hai risposto alla mia prima domanda


 
Ah, se sono in rete internet ? No non sono in internet ma in LAN...
 
Grazie

per vedere se il client vede il server e le porte aperte:
 
 
sudo nmap -A -T4 <ipserver>


 
dice cosi :
 
 
administrator@SRVODOO:/$ sudo nmap -A -T4 192.168.x.x
sudo: nmap: command not found
administrator@SRVODOO:/$
 
Grazie
 
 
 


  Direi che sia il caso di installarlo.
 
 
  Ciao,
 
 
-- 
Alessandro Selli 
http://alessandro.route-add.net
 
AVVERTENZA: i messaggi inviati a "trappola" non mi arriveranno.
WARNING: messages sent to "trappola" will never reach me.


 
cosa dovrei installare ? il comando nmap ?
 
Scusa ma suso raramente linux .. :-(
 

sudo apt-get install nmap


 
sono proprio sfortunato... :-(
 
 
root@SRVODOO:/home/administrator# sudo apt-get install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nmap is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
 
E: Package 'nmap' has no installation candidate
root@SRVODOO:/home/administrator#
 


  Vedi, dopo aver fatto apt-get update, che cosa dice apt-cache search nmap.



  Dice questo :
 
root@SRVODOO:/home/administrator# apt-cache search nmap
doscan - port scanner for discovering services on large networks
fusioninventory-agent-task-network - Network device discovery for 
FusionInventor                                               y Agent
libnmap-parser-perl - parse nmap scan data with perl
libwlocate-dev - Library for doing location lookup based on free 
openwlanmap.org
                                                data
libwlocate0 - Library for doing location lookup based on free 
openwlanmap.org
 da                                               ta
mapsembler2 - bioinformatics targeted assembly software
nmapsi4 - graphical interface to nmap, the network scanner
p0f - Passive OS fingerprinting tool
pads - Passive Asset Detection System
pbnj - a suite of tools to monitor changes on a network
piwi - P(erl|relude) IDS Web Interface - A frontend to your Prelude database
pnscan - Multi threaded port scanner
psad - Port Scan Attack Detector
python-nmap - Python interface to the Nmap port scanner
python-scapy - Packet generator/sniffer and network scanner/discovery
umit - network tool and graphical frontend for nmap
xprobe - Remote OS identification
zenmap - The Network Mapper Front End
lxd-tools - Container hypervisor based on LXC - extra tools
root@SRVODOO:/home/administrator#
 
grazie
 
 

 ha scritto:

  No, decisamente no, non va bene èer niente.
Ma com'è che, a zero di cognizioni sistemistiche, stai mettendo le mani su un
server?
 
 
  Ciao,
 
 
Alessandro
 
 


 
Perche' e' un vecchio server demo che ho trovato, non faccio danni, 
imparo solo facendo cose *pratiche*.. :-)
 

 ha scritto:

apt-get update ha funzionato senza errori?
Se si, controlla che i repository standard Ubuntu siano attivati.
Qui: 
http://archive.ubuntu.com/ubuntu/dists/trusty/Contents-amd64.gz
 
vedo che nmap in Ubuntu 14.04 c'è.
 
  Il fatto che non raggiungi i repositori del SO, insieme al fatto che hai (o
almeno avevi) 39 pacchetti non più necessari e disinstallabili, mi fa pensare
che qualcuno abbia messo le mani nel sistema a livello di superutente senza
sapere che cosa faceva. Chissà com'è messo adesso.
 
  Vedi com'è configurata la rete e come sono configurati i repository.  Temo
che il tuo sistema sia stato strapazzato e sconquassato.
 
 
  Ciao,
 
 
Alessandro
 
 
 
 

 imparo solo facendo cose *pratiche*.. :-)
 
  Mettere le mani sui sistemi senza neanche aver letto una guida, un manuale,
nemmeno le pagine man (e nemmeno i messaggi d'errore dei comandi che hai
eseguito) non ti porterà lontano.  Se la teoria senza la pratica rimane
sterile, la pratica senza teoria è un grosso spreco di tempo (e spesso una
maestra di cattive abitudini).
 
 
  Ciao,
 
 
Alessandro
 
 


 
Grazie
 

 Grazie
 
 
  Prego.



 
Ciao
Dopo 100 peripezie sono riuscito ad aprire il file Contents-amd64.gz che 
e' *enorme* e, onestamente, non so come utilizzarlo.
Mi parlavi di una documentazione on-line per mettere a posto i 
repository, cosa devo cercare ? ( possibilmente in italiano )
 
Grazie
 
 

http://wiki.ubuntu-it.org/Repository/RigaDiComando
 
 

 repository, cosa devo cercare ? ( possibilmente in italiano )
 
  Vedi il collegamento che ti ha segnalato sacarde, che è il *primo*
risultato della ricerca su 
google.it
 per "Ubuntu come usare i repository".
 
 
  Ciao,



 
Grazie
 


 
Questo e' il mio sources.list.
Come faccio a vedere  se Main e Universe sono configurati ?
 
Grazie
 
---------
 
root@SRVODOO:/home/administrator# cat /etc/apt/sources.list
#
 
# deb cdrom:[Ubuntu-Server 14.04.2 LTS _Trusty Tahr_ - Release amd64 
(20150218.1)]/ trusty main restricted
 
#deb cdrom:[Ubuntu-Server 14.04.2 LTS _Trusty Tahr_ - Release amd64 
(20150218.1)]/ trusty main restricted
 
# See 
http://help.ubuntu.com/community/UpgradeNotes
 for how to upgrade to
# newer versions of the distribution.
deb http:/
it.archive.ubuntu.com/ubuntu/
 trusty main restricted
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty main restricted
 
## Major bug fix updates produced after the final release of the
## distribution.
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates main restricted
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates main restricted
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty universe
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty universe
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates universe
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates universe
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty multiverse
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty multiverse
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates multiverse
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty-updates multiverse
 
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty-backports main 
restricted universe multiverse
deb-src 
http://it.archive.ubuntu.com/ubuntu/
 trusty-backports main 
restricted universe multiverse
 
deb 
http://security.ubuntu.com/ubuntu
 trusty-security main restricted
deb-src 
http://security.ubuntu.com/ubuntu
 trusty-security main restricted
deb 
http://security.ubuntu.com/ubuntu
 trusty-security universe
deb-src 
http://security.ubuntu.com/ubuntu
 trusty-security universe
deb 
http://security.ubuntu.com/ubuntu
 trusty-security multiverse
deb-src 
http://security.ubuntu.com/ubuntu
 trusty-security multiverse
 
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb 
http://archive.canonical.com/ubuntu
 trusty partner
# deb-src 
http://archive.canonical.com/ubuntu
 trusty partner
 
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb 
http://extras.ubuntu.com/ubuntu
 trusty main
# deb-src 
http://extras.ubuntu.com/ubuntu
 trusty main
root@SRVODOO:/home/administrator#
---
 
 
 

             md64/Packages  Unable to connect to :http:
 
[...]
 
  Ti da solo errori.
Nell'altro messaggio non ho notato nulla di anomalo nella configurazione
dei repository.  Ne deduco che hai problemi di rete, o almeno di
risoluzione dei nomi.  Rivediti la configurazione dell'interfaccia, il
routing, la configurazione del DNS, il firewall ecc.
  Prova se da quella macchina ti puoi connettere ad Internet in qualche
modo.


 deb http:/
it.archive.ubuntu.com/ubuntu/
 trusty main restricted
 
  Deve essere:
 
deb 
http://it.archive.ubuntu.com/ubuntu/
 trusty main restricted



 
Bu si se provo a pingare google lo fa :
 
root@SRVODOO:/home/administrator# ping 
www.google.it
 
PING 
www.google.it
 (216.58.198.3) 56(84) bytes of data.
64 bytes from 
mil04s03-in-f3.1e100.net
 (216.58.198.3): icmp_seq=1 ttl=54 
time=10.7 ms
 
sono ok ?
 
Grazie


 
ok, corretto e lanciato :
 
root@SRVODOO:/home/administrator# apt-get update
Ign 
http://it.archive.ubuntu.com
 trusty InRelease
Get:1 
http://it.archive.ubuntu.com
 trusty-updates InRelease [65.9 kB]
Hit 
http://it.archive.ubuntu.com
 trusty-backports InRelease
Hit 
http://it.archive.ubuntu.com
 trusty Release.gpg
Get:2 
http://it.archive.ubuntu.com
 trusty-updates/main Sources [387 kB]
Get:3 
http://security.ubuntu.com
 trusty-security InRelease [65.9 kB]
Get:4 
http://it.archive.ubuntu.com
 trusty-updates/restricted Sources 
[5,888 B]
Get:5 
http://it.archive.ubuntu.com
 trusty-updates/universe Sources [169 kB]
Get:6 
http://it.archive.ubuntu.com
 trusty-updates/multiverse Sources 
[7,522 B]
Get:7 
http://it.archive.ubuntu.com
 trusty-updates/main amd64 Packages 
[925 kB]
Get:8 
http://security.ubuntu.com
 trusty-security/main Sources [123 kB]
Get:9 
http://security.ubuntu.com
 trusty-security/restricted Sources 
[4,613 B]
Get:10 
http://security.ubuntu.com
 trusty-security/universe Sources [45.8 kB]
Get:11 
http://it.archive.ubuntu.com
 trusty-updates/restricted amd64 
Packages [16.4 kB]
Get:12 
http://it.archive.ubuntu.com
 trusty-updates/universe amd64 
Packages [389 kB]
Get:13 
http://security.ubuntu.com
 trusty-security/multiverse Sources 
[3,207 B]
Get:14 
http://security.ubuntu.com
 trusty-security/main amd64 Packages 
[561 kB]
Get:15 
http://it.archive.ubuntu.com
 trusty-updates/multiverse amd64 
Packages [14.0 kB]
Get:16 
http://it.archive.ubuntu.com
 trusty-updates/main i386 Packages 
[883 kB]
Get:17 
http://it.archive.ubuntu.com
 trusty-updates/restricted i386 
Packages [16.2 kB]
Get:18 
http://it.archive.ubuntu.com
 trusty-updates/universe i386 
Packages [390 kB]
Get:19 
http://it.archive.ubuntu.com
 trusty-updates/multiverse i386 
Packages [14.5 kB]
Get:20 
http://it.archive.ubuntu.com
 trusty-updates/main Translation-en 
[449 kB]
Get:21 
http://it.archive.ubuntu.com
 trusty-updates/multiverse 
Translation-en [7,340 B]
Get:22 
http://it.archive.ubuntu.com
 trusty-updates/restricted 
Translation-en [3,842 B]
Get:23 
http://it.archive.ubuntu.com
 trusty-updates/universe 
Translation-en [206 kB]
Get:24 
http://security.ubuntu.com
 trusty-security/restricted amd64 
Packages [13.3 kB]
Get:25 
http://security.ubuntu.com
 trusty-security/universe amd64 
Packages [145 kB]
Hit 
http://it.archive.ubuntu.com
 trusty-backports/main Sources
Hit 
http://it.archive.ubuntu.com
 trusty-backports/restricted Sources
Hit 
http://it.archive.ubuntu.com
 trusty-backports/universe Sources
Hit 
http://it.archive.ubuntu.com
 trusty-backports/multiverse Sources
Hit 
http://it.archive.ubuntu.com
 trusty-backports/main amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/restricted amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/universe amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/multiverse amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/main i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/restricted i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/universe i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/multiverse i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty-backports/main Translation-en
Hit 
http://it.archive.ubuntu.com
 trusty-backports/multiverse Translation-en
Hit 
http://it.archive.ubuntu.com
 trusty-backports/restricted Translation-en
Get:26 
http://security.ubuntu.com
 trusty-security/multiverse amd64 
Packages [4,138 B]
Get:27 
http://security.ubuntu.com
 trusty-security/main i386 Packages 
[519 kB]
Hit 
http://it.archive.ubuntu.com
 trusty-backports/universe Translation-en
Hit 
http://it.archive.ubuntu.com
 trusty Release
Hit 
http://it.archive.ubuntu.com
 trusty/main Sources
Hit 
http://it.archive.ubuntu.com
 trusty/restricted Sources
Hit 
http://it.archive.ubuntu.com
 trusty/universe Sources
Hit 
http://it.archive.ubuntu.com
 trusty/multiverse Sources
Hit 
http://it.archive.ubuntu.com
 trusty/main amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/restricted amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/universe amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/multiverse amd64 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/main i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/restricted i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/universe i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/multiverse i386 Packages
Hit 
http://it.archive.ubuntu.com
 trusty/main Translation-en_GB
Hit 
http://it.archive.ubuntu.com
 trusty/main Translation-en
Hit 
http://it.archive.ubuntu.com
 trusty/multiverse Translation-en_GB
Hit 
http://it.archive.ubuntu.com
 trusty/multiverse Translation-en
Hit 
http://it.archive.ubuntu.com
 trusty/restricted Translation-en_GB
Hit 
http://it.archive.ubuntu.com
 trusty/restricted Translation-en
Hit 
http://it.archive.ubuntu.com
 trusty/universe Translation-en_GB
Hit 
http://it.archive.ubuntu.com
 trusty/universe Translation-en
Get:28 
http://security.ubuntu.com
 trusty-security/restricted i386 
Packages [13.1 kB]
Get:29 
http://security.ubuntu.com
 trusty-security/universe i386 Packages 
[145 kB]
Get:30 
http://security.ubuntu.com
 trusty-security/multiverse i386 
Packages [4,289 B]
Hit 
http://security.ubuntu.com
 trusty-security/main Translation-en
Hit 
http://security.ubuntu.com
 trusty-security/multiverse Translation-en
Hit 
http://security.ubuntu.com
 trusty-security/restricted Translation-en
Hit 
http://security.ubuntu.com
 trusty-security/universe Translation-en
Fetched 5,596 kB in 6s (806 kB/s)
Reading package lists... Done
root@SRVODOO:/home/administrator#
 
Ti sembra ok ?
 
Grazie
 


 
Grazie, benissimo, ma questo articolo spiega cos'e' e come funzionano i 
repository, ma io devo aggiungere qualche repository che manca ?
 
Questo non lo ho capito.. :-(
 
Grazie


 
Era quello !!!
 
 
administrator@SRVODOO:~$ cat /etc/issue
Ubuntu 16.04.1 LTS \n \l
 
administrator@SRVODOO:~$
 
 
Grazie a tutti per l' aiuto !
 

 ha scritto:

  Rendiamo grazie allo GNU!
 
 
  Ciao  :-)
 
 
-- 
Alessandro Selli 
http://alessandro.route-add.net
 
VOIP SIP: 
dhata...@ekiga.net
 
Chiavi PGP/GPG keys: B7FD89FD, 4A904FD9