hugher65
Posts: 7
Joined: Fri May 13, 2016 6:39 pm

Raspbian Jessie - apt-get not working

Sat May 14, 2016 12:20 pm

Hi,
I try : sudo apt-get update
but it don't work.
I try to ping google and surfing. It works...
So I think i have problem with my internet box or network configuration because the command works at my work.
Thanks for your answer.

Bruno.


pi@raspberrypi:~ $ sudo apt-get update
Ign http://archive.raspberrypi.org jessie InRelease
Ign http://archive.raspberrypi.org jessie Release.gpg
Réception de : 1 http://mirrordirector.raspbian.org jessie InRelease [15,0 kB]
Ign http://archive.raspberrypi.org jessie Release
Réception de : 2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8 966 kB]
Err http://archive.raspberrypi.org jessie/main armhf Packages
404 Not Found
Err http://archive.raspberrypi.org jessie/ui armhf Packages
404 Not Found
Ign http://archive.raspberrypi.org jessie/main Translation-fr_FR
Ign http://archive.raspberrypi.org jessie/main Translation-fr
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-fr_FR
Ign http://archive.raspberrypi.org jessie/ui Translation-fr
Ign http://archive.raspberrypi.org jessie/ui Translation-en
...

User avatar
DougieLawson
Posts: 39302
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspbian Jessie - apt-get not working

Sat May 14, 2016 1:38 pm

Check you've got a route to your gateway router, check you've got a contactable name server.

ifconfig -a
ip route
ping -c3 $(ip route | awk '/default/ {print $3}')
ping -c3 8.8.8.8
ping -c3 google.com
cat /etc/resolv.conf
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

hugher65
Posts: 7
Joined: Fri May 13, 2016 6:39 pm

Re: Raspbian Jessie - apt-get not working

Sun May 15, 2016 12:26 am

Thanks a lot!

Here are the results :


pi@raspberrypi:~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:59:fb:40
inet adr:192.168.1.3 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::820f:950c:6e74:a172/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:86 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:10849 (10.5 KiB) TX bytes:16280 (15.8 KiB)

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:16656 (16.2 KiB) TX bytes:16656 (16.2 KiB)


pi@raspberrypi:~ $ ip route
default via 192.168.1.1 dev eth0 metric 202
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.3 metric 202


pi@raspberrypi:~ $ ping -c3 $(ip route | awk '/default/ {print $3}')
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.27 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.997 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.969 ms

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.969/1.081/1.277/0.139 ms


pi@raspberrypi:~ $ ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=51 time=130 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=51 time=222 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=51 time=329 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 130.817/227.771/329.658/81.251 ms


pi@raspberrypi:~ $ ping -c3 google.com
PING google.com (***) 56(84) bytes of data.
64 bytes from ***: icmp_seq=1 ttl=61 time=21.8 ms
64 bytes from ***: icmp_seq=2 ttl=61 time=21.9 ms
64 bytes from ***: icmp_seq=3 ttl=61 time=22.3 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 11035ms
rtt min/avg/max/mdev = 21.897/22.057/22.341/0.264 ms


pi@raspberrypi:~ $ cat /etc/resolv.conf
# Generated by resolvconf
domain home
nameserver 192.168.1.1

hugher65
Posts: 7
Joined: Fri May 13, 2016 6:39 pm

Re: Raspbian Jessie - apt-get not working

Sun May 15, 2016 12:38 am

It seems working tonight...
I did the update and now the upgrade is in progress

hugher65
Posts: 7
Joined: Fri May 13, 2016 6:39 pm

Re: Raspbian Jessie - apt-get not working

Sun May 15, 2016 1:35 am

Upgrade was successful...
I would to install apache2 "sudo apt-get install apache2"
But another error :

Thanks a lot!

pi@raspberrypi:~ $ sudo apt-get install apache2
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
libhx509-5-heimdal libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal libxfce4ui-1-0
xfce-keyboard-shortcuts
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés :
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
liblua5.1-0 ssl-cert
Paquets suggérés :
apache2-doc apache2-suexec-pristine apache2-suexec-custom openssl-blacklist
Les NOUVEAUX paquets suivants seront installés :
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
liblua5.1-0 ssl-cert
0 mis à jour, 10 nouvellement installés, 0 à enlever et 10 non mis à jour.
Il est nécessaire de prendre 1 747 ko dans les archives.
Après cette opération, 5 236 ko d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libapr1 armhf 1.5.1-3
Connexion à raspbian.c3sl.ufpr.br: 80 (200.17.202.3) impossible, délai de connexion dépassé
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1 armhf 1.5.4-1
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1-dbd-sqlite3 armhf 1.5.4-1
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libaprutil1-ldap armhf 1.5.4-1
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main liblua5.1-0 armhf 5.1.5-7.1
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-bin armhf 2.4.10-10+deb8u4
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-utils armhf 2.4.10-10+deb8u4
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2-data all 2.4.10-10+deb8u4
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main apache2 armhf 2.4.10-10+deb8u4
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main ssl-cert all 1.0.35
Impossible de se connecter à raspbian.c3sl.ufpr.br:http :
E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Connexion à raspbian.c3sl.ufpr.br: 80 (200.17.202.3) impossible, délai de connexion dépassé

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... u4_all.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... _armhf.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer http://mirrordirector.raspbian.org/rasp ... 35_all.deb Impossible de se connecter à raspbian.c3sl.ufpr.br:http :

E: Impossible de récupérer certaines archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?

User avatar
DougieLawson
Posts: 39302
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspbian Jessie - apt-get not working

Sun May 15, 2016 6:45 pm

Take a look at http://raspbian.org/RaspbianMirrors for some reason the Raspbian mirror that's being automatically chosen for you by the mirror director is not working. So you may want to "hard code" a local mirror in your /etc/apt/sources.list and /etc/apt/sources.list.d/*.list files.

Before doing that try sudo apt-get update to ensure you have the current settings. If that fails go for the "hard coded mirror" option.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”